Understanding better "lattice" command

Submitted by andrea.pasquali on Sat, 02/19/2011 - 12:33

Hi,
I'm creating atoms region by lattice command inside a .stl container.
This works ok but I have a "problem" when I create the .vtk: the particles are as scaled respect to my container.
In detail:
- I created a cubic box region of b = 0.3 m edge length.
- My .stl container is in the middle of box with l = b/3 m edge length.
- I defined the lattice region inside this container (you can see the file in the .txt attached file).
- I tested 2 lattice setups but the results are similar: in the vtk I found the particles scaled in the let bottom corner of my box region (as you can see in the picture attached).

I know I'm wronging something in the scale or spacing option in lattice command, but I can't able to solve it...

Thanks in advance for any help

Andrea

AttachmentSize
Plain text icon lattice.txt730 bytes
Image icon lattice.png9.97 KB
ckloss's picture

ckloss | Mon, 02/21/2011 - 13:36

maybe it is a scaling issue with the vtk files?
do you use the pizza.py version from this site, and if yes, do you get any message like "scaling / unscaling dump" when running pizza.py?

Christoph

andrea.pasquali | Mon, 02/21/2011 - 15:15

Yes I solved it, is a scale problem in vtk.
I added d.scale() and now is ok, thank you!
Other 2 question:
1) the density (and the volume) in the "set group nve_group diameter 0.005 density 1000 #volume 1" are reffed to the single particle or the entire particles volume?
2) I found in the tutorials files properties for youngsModulus, poissonsRatio, coefficientRestitution, coefficientFriction, characteristicVelocity, cohesionEnergyDensity... Is there a manual to understand better these property/global? In the LAMMPS guide there are property/atom property/local property/molecule.

Thanks

Andrea

ckloss's picture

ckloss | Mon, 02/21/2011 - 16:38

1) for a single particle
2) search the forums, this has already been discussed with reference to literature

Christoph