Difference between revisions of "MPM Grid Generation"
(Created page with "MPM calculations use a background grid. It can be created with commands on this page. == Grid Generation in Scripted Files == For 2D analysis, the entire grid in generate wi...") |
|||
(70 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
MPM calculations use a background grid. | MPM calculations use a background grid. The grid can be easily created with commands on this page. | ||
== Grid | == Regular Grid == | ||
Most MPM simulations use a regular, orthogonal grid. In other words, all cells in the grid are the same size and cell edges along x, y, and z directions are 90 degrees to each other. The cells in 2D grids are all all rectangles. the cells in 3D grids are rectangular boxes. The commands in this section create a regular grid: | |||
GridHoriz (nx),<(symx)>,<(symxdir)> | === Regular Grid in Scripted Files === | ||
GridVert (ny),<(symy)>,<(symydir)> | |||
For 2D analyses, the entire grid is generated with the following commands: | |||
GridHoriz (nx),<(symx)>,<(symxdir)>,<(symx2)> | |||
GridVert (ny),<(symy)>,<(symydir)>,<(symy2)> | |||
GridThickness (thick) | GridThickness (thick) | ||
GridRect (xmin),(xmax),(ymin),(ymax) | GridRect (xmin),(xmax),(ymin),(ymax) | ||
For | Axisymmetric calculations use x and y limits for R and Z limits. For 3D analyses, the entire grid is generated with the following commands: | ||
GridHoriz (nx),<(symx)>,<(symxdir)> | GridHoriz (nx),<(symx)>,<(symxdir)>,<(symx2)> | ||
GridVert (ny),<(symy)>,<(symydir)> | GridVert (ny),<(symy)>,<(symydir)>,<(symy2)> | ||
GridDepth (nz),<(symz)>,<(symzdir)> | GridDepth (nz),<(symz)>,<(symzdir)>,<(symz2)> | ||
GridRect (xmin),(xmax),(ymin),(ymax),(zmin),(zmax) | GridRect (xmin),(xmax),(ymin),(ymax),(zmin),(zmax) | ||
<span id="params">where</span> | |||
* <tt>(nx)</tt>, <tt>(ny)</tt>, <tt>(nz)</tt> - the number of elements in the x, y, and z directions. For axisymmetric calculations <tt>(nx)</tt> and <tt>(ny)</tt> are the number of elements in the R and Z directions. | |||
* <tt>(symx)</tt>, <tt>(symxdir)</tt>, and <tt>(symx2)</tt> (and the analogous ones for y and z) - these optional settings are used to define [[#Symmetry Planes|symmetry planes]] along one or more axes. | |||
* <tt>(thick)</tt> - the grid thickness in 2D planar calculations (in [[ConsistentUnits Command#Legacy and Consistent Units|length units]]). See [[#Notes|below]] for details on grid thickness. | |||
* <tt>(xmin),(xmax),(ymin),(ymax),(zmin),(zmax)</tt> - the ranges for the grid along each axis (in [[ConsistentUnits Command#Legacy and Consistent Units|length units]]) (<tt>(zmin)</tt> and <tt>(zmax)</tt> are only used for 3D calculations). | |||
== Grid | === Regular Grid in XML Files === | ||
In <tt>XML</tt> input commands, the entire grid is generated within a single <tt><Mesh></tt> block. For 2D analysis, use the following commands: | |||
<Mesh output='file'> | <Mesh output='file'> | ||
<Grid | <Grid xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)' thickness='(thick)'> | ||
<Horiz nx='(nx)'/> | <Horiz nx='(nx)' symmin='(symxmin)' symmax='(symxmax)'/> | ||
<Vert ny='(ny)'/> | <Vert ny='(ny)' symmin='(symymin)' symmax='(symymax)'/> | ||
</Grid> | </Grid> | ||
</Mesh> | </Mesh> | ||
Line 34: | Line 42: | ||
<Mesh output='file'> | <Mesh output='file'> | ||
<Grid | <Grid xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)' zmin='(zmin)' zmax='(zmax)'> | ||
<Horiz nx='(nx)'/> | <Horiz nx='(nx)' symmin='(symxmin)' symmax='(symxmax)'/> | ||
<Vert ny='(ny)'/> | <Vert ny='(ny)' symmin='(symymin)' symmax='(symymax)'/> | ||
<Depth nz='(nz)'/> | <Depth nz='(nz)' symmin='(symzmin)' symmax='(symzmax)'/> | ||
</Grid> | </Grid> | ||
</Mesh> | </Mesh> | ||
The parameters have the same meaning as the [[#params|parameters for scripted files]]. <tt>XML</tt> commands have these additional options: | |||
<ol> | |||
<li><tt>output='file'</tt> - this attribute in the <tt><Mesh></tt> element determines if the nodes and elements should be included in the main output results file or written to separate files in the archive folder. Use the word "file" to write nodes and elements to separate files or omit the attribute to include them in the main file. In large calculations, it is always better to write them to a separate file. | |||
<li>The <tt><Grid></tt> command can use a [[Units Attribute|units attribute]] to select the input units. | |||
<li>Instead of setting the grid by entering the number cells in each direction, you can optionally specify the cell size by using | |||
<pre><Horiz cellsize='(size)' symmin='(symxmin)' symmax='(symxmax)'/> | |||
</pre> | |||
where <tt>(size)</tt> is the cell size (in [[ConsistentUnits Command#Legacy and Consistent Units|length units]]). Note: if needed, the axis limits will be increased to accomodate an integral number of elements at the desired cell size. | |||
<li>The [[#Symmetry Planes|symmetry planes]] are set using <tt>(symmin)</tt> and <tt>(symmax)</tt> attributes. | |||
</ol> | |||
== Tartan Grid == | |||
A tartan grid extends regular grid methods by keeping the grid orthogonal but now allowing unequal cell sizes. Tartan grids currently limited to simulations with GIMP or CPDI [[MPM Methods and Simulation Timing|shape functions]]. Axisymmetric calculations are limited to CPDI shape functions. (Note: although Classic [[MPM Methods and Simulation Timing|shape functions]] can be used, they are not recommended). | |||
=== Areas of Interest === | |||
[[File:Mcintosh.png|right]] | |||
A tartan grid is based around areas of interest (AOIs). Within AOIs, the grid is a regular grid of equal sized elements. Cells outside any AOI get larger. Cells between AOIs are also larger (depending on available space between the AOIs). Overlapping AOIs (by direction) combine into a single ''length'' of interest for that axis. The net result looks like a Scottish Tartan as shown in the picture to the right. This picture is the clan McIntosh tartan. The green areas represent AOIs with regular cells and the cells get larger outside the AOIs, but all cell edges remain orthogonal. | |||
AOIs are created in scripted files with: | |||
TartanAOI x1,x2,nx,y1,y2,ny | |||
In XML files, the command is: | |||
<AreaOfInterest x1="0" x2="10" y1="0" y2="10" nx="5" ny="5"/> | |||
where | |||
<ul> | |||
<li><tt>x1</tt> to <tt>x2</tt> and <tt>y2</tt> to <tt>y2</tt> define a rectangular AOI (add <tt>z1,z2,nz</tt> for cubical AOI in a 3D tartan grid). The mesh inside the area of interest will be a regular grid.</li> | |||
<li>The <tt>nx</tt> and <tt>ny</tt> (and <tt>nz</tt> for 3D) values give the number of cells in the two (or three directions) inside the AOI (and the cells will have equal sizes along each direction.</li> | |||
</ul> | |||
=== Cell Sizes === | |||
The rate at which cells outside of AOIs increase is determined a cell <tt>ratio</tt> and size-increment <tt>style</tt> for each axis. These parameters are set by modifying the axis commands used to create a [[#Regular Grid|regular grid]]. In scripted files, you insert "R-Style" as second parameter to mean the next two parameters are cell size ratio and style: | |||
GridHoriz num,"R-style",ratio,<style>,<sym1>,<symdir>,<sym2> | |||
and similar for <tt>GridVert</tt> and <tt>GridDepth</tt>. In XML files use | |||
<Horiz nx='nx' rx='ratio' style='style'/> | |||
and use attributes <tt>ry</tt> and <tt>rz</tt> for <Vert> and <Depth>. The two new parameters are: | |||
<ul> | |||
<li><tt>ratio</tt> gives ratio of adjacent cells in that direction outside AOIs. If x direction is not given, it is set to the golden ratio ((1+√5)/2=1.618). If y or z directions are not provided, they are set to the x direction ratio. Any ratio less than or equal to 1 is same as not provided.</li> | |||
<li><tt>style</tt> has two options: | |||
<ol> | |||
<li>0 (or "geometric"): the cell size will increase geometrically by given ratio.</li> | |||
<li>1 (or "linear"): the cell size will increase linearly by the amount (ratio-1)*a (where a is element size inside the AOI)</li> | |||
</ol> | |||
XML files must use the numeric setting. If x direction is not given, it is set to "geometric". If y or z directions are not provided, they are set to the x direction style. Although this parameter is optional, it must be provided in scripted files for alignment when [[#Symmetry Planes|symmetry plane]] boundary conditions are being set. | |||
</li> | |||
</ul> | |||
Note that commonly the <tt>ratio</tt> and <tt>style</tt> will be same for all axes. To achieve this result, set only x axis <tt>ratio</tt> and <tt>style</tt> and y and z axes (when not provided) will inherit that style (they can be set differently, however, if desired). | |||
Note that when using a tartan grid, the <tt>nx</tt>, <tt>ny</tt>, and <tt>nz</tt> parameters used to create a [[#Regular Grid|regular grid]] are ignored. The number of cells along each axis will depend on the number of cells in AOIs and the rate of increase between AOIs. But, if the commands do not define any AOIs, the grid will revert to a regular grid based on entered <tt>nx</tt>, <tt>ny</tt>, and <tt>nz</tt> values. | |||
=== Grid Limits and Border === | |||
When using a tartan grid, set the limits of the grid (in <tt>GridRect</tt> or <tt><Grid></tt> commands) to the limits of the modeled object (''i.e.'', do not include extra border cells around the edges). This approach makes it easier to align object edges with cell edges in the tartan grid and to apply [[#Symmetry Planes|symmetry boundary conditions]] on the object edges. | |||
If you want to add a border in scripted files, use the command: | |||
TartanBorder xmin,xmax,ymin,ymax | |||
In XML commands, a border is set with: | |||
<Border xmin="1" xmax="1" ymin="1" ymax="1" /> | |||
where | |||
<ul> | |||
<li><tt>xmin</tt>, <tt>xmax</tt>, <tt>ymin</tt>, and <tt>ymax</tt> give number of extra elements beyond the edges, which may be small or large elements depending on tartan grid settings (add <tt>zmin</tt> and <tt>zmax</tt> for 3D). Added elements will match the size of the last cell within the object in that direction.</li> | |||
</ul> | |||
If no Border command is used, a border of 1 cell on each edge is created. | |||
== Symmetry Planes == | |||
By using the optional <tt>(symx)</tt>, <tt>(symxdir)</tt>, and <tt>(symx2)</tt> parameters (and the analogous ones for y and z) in <tt>GridHoriz</tt>, <tt>GridVert</tt>, or <tt>GridDepth</tt> commands (or the <tt>(symmin)</tt> and <tt>(symmax)</tt> attributes in <tt><Horiz></tt>, <tt><Vert></tt> or <tt><Depth></tt> <tt>XML</tt> commands), you can create a one or two symmetry planes along each axis. For one symmetry plane, the plane is located at <tt>x=(symx)</tt> (or <tt>y=(symy)</tt> or <tt>z=(symz)</tt>). If the corresponding direction property (''e.g''., <tt>(symxdir)</tt>) is equal to -1 (or is omitted), the plane is at the minimum edge for the coordinate; if the direction is equal to +1, the plane is at the maximum edge. To create two symmetry planes, create the first one as for one plane, always specify <tt>(symxdir)</tt> (even if it is -1), and then use <tt>(symx2)</tt> (or <tt>(symy2)</tt> or <tt>(symz2)</tt>) for the location of the other plane. The second plane will be on the opposite side as the first plane (''e.g''., maximum edge if first was minimum or minimum edge is first was maximum). In <tt>XML</tt> files, planes and the minimum and/or maximum edges can be specified with one or both of the optional <tt>(symmin)</tt> and <tt>(symmax)</tt> attributes. | |||
The creation of a symmetry plane will do the following: | |||
<ol> | |||
<li> Delete all [[Grid-Based Boundary Conditions|velocity boundary conditions]] in the specified axis direction that are beyond the symmetry plane because they are not needed (''e.g.'', at values <tt>x≤(symx)</tt> for <tt>(symxdir)=-1</tt> or <tt>x≥(symx)</tt> for <tt>(symxdir)=+1</tt>). | |||
<li> Create [[Grid-Based Boundary Conditions| velocity boundary conditions]] for every node in the plane at <tt>(symx)</tt> (or <tt>(symy)</tt> or <tt>(symz)</tt>) with velocity in the axis direction set to zero. Note that the symmetry plane must fall on a plane of nodes in the grid, otherwise an error will result. For the purpose of [[MPM Global Archiving Options|archiving reaction forces]], the created boundary conditions will have the following IDs: | |||
<ul> | |||
<li>-10: plane at minimum x edge | |||
<li>-11: plane at maximum x edge | |||
<li>-20: plane at minimum y edge | |||
<li>-21: plane at maximum y edge | |||
<li>-30: plane at minimum z edge | |||
<li>-31: plane at maximum z edge | |||
</ul> | |||
<li> Create a second layer of [[Grid-Based Boundary Conditions|velocity boundary conditions]] one element beyond the symmetry plane (''e.g.'', at <tt>(symx)+(symxdir)*cell</tt> where <tt>cell</tt> is the cell size along the axis). These special boundary conditions will use reflection to set the velocity equal to the opposite of the velocity for the node on the other side of the symmetry plane and within the object. For example, a symmetry plane at <tt>x=(symx)</tt> will set the <tt>x</tt> velocity for the reflected node at <tt>(symx)+(symxdir)*cell</tt> to be minus the <tt>x</tt> velocity for the node in the object at <tt>(symx)-(symxdir)*cell</tt>. This second layer of boundary conditions is needed for best results when using [[MPM Methods and Simulation Timing|GIMP or CPDI shape functions]]. | |||
<li>Whenever contact occurs for a node on the plane at<tt>(symx)</tt> (or <tt>(symy)</tt> or <tt>(symz)</tt>), the volume gradient in the symmetry direction is set to zero and the volume is doubled. | |||
</ol> | |||
Symmetry planes are designed as actual symmetry planes. In other words, the real problem you are trying to solve is where the full object is the object on one side of the symmetry plane combined with its reflection on the opposite side. Although you can manually create pseudo-symmetry planes by creating two rows of zero [[Grid-Based Boundary Conditions|velocity boundary conditions]], the manual approach will not handle contact in [[Multimaterial MPM|multimaterial mode]] correctly and may have inferior results for boundary conditions. When contact may occur on the symmetry plane, the code needs to explicitly know about those planes so it can adjust volumes and [[Surface Normals#Multimaterial Normal Vector Options|volume gradients]] to account for symmetry. The above method for symmetry planes achieves that goal (<i>i.e.</i>, item #4 above). Symmetry planes also eliminate (or reduce) some edge artifacts at zero-velocity boundary conditions. Thus symmetry planes are recommended whenever you want boundary conditions to create a wall for your simulation. | |||
Some details on symmetry planes are: | |||
# For axisymmetric simulations, a symmetry plane at <tt>r=0</tt> is implied and is automatically created whenever your mesh extends to <tt>r=0</tt>. Any minimum symmetry plane you enter will be ignored. You can optionally create a maximum symmetry plane if desired. | |||
# Although setting a symmetry plane seems to be a short cut to setting zero velocity boundary conditions on an edge, if that edge corresponds to a real edge of the object and not to a symmetry plane, you should manually create those boundary conditions rather than use a symmetry plane. In other words, the contact mechanics at an edge are different than at a symmetry plane. | |||
# The reflective boundary conditions next to symmetry planes work with with [[Multimaterial MPM|multiple materials]] (each material's velocity is reflected), but if [[Defining Cracks|cracks]] are present, it only reflects the velocity on the same side of the crack as the internal node. If cracks extend though or along symmetry planes, it is possible the reflective boundary conditions will lose accuracy. The zero velocity boundary conditions on the plane, however, account for cracks. | |||
== Notes == | == Notes == | ||
The | # The thickness in planar 2D calculations defines the thickness of the grid. This attribute is required when doing [[Multimaterial MPM|multimaterial contact including the optional volume check]] and when using traction or flux boundary conditions. It is optional in other calculations because thickness can be set when defining material points and when defining cracks. If used, however, all material points and [[Defining Cracks|cracks]] will default to the grid thickness. You can enter different values, although it is not recommended (and may change the physics in [[Multimaterial MPM|multimaterial simulations]] or results to traction or flux boundary conditions). A warning is printed in the output if a [[Defining Cracks|crack thickness]] does not match the grid thickness. Currently no warning is given if material points have different thicknesses. | ||
# In scripted files, the <tt>GridThickness</tt> command must be before the <tt>GridRect</tt> | |||
# When using a [[MPM Methods and Simulation Timing|GIMP or CPDI shape functions]], a particle is considered to have left the grid if it moves into any element on the edge of the analysis. Thus, the use of a GIMP method will cause grid generation to automatically add an extra boundary of elements beyond the dimensions you select. | |||
# MPM background grids currently always use [[Element Types#MPM Element Types|linear elements]]. | |||
When using a GIMP |
Latest revision as of 17:55, 25 January 2023
MPM calculations use a background grid. The grid can be easily created with commands on this page.
Regular Grid
Most MPM simulations use a regular, orthogonal grid. In other words, all cells in the grid are the same size and cell edges along x, y, and z directions are 90 degrees to each other. The cells in 2D grids are all all rectangles. the cells in 3D grids are rectangular boxes. The commands in this section create a regular grid:
Regular Grid in Scripted Files
For 2D analyses, the entire grid is generated with the following commands:
GridHoriz (nx),<(symx)>,<(symxdir)>,<(symx2)> GridVert (ny),<(symy)>,<(symydir)>,<(symy2)> GridThickness (thick) GridRect (xmin),(xmax),(ymin),(ymax)
Axisymmetric calculations use x and y limits for R and Z limits. For 3D analyses, the entire grid is generated with the following commands:
GridHoriz (nx),<(symx)>,<(symxdir)>,<(symx2)> GridVert (ny),<(symy)>,<(symydir)>,<(symy2)> GridDepth (nz),<(symz)>,<(symzdir)>,<(symz2)> GridRect (xmin),(xmax),(ymin),(ymax),(zmin),(zmax)
where
- (nx), (ny), (nz) - the number of elements in the x, y, and z directions. For axisymmetric calculations (nx) and (ny) are the number of elements in the R and Z directions.
- (symx), (symxdir), and (symx2) (and the analogous ones for y and z) - these optional settings are used to define symmetry planes along one or more axes.
- (thick) - the grid thickness in 2D planar calculations (in length units). See below for details on grid thickness.
- (xmin),(xmax),(ymin),(ymax),(zmin),(zmax) - the ranges for the grid along each axis (in length units) ((zmin) and (zmax) are only used for 3D calculations).
Regular Grid in XML Files
In XML input commands, the entire grid is generated within a single <Mesh> block. For 2D analysis, use the following commands:
<Mesh output='file'> <Grid xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)' thickness='(thick)'> <Horiz nx='(nx)' symmin='(symxmin)' symmax='(symxmax)'/> <Vert ny='(ny)' symmin='(symymin)' symmax='(symymax)'/> </Grid> </Mesh>
Axisymmetric calculations use x and y limits for R and Z limits. For 3D analyses, use the following commands:
<Mesh output='file'> <Grid xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)' zmin='(zmin)' zmax='(zmax)'> <Horiz nx='(nx)' symmin='(symxmin)' symmax='(symxmax)'/> <Vert ny='(ny)' symmin='(symymin)' symmax='(symymax)'/> <Depth nz='(nz)' symmin='(symzmin)' symmax='(symzmax)'/> </Grid> </Mesh>
The parameters have the same meaning as the parameters for scripted files. XML commands have these additional options:
- output='file' - this attribute in the <Mesh> element determines if the nodes and elements should be included in the main output results file or written to separate files in the archive folder. Use the word "file" to write nodes and elements to separate files or omit the attribute to include them in the main file. In large calculations, it is always better to write them to a separate file.
- The <Grid> command can use a units attribute to select the input units.
- Instead of setting the grid by entering the number cells in each direction, you can optionally specify the cell size by using
<Horiz cellsize='(size)' symmin='(symxmin)' symmax='(symxmax)'/>
where (size) is the cell size (in length units). Note: if needed, the axis limits will be increased to accomodate an integral number of elements at the desired cell size.
- The symmetry planes are set using (symmin) and (symmax) attributes.
Tartan Grid
A tartan grid extends regular grid methods by keeping the grid orthogonal but now allowing unequal cell sizes. Tartan grids currently limited to simulations with GIMP or CPDI shape functions. Axisymmetric calculations are limited to CPDI shape functions. (Note: although Classic shape functions can be used, they are not recommended).
Areas of Interest
A tartan grid is based around areas of interest (AOIs). Within AOIs, the grid is a regular grid of equal sized elements. Cells outside any AOI get larger. Cells between AOIs are also larger (depending on available space between the AOIs). Overlapping AOIs (by direction) combine into a single length of interest for that axis. The net result looks like a Scottish Tartan as shown in the picture to the right. This picture is the clan McIntosh tartan. The green areas represent AOIs with regular cells and the cells get larger outside the AOIs, but all cell edges remain orthogonal.
AOIs are created in scripted files with:
TartanAOI x1,x2,nx,y1,y2,ny
In XML files, the command is:
<AreaOfInterest x1="0" x2="10" y1="0" y2="10" nx="5" ny="5"/>
where
- x1 to x2 and y2 to y2 define a rectangular AOI (add z1,z2,nz for cubical AOI in a 3D tartan grid). The mesh inside the area of interest will be a regular grid.
- The nx and ny (and nz for 3D) values give the number of cells in the two (or three directions) inside the AOI (and the cells will have equal sizes along each direction.
Cell Sizes
The rate at which cells outside of AOIs increase is determined a cell ratio and size-increment style for each axis. These parameters are set by modifying the axis commands used to create a regular grid. In scripted files, you insert "R-Style" as second parameter to mean the next two parameters are cell size ratio and style:
GridHoriz num,"R-style",ratio,<style>,<sym1>,<symdir>,<sym2>
and similar for GridVert and GridDepth. In XML files use
<Horiz nx='nx' rx='ratio' style='style'/>
and use attributes ry and rz for <Vert> and <Depth>. The two new parameters are:
- ratio gives ratio of adjacent cells in that direction outside AOIs. If x direction is not given, it is set to the golden ratio ((1+√5)/2=1.618). If y or z directions are not provided, they are set to the x direction ratio. Any ratio less than or equal to 1 is same as not provided.
- style has two options:
- 0 (or "geometric"): the cell size will increase geometrically by given ratio.
- 1 (or "linear"): the cell size will increase linearly by the amount (ratio-1)*a (where a is element size inside the AOI)
XML files must use the numeric setting. If x direction is not given, it is set to "geometric". If y or z directions are not provided, they are set to the x direction style. Although this parameter is optional, it must be provided in scripted files for alignment when symmetry plane boundary conditions are being set.
Note that commonly the ratio and style will be same for all axes. To achieve this result, set only x axis ratio and style and y and z axes (when not provided) will inherit that style (they can be set differently, however, if desired).
Note that when using a tartan grid, the nx, ny, and nz parameters used to create a regular grid are ignored. The number of cells along each axis will depend on the number of cells in AOIs and the rate of increase between AOIs. But, if the commands do not define any AOIs, the grid will revert to a regular grid based on entered nx, ny, and nz values.
Grid Limits and Border
When using a tartan grid, set the limits of the grid (in GridRect or <Grid> commands) to the limits of the modeled object (i.e., do not include extra border cells around the edges). This approach makes it easier to align object edges with cell edges in the tartan grid and to apply symmetry boundary conditions on the object edges.
If you want to add a border in scripted files, use the command:
TartanBorder xmin,xmax,ymin,ymax
In XML commands, a border is set with:
<Border xmin="1" xmax="1" ymin="1" ymax="1" />
where
- xmin, xmax, ymin, and ymax give number of extra elements beyond the edges, which may be small or large elements depending on tartan grid settings (add zmin and zmax for 3D). Added elements will match the size of the last cell within the object in that direction.
If no Border command is used, a border of 1 cell on each edge is created.
Symmetry Planes
By using the optional (symx), (symxdir), and (symx2) parameters (and the analogous ones for y and z) in GridHoriz, GridVert, or GridDepth commands (or the (symmin) and (symmax) attributes in <Horiz>, <Vert> or <Depth> XML commands), you can create a one or two symmetry planes along each axis. For one symmetry plane, the plane is located at x=(symx) (or y=(symy) or z=(symz)). If the corresponding direction property (e.g., (symxdir)) is equal to -1 (or is omitted), the plane is at the minimum edge for the coordinate; if the direction is equal to +1, the plane is at the maximum edge. To create two symmetry planes, create the first one as for one plane, always specify (symxdir) (even if it is -1), and then use (symx2) (or (symy2) or (symz2)) for the location of the other plane. The second plane will be on the opposite side as the first plane (e.g., maximum edge if first was minimum or minimum edge is first was maximum). In XML files, planes and the minimum and/or maximum edges can be specified with one or both of the optional (symmin) and (symmax) attributes.
The creation of a symmetry plane will do the following:
- Delete all velocity boundary conditions in the specified axis direction that are beyond the symmetry plane because they are not needed (e.g., at values x≤(symx) for (symxdir)=-1 or x≥(symx) for (symxdir)=+1).
- Create velocity boundary conditions for every node in the plane at (symx) (or (symy) or (symz)) with velocity in the axis direction set to zero. Note that the symmetry plane must fall on a plane of nodes in the grid, otherwise an error will result. For the purpose of archiving reaction forces, the created boundary conditions will have the following IDs:
- -10: plane at minimum x edge
- -11: plane at maximum x edge
- -20: plane at minimum y edge
- -21: plane at maximum y edge
- -30: plane at minimum z edge
- -31: plane at maximum z edge
- Create a second layer of velocity boundary conditions one element beyond the symmetry plane (e.g., at (symx)+(symxdir)*cell where cell is the cell size along the axis). These special boundary conditions will use reflection to set the velocity equal to the opposite of the velocity for the node on the other side of the symmetry plane and within the object. For example, a symmetry plane at x=(symx) will set the x velocity for the reflected node at (symx)+(symxdir)*cell to be minus the x velocity for the node in the object at (symx)-(symxdir)*cell. This second layer of boundary conditions is needed for best results when using GIMP or CPDI shape functions.
- Whenever contact occurs for a node on the plane at(symx) (or (symy) or (symz)), the volume gradient in the symmetry direction is set to zero and the volume is doubled.
Symmetry planes are designed as actual symmetry planes. In other words, the real problem you are trying to solve is where the full object is the object on one side of the symmetry plane combined with its reflection on the opposite side. Although you can manually create pseudo-symmetry planes by creating two rows of zero velocity boundary conditions, the manual approach will not handle contact in multimaterial mode correctly and may have inferior results for boundary conditions. When contact may occur on the symmetry plane, the code needs to explicitly know about those planes so it can adjust volumes and volume gradients to account for symmetry. The above method for symmetry planes achieves that goal (i.e., item #4 above). Symmetry planes also eliminate (or reduce) some edge artifacts at zero-velocity boundary conditions. Thus symmetry planes are recommended whenever you want boundary conditions to create a wall for your simulation.
Some details on symmetry planes are:
- For axisymmetric simulations, a symmetry plane at r=0 is implied and is automatically created whenever your mesh extends to r=0. Any minimum symmetry plane you enter will be ignored. You can optionally create a maximum symmetry plane if desired.
- Although setting a symmetry plane seems to be a short cut to setting zero velocity boundary conditions on an edge, if that edge corresponds to a real edge of the object and not to a symmetry plane, you should manually create those boundary conditions rather than use a symmetry plane. In other words, the contact mechanics at an edge are different than at a symmetry plane.
- The reflective boundary conditions next to symmetry planes work with with multiple materials (each material's velocity is reflected), but if cracks are present, it only reflects the velocity on the same side of the crack as the internal node. If cracks extend though or along symmetry planes, it is possible the reflective boundary conditions will lose accuracy. The zero velocity boundary conditions on the plane, however, account for cracks.
Notes
- The thickness in planar 2D calculations defines the thickness of the grid. This attribute is required when doing multimaterial contact including the optional volume check and when using traction or flux boundary conditions. It is optional in other calculations because thickness can be set when defining material points and when defining cracks. If used, however, all material points and cracks will default to the grid thickness. You can enter different values, although it is not recommended (and may change the physics in multimaterial simulations or results to traction or flux boundary conditions). A warning is printed in the output if a crack thickness does not match the grid thickness. Currently no warning is given if material points have different thicknesses.
- In scripted files, the GridThickness command must be before the GridRect
- When using a GIMP or CPDI shape functions, a particle is considered to have left the grid if it moves into any element on the edge of the analysis. Thus, the use of a GIMP method will cause grid generation to automatically add an extra boundary of elements beyond the dimensions you select.
- MPM background grids currently always use linear elements.