Setting Initial Conditions and Reference Values
Set the initial conditions and reference values for the physics continuum.
The initial condition for the spatial distribution of the two fluids in the continuum is that you only have glycerine in the left-hand chamber and only air in the right-hand chamber and channel. A convenient way of specifying such a distribution is by creating and using field functions.
The direction and magnitude of the gravity vector is set using the Reference Values node. In this case, a gravity force is applied in the positive x-direction.
To set the initial conditions and reference values:
Define the field function to use for specifying the initial condition for the spatial distribution of the glycerine in the continuum:
- Right-click the node and select from the pop-up menu.
- Rename the User Field Function 1 to Initial Distribution.
-
Select the
Initial Distribution node and set the following properties:
Property Setting Function Name Initial Distribution Definition ($$Position[0]>=-0.001)?0:1
Define the field function to use for specifying the initial condition for the spatial distribution of the air in the continuum:
- Create another scalar field function and rename it to Initial Distribution (Air).
-
Select the
Initial Distribution (Air) node and set the following properties:
Property Setting Function Name Initial Distribution (Air) Definition 1-${Initial Distribution}
Set the initial conditions and reference values for the
Injector continuum.
-
Edit the
Initial Conditions node and set the following properties:
Node Property Setting Volume Fraction Method Composite Method Field Function Scalar Function Initial Distribution Method Field Function Scalar Function Initial Distribution (Air) -
Edit the
Reference Values node and set the following properties:
Node Property Setting Gravity Value [9.81,0.0] m/s^2 - Save the simulation.