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:
  1. Right-click the Automation > Field Functions node and select New > Scalar from the pop-up menu.
  2. Rename the User Field Function 1 to Initial Distribution.
  3. 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:
  1. Create another scalar field function and rename it to Initial Distribution (Air).
  2. 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.
  1. Edit the Initial Conditions node and set the following properties:
    Node Property Setting
    Volume Fraction Method Composite
    Composite > C3H8O3 Method Field Function
    Scalar Function Initial Distribution
    Composite > Air Method Field Function
    Scalar Function Initial Distribution (Air)
  2. Edit the Reference Values node and set the following properties:
    Node Property Setting
    Gravity Value [9.81,0.0] m/s^2
  3. Save the simulation.