Difference between revisions of "Particle BC Shape Commands"
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The method to create particle-based boundary conditions was changed in [[NairnMPM]] (April 2017) and [[OSParticulas]] (revision 1170) to the method using [[Particle-Based Boundary Conditions|<tt>ParticleBC</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: | ||
LoadLine (x1),(y1),(x2),(y2),(tolerance) | LoadLine (x1),(y1),(x2),(y2),<(tolerance)> | ||
(one or more load, traction, heat flux, or concentration flux condition) | (one or more load, traction, heat flux, or concentration flux condition) | ||
EndLoadLine | EndLoadLine | ||
should be replaced with (and note changed order of parameters): | |||
ParticleBC | |||
Line (x1),(x2),(y1)),(y2),<(tolerance)> | |||
(one or more load, traction, heat flux, or concentration flux condition) | |||
EndParticleBC | |||
In <tt>XML</tt> files, a line is selected with: | In <tt>XML</tt> files, a line is selected with: | ||
Line 17: | Line 23: | ||
</BCLine> | </BCLine> | ||
should be replaced with | |||
<BCShape> | |||
<Line x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' tolerance='(tolerance)'> | |||
(one or more load, traction, heat flux, or concentration flux 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: | ||
LoadArc (x1),(y1),(x2),(y2),(startAng),(endAng),<(tolerance)> | LoadArc (x1),(y1),(x2),(y2),(startAng),(endAng),<(tolerance)> | ||
(one or more load, traction, heat flux, or concentration flux condition) | (one or more load, traction, heat flux, or concentration flux condition) | ||
EndLoadArc | EndLoadArc | ||
In <tt>XML</tt> files, | should be replaced with (and note changed order of parameters): | ||
ParticleBC | |||
Arc (x1),(x2,(y1)),(y2),(startAng),(endAng),<(tolerance)> | |||
(one or more load, traction, heat flux, or concentration flux condition) | |||
EndParticleBC | |||
In <tt>XML</tt> files, an line selected with: | |||
<BCArc units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' | <BCArc units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' | ||
start='(startAng)' end='(endAng)' tolerance='(tolerance)'> | start='(startAng)' end='(endAng)' tolerance='(tolerance)'> | ||
(one or more load, traction, heat flux, or concentration flux condition) | (one or more load, traction, heat flux, or concentration flux condition) | ||
</BCLine> | </BCLine> | ||
should be replaced with | |||
<BCShape> | |||
<Arc units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' | |||
start='(startAng)' end='(endAng)' tolerance='(tolerance)'> | |||
(one or more load, traction, heat flux, or concentration flux condition) | |||
</BCShape > | |||
== Rectangle (2D or Axisymmetric) == | == Rectangle (2D or Axisymmetric) == | ||
The command to select rectangle in a 2D mesh in scripted files | The command to select rectangle in a 2D mesh in scripted files: | ||
LoadRect (xmin),(xmax),(ymin),(ymax) | LoadRect (xmin),(xmax),(ymin),(ymax) | ||
(one or more load, traction, heat flux, or concentration flux condition) | (one or more load, traction, heat flux, or concentration flux condition) | ||
EndLoadRect | EndLoadRect | ||
In <tt>XML</tt> files, a rectangle | should be replaced with: | ||
ParticleBC | |||
Rect (xmin),(xmax),(ymin),(ymax) | |||
(one or more load, traction, heat flux, or concentration flux condition) | |||
EndParticleBC | |||
In <tt>XML</tt> files, a rectangle selected with: | |||
<LdRect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax) | <LdRect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'> | ||
(one or more load, traction, heat flux, or concentration flux condition) | (one or more load, traction, heat flux, or concentration flux condition) | ||
</LdRect> | </LdRect> | ||
should be replaced with | |||
<BCShape> | |||
<Rect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'> | |||
(one or more load, traction, heat flux, or concentration flux 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: | ||
LoadBox (x1),(y1),(z1),(x2),(y2),(z2),<(axis)> | LoadBox (x1),(y1),(z1),(x2),(y2),(z2),<(axis)> | ||
(one or more load, traction, heat flux, or concentration flux condition) | (one or more load, traction, heat flux, or concentration flux condition) | ||
EndLoadBox | EndLoadBox | ||
In <tt>XML</tt> files, a box | should be replaced with (and note changed order of parameters): | ||
ParticleBC | |||
Box (x1),(x2),(y1)),(y2),(z1)),(z2),<(tolerance)> | |||
(one or more load, traction, heat flux, or concentration flux condition) | |||
EndParticleBC | |||
In <tt>XML</tt> files, a box selected with: | |||
<BCBox units='(units)' xmin='(x1)' xmax='(x2)' ymin='(y1)' ymax='(y2)' | <BCBox units='(units)' xmin='(x1)' xmax='(x2)' ymin='(y1)' ymax='(y2)' | ||
zmin='(z1)' zmax='(z2)' axis='(axis)'> | zmin='(z1)' zmax='(z2)' axis='(axis)'> | ||
(one or more load, traction, heat flux, or concentration flux condition) | (one or more load, traction, heat flux, or concentration flux condition) | ||
</BCBox> | </BCBox> | ||
should be replaced with | |||
<BCShape> | |||
<Box units='(units)' xmin='(x1)' xmax='(x2)' ymin='(y1)' ymax='(y2)' | |||
zmin='(z1)' zmax='(z2)' axis='(axis)'> | |||
(one or more load, traction, heat flux, or concentration flux condition) | |||
</BCBox> |
Latest revision as of 10:56, 8 April 2017
The method to create particle-based boundary conditions was changed in NairnMPM (April 2017) and OSParticulas (revision 1170) to the method using ParticleBC 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:
LoadLine (x1),(y1),(x2),(y2),<(tolerance)> (one or more load, traction, heat flux, or concentration flux condition) EndLoadLine
should be replaced with (and note changed order of parameters):
ParticleBC Line (x1),(x2),(y1)),(y2),<(tolerance)> (one or more load, traction, heat flux, or concentration flux condition) EndParticleBC
In XML files, a line is selected with:
<BCLine units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' tolerance='(tolerance)'> (one or more load, traction, heat flux, or concentration flux condition) ... </BCLine>
should be replaced with
<BCShape> <Line x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' tolerance='(tolerance)'> (one or more load, traction, heat flux, or concentration flux condition) </BCShape >
Arc (2D or Axisymmetric)
The command to select an arc through a 2D mesh in scripted files:
LoadArc (x1),(y1),(x2),(y2),(startAng),(endAng),<(tolerance)> (one or more load, traction, heat flux, or concentration flux condition) EndLoadArc
should be replaced with (and note changed order of parameters):
ParticleBC Arc (x1),(x2,(y1)),(y2),(startAng),(endAng),<(tolerance)> (one or more load, traction, heat flux, or concentration flux condition) EndParticleBC
In XML files, an line selected with:
<BCArc units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' start='(startAng)' end='(endAng)' tolerance='(tolerance)'> (one or more load, traction, heat flux, or concentration flux condition) </BCLine>
should be replaced with
<BCShape> <Arc units='(units)' x1='(x1)' y1='(y1)' x2='(x2)' y2='(y2)' start='(startAng)' end='(endAng)' tolerance='(tolerance)'> (one or more load, traction, heat flux, or concentration flux condition) </BCShape >
Rectangle (2D or Axisymmetric)
The command to select rectangle in a 2D mesh in scripted files:
LoadRect (xmin),(xmax),(ymin),(ymax) (one or more load, traction, heat flux, or concentration flux condition) EndLoadRect
should be replaced with:
ParticleBC Rect (xmin),(xmax),(ymin),(ymax) (one or more load, traction, heat flux, or concentration flux condition) EndParticleBC
In XML files, a rectangle selected with:
<LdRect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'> (one or more load, traction, heat flux, or concentration flux condition) </LdRect>
should be replaced with
<BCShape> <Rect xmin='(xmin)' xmax='(xmax)' ymin='(ymin)' ymax='(ymax)'> (one or more load, traction, heat flux, or concentration flux condition) </BCShape>
Box or Cylinder (3D)
The command to select a 3D box or cylinder in scripted files:
LoadBox (x1),(y1),(z1),(x2),(y2),(z2),<(axis)> (one or more load, traction, heat flux, or concentration flux condition) EndLoadBox
should be replaced with (and note changed order of parameters):
ParticleBC Box (x1),(x2),(y1)),(y2),(z1)),(z2),<(tolerance)> (one or more load, traction, heat flux, or concentration flux condition) EndParticleBC
In XML files, a box selected with:
<BCBox units='(units)' xmin='(x1)' xmax='(x2)' ymin='(y1)' ymax='(y2)' zmin='(z1)' zmax='(z2)' axis='(axis)'> (one or more load, traction, heat flux, or concentration flux condition) </BCBox>
should be replaced with
<BCShape> <Box units='(units)' xmin='(x1)' xmax='(x2)' ymin='(y1)' ymax='(y2)' zmin='(z1)' zmax='(z2)' axis='(axis)'> (one or more load, traction, heat flux, or concentration flux condition) </BCBox>