Difference between revisions of "3D MPM Shape Commands"

From OSUPDOCS
Jump to navigation Jump to search
Line 2: Line 2:


== Box Command ==
== Box Command ==
A scripted <tt>Box</tt> 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 <tt>XML</tt> files, the command is:
<Box xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)' zmin='(zmin)' zmax='(zmax)'/>
where
* <tt>(xmin),(xmax),(ymin),(ymax),(zmin)</tt>, and <tt>(zmax)</tt> 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|units attribute]] in <tt>XML</tt> 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.


== Sphere Command ==
== Sphere Command ==

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.

Sphere Command

Cylinder Command

Torus Command

Faces or Pyramid