Difference between revisions of "3D MPM Shape Commands"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
In <tt>XML</tt> files, the command is: | In <tt>XML</tt> files, the command is: | ||
<Box xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)' zmin='(zmin)' zmax='(zmax)'/> | <Box xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)' | ||
zmin='(zmin)' zmax='(zmax)'/> | |||
where | where |
Revision as of 08:50, 21 November 2013
These shape commands are used in 3D MPM simulations within Region and Hole commands to discretize an object for the calculations. Besides these shapes, you can also discretize objects directly from a stack of images.
Box Command
A scripted Box command defines a region to be filled with material points or to be defined as a hole:
Box (xmin),(xmax),(ymin),(ymax),(zmin),(zmax)
In XML files, the command is:
<Box xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)' zmin='(zmin)' zmax='(zmax)'/>
where
- (xmin),(xmax),(ymin),(ymax),(zmin), and (zmax) are the x, y, and z extents of the cubical volume. If xmax<xmin, ymax<ymin, or zmax<zmin, they will be automatically switched to define the box. The units are mm (or determined by a units attribute in XML files).
If the defined cubical volume overlaps regions that already have material points or previously was defined as a hole, those regions will be ignored.