Difference between revisions of "Setting Velocity and Transport Values"

From OSUPDOCS
Jump to navigation Jump to search
Line 34: Line 34:
<li><tt>constant</tt> (or 1) - the applied boundary conditions is set to the constant <tt>(value)</tt> and it is applied for times after <tt>(time)</tt>.  
<li><tt>constant</tt> (or 1) - the applied boundary conditions is set to the constant <tt>(value)</tt> and it is applied for times after <tt>(time)</tt>.  


<li><tt>linear</tt> (or 2) - the applied boundary condition is<br>
<li><tt>linear</tt> (or 2) - the applied boundary condition is<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<math>BC = ({\rm value})*(t-({\rm time}))</math>
<math>BC = ({\rm value})*(t-({\rm time}))</math>
<br>where t is the current time (in ms). This condition is applied only for times after <tt>(time)</tt>. The units for <tt>(value)</tt> should change to the standard units for the boundary condition per ms.
<br><br>where t is the current time (in ms). This condition is applied only for times after <tt>(time)</tt>. The units for <tt>(value)</tt> should change to the standard units for the boundary condition per ms.


<li><tt>sine</tt> (or 3) - the applied boundary condition is<br>
<li><tt>sine</tt> (or 3) - the applied boundary condition is<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<math>BC = ({\rm value})\sin\bigl[({\rm time})*t\bigr]</math>
<math>BC = ({\rm value})\sin\bigl[({\rm time})*t\bigr]</math>
This condition is applied for all times. The units for <tt>(time)</tt> should change to 1/ms.
<br><br>This condition is applied for all times. The units for <tt>(time)</tt> should change to 1/ms.


<li><tt>cosine</tt> (or 4) - the applied boundary condition is<br>
<li><tt>cosine</tt> (or 4) - the applied boundary condition is<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<math>BC = ({\rm value})\cos\bigl[({\rm time})*t\bigr]</math>
<math>BC = ({\rm value})\cos\bigl[({\rm time})*t\bigr]</math>
This condition is applied for all times. The units for <tt>(time)</tt> should change to 1/ms.
<br><br>This condition is applied for all times. The units for <tt>(time)</tt> should change to 1/ms.


<li><tt>&quot;function&quot;</tt> (or 6) - the applied boundary condition is determined by a [[User-Defined Functions|user-defined function]] of time (<tt>t</tt> in ms), nodal point position (<tt>x</tt>, <tt>y</tt>, and <tt>z</tt> in mm), and/or of current clockwise particle rotation angle (<tt>q</tt> in radians, 2D only), entered as quoted text in #3 (<tt>arg1</tt>). The function should evaluate to the desired velocity in mm/s. If <tt>arg2</tt> is supplied, the velocity starts at time <tt>arg2</tt> (in ms) and the function is evaluated at <tt>[t-arg2]</tt> (in ms).
<li><tt>&quot;function&quot;</tt> (or 6) - the applied boundary condition is determined by a [[User-Defined Functions|user-defined function]] of time (<tt>t</tt> in ms), nodal point position (<tt>x</tt>, <tt>y</tt>, and <tt>z</tt> in mm), and/or of current clockwise particle rotation angle (<tt>q</tt> in radians, 2D only), entered as quoted text in #3 (<tt>arg1</tt>). The function should evaluate to the desired velocity in mm/s. If <tt>arg2</tt> is supplied, the velocity starts at time <tt>arg2</tt> (in ms) and the function is evaluated at <tt>[t-arg2]</tt> (in ms).

Revision as of 13:50, 20 December 2013

These commands are used within shape commands for grid-based boundary conditions to set velocity, temperature, and/or concentration boundary conditions.

Velocity Conditions

The scripte Velocity command sets velocity conditions to all nodes with the shape command that encloses it:

Velocity (dir),(style),<(value)>,<(time)>

In XML files, the command is:

<DisBC dir='(dir)' style='(style)' vel='(value)' time='(time)' function='(function)' id='(id)'/>

where

  • (dir) is 1, 2, or 3 to specify the velocity direction as in the x, y, or z direction (In script files, (dir) can be x, y, or z or can be R or Z if axisymmetric). You can also set velocity in a direction that is not along an axis. For details see help on skewed velocity conditions
  • (style) specifies the style of the applied velocity. Each velocity depends on two parameters specified by arguments (value) and (time). If either argument is not supplied, they are set to zero. The styles are described below.
  • (function)
  • (id)


Boundary Condition Styles

The possible boundary condition styles are defined below. In scripted files, the style can be set by name or number; in XML files, the style must be set by number. Unless otherwise specified, the units for (value) are the standard units for the type of boundary condition (i.e., mm/s for velocity, degrees K for temperature, and concentration potential for concentration) and the units for (time) are ms.

  • constant (or 1) - the applied boundary conditions is set to the constant (value) and it is applied for times after (time).
  • linear (or 2) - the applied boundary condition is

               [math]\displaystyle{ BC = ({\rm value})*(t-({\rm time})) }[/math]

    where t is the current time (in ms). This condition is applied only for times after (time). The units for (value) should change to the standard units for the boundary condition per ms.
  • sine (or 3) - the applied boundary condition is

               [math]\displaystyle{ BC = ({\rm value})\sin\bigl[({\rm time})*t\bigr] }[/math]

    This condition is applied for all times. The units for (time) should change to 1/ms.
  • cosine (or 4) - the applied boundary condition is
               [math]\displaystyle{ BC = ({\rm value})\cos\bigl[({\rm time})*t\bigr] }[/math]

    This condition is applied for all times. The units for (time) should change to 1/ms.
  • "function" (or 6) - the applied boundary condition is determined by a user-defined function of time (t in ms), nodal point position (x, y, and z in mm), and/or of current clockwise particle rotation angle (q in radians, 2D only), entered as quoted text in #3 (arg1). The function should evaluate to the desired velocity in mm/s. If arg2 is supplied, the velocity starts at time arg2 (in ms) and the function is evaluated at [t-arg2] (in ms).

Skewed Velocity Conditions

Temperature Conditions

Concentration Conditions