Difference between revisions of "Particle-Based Boundary Conditions"

From OSUPDOCS
Jump to navigation Jump to search
Line 24: Line 24:
which must be within the main <tt>&lt;ParticleBC&gt;</tt> block.
which must be within the main <tt>&lt;ParticleBC&gt;</tt> block.


The particles that will get boundary conditions are selected by defining one [[2D MPM Shape Commands|2D shape]] (for 2D simulations) or one [[3D MPM Shape Commands|3D shape]] (for 3D simulations). The shape can be a [[Nested Shapes|nested shape]].
All particles within the one shape will be set to all provided [[Setting Velocity, Temperature, and Concentration|velocity, temperature and/or concentration conditions]].
=== Deprecated Commands ===
Prior to the grid-based boundary condition commands in the previous section, the boundary conditions used to be set with [[Grid BC Shape Commands|boundary condition shape commands]]. The deprecated commands are:
* <tt>MoveLine</tt> and <tt>&lt;BCLine&gt;</tt>
* <tt>MoveArc</tt> and <tt>&lt;BCArc&gt;</tt>
* <tt>&lt;LdRect&gt;</tt>
* <tt>MoveBox</tt> and <tt>&lt;BCBox&gt;</tt>
See [[Grid BC Shape Commands|documentation]] for conversion of old commands to the new method.


All particle-based boundary conditions are created by a series of [[Particle BC Shape Commands|shape commands]] that select particles in the simulation. The [[Particle BC Shape Commands|shape commands]] define shapes (lines or arcs) and all particles withing those shapes are selected.. In scripted 2D simulations, the commands are
All particle-based boundary conditions are created by a series of [[Particle BC Shape Commands|shape commands]] that select particles in the simulation. The [[Particle BC Shape Commands|shape commands]] define shapes (lines or arcs) and all particles withing those shapes are selected.. In scripted 2D simulations, the commands are

Revision as of 11:18, 8 April 2017

Introduction

Particle-based boundary conditions are used to apply conditions directly to particles for loads, tractions, heat fluxes, and concentration fluxes. Particle-based boundary conditions are typically applied to particles on the boundary of the object. Besides particle conditions, simulations can set Grid-Based Boundary Conditions.

Particle-Based Boundary Condition in Scripted Files

In scripted files, all particle-based boundary conditions are created by a series of ParticleBC command blocks that select particles:

ParticleBC
  (one 2D or 3D shape command, which can be nested)
  (one or more load, traction, heat flux, or concentration flux condition)
    ...
EndParticleBC

In XML files, particle-based boundary conditions are created with a <BCShape> block

<BCShape>
  (one 2D or 3D shape command, which can be nested)
  (one or more load, traction, heat flux, or concentration flux condition)
    ...
</BCShape>

which must be within the main <ParticleBC> block.

The particles that will get boundary conditions are selected by defining one 2D shape (for 2D simulations) or one 3D shape (for 3D simulations). The shape can be a nested shape.

All particles within the one shape will be set to all provided velocity, temperature and/or concentration conditions.

Deprecated Commands

Prior to the grid-based boundary condition commands in the previous section, the boundary conditions used to be set with boundary condition shape commands. The deprecated commands are:

  • MoveLine and <BCLine>
  • MoveArc and <BCArc>
  • <LdRect>
  • MoveBox and <BCBox>

See documentation for conversion of old commands to the new method.

All particle-based boundary conditions are created by a series of shape commands that select particles in the simulation. The shape commands define shapes (lines or arcs) and all particles withing those shapes are selected.. In scripted 2D simulations, the commands are

  • LoadLine - select particles along a line
  • LoadArc - select particles along an arc
  • LoadRect - select particles within a rectangle

In scripted 3D simulations, the commands is:

  • LoadBox - select particles within a box or a cylinder

The commands within these shape commands are used to set load, traction, heat flux, and/or concentration flux conditions.

Particle-Based Boundary Condition in XML Files

All particle-based boundary conditions must be set up within a single <ParticleBCs> element. The format is

<ParticleBCs>
   (one or more particle BC shape commands)
     ...
   <LoadBCs>
      (one or more explicit boundary conditions)
   </LoadBCs >
</ParticleBCs>

There are two ways to specify particle boundary conditions. The most common approach is to generate boundary conditions using one or more shape commands to select particles and assign specified load, traction, heat flux, and or concentration flux conditions to those particles. The other way is to explicitly list each particle condition. The explicit method is shown in the <LoadBCs> section above; it is limited to load conditions, and is usually generated with other software. You can use both shape commands and a <LoadBCs> section in the same input file.