Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pressure buffer file issue #160

Open
lungd opened this issue Jan 30, 2019 · 6 comments
Open

Pressure buffer file issue #160

lungd opened this issue Jan 30, 2019 · 6 comments
Assignees

Comments

@lungd
Copy link
Contributor

lungd commented Jan 30, 2019

What particles are supposed to be written to the pressure file?
The file should only contain particles belonging to the body of the worm, right?
If that is the case, I think I found a bug.

There should be 2289 elastic matter particles belonging to the worm using 'worm_crawl_half_resolution' config?

$ cat configuration/worm_crawl_half_resolution | grep -P ^"[0-9]+\.[0-9]+\s[0-9]+\.[0-9]+\s[0-9]+\.[0-9]+\s2\.[1-2]" | wc -l
2289
$ ./Release/Sibernetic -f worm_crawl_half_resolution -l_to -no_g timelimit=0.001
$ head buffers/pressure_buffer.txt
[Iteration 0]
Particle:	0
	Position:	4.19954	2.42451	4.19958	2.3
	Pressure:	0
Particle:	1
	Position:	4.21678	3.95076	4.21895	2.3
	Pressure:	0
Particle:	2
	Position:	4.56932	4.51407	4.54354	2.3
	Pressure:	0

There are particles with the type, e.g., '2.3' what is interpreted as an agar particle?
If I am right, only particles with '2.1 <= type < 2.3' should be inside the file.

Every iteration, 1425 particles get written to the file (should be 2289?)

$ cat buffers/pressure_buffer.txt | grep ^Particle: | wc -l
1425
@lungd
Copy link
Contributor Author

lungd commented Jan 30, 2019

BTW, there is one more particle using worm_swim_half_resolution?

$ cat configuration/worm_swim_half_resolution | grep -P ^"[0-9]+\.[0-9]+\s[0-9]+\.[0-9]+\s[0-9]+\.[0-9]+\s2\.[1-2]" | wc -l
2290

@skhayrulin
Copy link
Member

skhayrulin commented Jan 31, 2019

@lungd Hi, I've actually supposed to store information about pressure only for particles which is located on the surface of body worm. So the number of such particles is different from total numbers of elastic particles. @a-palyanov @pgleeson am I right this information will be enough for you to detect pressure changing?

@lungd
Copy link
Contributor Author

lungd commented Jan 31, 2019

@skhayrulin I understand now why there should be less than 2289 particles inside the pressure file.
But I am still not sure about the type of the particles.
Is the first particle located on the surface of the worm? (Particle: 0 Position: 4.19954 2.42451 4.19958 2.3)

@skhayrulin
Copy link
Member

@lungd your question is why type of particles is 2.3, not 2 as usual?

@lungd
Copy link
Contributor Author

lungd commented Feb 1, 2019

@skhayrulin the question is, why there are particles of type=2.3 inside the file.

As I understand it, only a subset of particles of type > 2 and type < 2.3 should get saved.
So, I still think the content of the pressure file is not correct, or at least not completely as intended.

@skhayrulin
Copy link
Member

@lungd Yep you're right it's the only subset of elastic particles but as far as I know, this indices needed @a-palyanov for manipulating the viscosity of liquid near the worm shell it's better to as him. From the other hand I don't use this I've precalculate set of shell particles from a list of membranes and put information about a particle inside the file as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants