Difference between revisions of "Grid BC Shape Commands"
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The method to create grid-based boundary conditions was changed in [[NairnMPM]] (April 2017) and [[OSParticulas]] (revision 1170) to the method using [[Grid-Based Boundary Conditions|<tt>GridBC</tt> and <tt><BCShape></tt> blocks]]. As a result, all boundary condition commands listed below are deprecated. They still work, but should be replaced by new methods as described below. | |||
== Line (2D or Axisymmetric) == | == Line (2D or Axisymmetric) == | ||
The command to select a line through a 2D mesh in scripted files | The command to select a line through a 2D mesh in scripted files: | ||
MoveLine (x1),(y1),(x2),(y2),(tolerance) | MoveLine (x1),(y1),(x2),(y2),<(tolerance)> | ||
(one or more velocity, temperature, or concentration condition) | (one or more velocity, temperature, or concentration condition) | ||
EndMoveLine | EndMoveLine | ||
In <tt>XML</tt> files, a line | should be replaced by (and note change in order of parameters): | ||
GridBC | |||
Line (x1),(x2),(y1),(y2),<(tolerance)> | |||
(one or more velocity, temperature, or concentration condition) | |||
EndGridBC | |||
In <tt>XML</tt> files, a line selected with: | |||
<BCLine units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' tolerance='(tolerance)'> | <BCLine units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' tolerance='(tolerance)'> | ||
(one or more velocity, temperature, or concentration condition) | (one or more velocity, temperature, or concentration condition) | ||
</BCLine> | </BCLine> | ||
should be replaced by: | |||
<BCShape> | |||
<Line x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' tolerance='(tolerance)'> | |||
(one or more velocity, temperature, or concentration condition) | |||
</BCShape> | |||
== Arc (2D or Axisymmetric) == | == Arc (2D or Axisymmetric) == | ||
The command to select an arc through a 2D mesh in scripted files | The command to select an arc through a 2D mesh in scripted files: | ||
MoveArc (x1),(y1),(x2),(y2),(startAng),(endAng),<(tolerance)> | MoveArc (x1),(y1),(x2),(y2),(startAng),(endAng),<(tolerance)> | ||
(one or more velocity, temperature, or concentration condition) | (one or more velocity, temperature, or concentration condition) | ||
EndMoveLine | EndMoveLine | ||
In XML files, | should be replaced by (and note change in order of parameters): | ||
GridBC | |||
Arc (x1),(x2),(y1),(y2),(startAng),(endAng),<(tolerance)> | |||
(one or more velocity, temperature, or concentration condition) | |||
EndGridBC | |||
In <tt>XML</tt> files, an arc selected with: | |||
<BCArc units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' | <BCArc units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' | ||
Line 41: | Line 52: | ||
</BCLine> | </BCLine> | ||
should be replaced by | |||
<BCShape> | |||
<Arc x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' | |||
start='(startAng)' end='(endAng)' tolerance='(tolerance)'> | |||
(one or more velocity, temperature, or concentration condition) | |||
</BCShape> | |||
== Rectangle (2D or Axisymmetric) == | == Rectangle (2D or Axisymmetric) == | ||
The command to select a rectangle | The command to select a rectangle (which is only available in <tt>XML</tt> files) | ||
<LdRect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax) | <LdRect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'> | ||
(one or more velocity, temperature, or concentration condition) | (one or more velocity, temperature, or concentration condition) | ||
</LdRect> | </LdRect> | ||
should be replaced by | |||
<BCShape> | |||
<Rect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'> | |||
(one or more velocity, temperature, or concentration condition) | (one or more velocity, temperature, or concentration condition) | ||
</BCShape > | |||
== Box or Cylinder (3D) == | == Box or Cylinder (3D) == | ||
The command to select a 3D box or cylinder in scripted files | The command to select a 3D box or cylinder in scripted files: | ||
MoveBox (x1),(y1),(z1),(x2),(y2),(z2),<(axis)> | MoveBox (x1),(y1),(z1),(x2),(y2),(z2),<(axis)> | ||
(one or more velocity, temperature, or concentration condition) | (one or more velocity, temperature, or concentration condition) | ||
EndMoveBox | EndMoveBox | ||
should be replaced by (and note change in order of parameters): | |||
GridBC | |||
Box (x1),(x2),(y1),(y2),(z1),(z1) | |||
(one or more velocity, temperature, or concentration condition) | (one or more velocity, temperature, or concentration condition) | ||
EndGridBC | |||
In <tt>XML</tt> files, a box or cylinder is selected with: | |||
<BCBox units='(units)' xmin='(x1)' xmax='(x2)' ymin='(y1)' ymax='(y2)' | |||
zmin='(z1)' zmax='(z2)' axis='(axis)'> | |||
(one or more velocity, temperature, or concentration condition) | |||
</BCBox> | |||
should be replaced by | |||
<BCShape> | |||
<Box units='(units)' xmin='(x1)' xmax='(x2)' ymin='(y1)' ymax='(y2)' | |||
zmin='(z1)' zmax='(z2)' axis='(axis)'> | |||
(one or more velocity, temperature, or concentration condition) | |||
</BCShape> |
Latest revision as of 11:01, 8 April 2017
The method to create grid-based boundary conditions was changed in NairnMPM (April 2017) and OSParticulas (revision 1170) to the method using GridBC and <BCShape> blocks. As a result, all boundary condition commands listed below are deprecated. They still work, but should be replaced by new methods as described below.
Line (2D or Axisymmetric)
The command to select a line through a 2D mesh in scripted files:
MoveLine (x1),(y1),(x2),(y2),<(tolerance)> (one or more velocity, temperature, or concentration condition) EndMoveLine
should be replaced by (and note change in order of parameters):
GridBC Line (x1),(x2),(y1),(y2),<(tolerance)> (one or more velocity, temperature, or concentration condition) EndGridBC
In XML files, a line selected with:
<BCLine units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' tolerance='(tolerance)'> (one or more velocity, temperature, or concentration condition) </BCLine>
should be replaced by:
<BCShape> <Line x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' tolerance='(tolerance)'> (one or more velocity, temperature, or concentration condition) </BCShape>
Arc (2D or Axisymmetric)
The command to select an arc through a 2D mesh in scripted files:
MoveArc (x1),(y1),(x2),(y2),(startAng),(endAng),<(tolerance)> (one or more velocity, temperature, or concentration condition) EndMoveLine
should be replaced by (and note change in order of parameters):
GridBC Arc (x1),(x2),(y1),(y2),(startAng),(endAng),<(tolerance)> (one or more velocity, temperature, or concentration condition) EndGridBC
In XML files, an arc selected with:
<BCArc units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' start='(startAng)' end='(endAng)' tolerance='(tolerance)'> (one or more velocity, temperature, or concentration condition) ... </BCLine>
should be replaced by
<BCShape> <Arc x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' start='(startAng)' end='(endAng)' tolerance='(tolerance)'> (one or more velocity, temperature, or concentration condition) </BCShape>
Rectangle (2D or Axisymmetric)
The command to select a rectangle (which is only available in XML files)
<LdRect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'> (one or more velocity, temperature, or concentration condition) </LdRect>
should be replaced by
<BCShape> <Rect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'> (one or more velocity, temperature, or concentration condition) </BCShape >
Box or Cylinder (3D)
The command to select a 3D box or cylinder in scripted files:
MoveBox (x1),(y1),(z1),(x2),(y2),(z2),<(axis)> (one or more velocity, temperature, or concentration condition) EndMoveBox
should be replaced by (and note change in order of parameters):
GridBC Box (x1),(x2),(y1),(y2),(z1),(z1) (one or more velocity, temperature, or concentration condition) EndGridBC
In XML files, a box or cylinder is selected with:
<BCBox units='(units)' xmin='(x1)' xmax='(x2)' ymin='(y1)' ymax='(y2)' zmin='(z1)' zmax='(z2)' axis='(axis)'> (one or more velocity, temperature, or concentration condition) </BCBox>
should be replaced by
<BCShape> <Box units='(units)' xmin='(x1)' xmax='(x2)' ymin='(y1)' ymax='(y2)' zmin='(z1)' zmax='(z2)' axis='(axis)'> (one or more velocity, temperature, or concentration condition) </BCShape>