InitialCondition Class

The InitialCondition class allows for definition and assignment of initial conditions. Note that some properties and methods are not applicable to all initial condition types.

InitialCondition Properties

InitialConditions PropertiesTypeValues

type

String“Velocity”, “Normal Velocity”, “Pressure”, “Temperature”, “Scalar”, “Humidity”, “Quality”

value

Number 

units

Stringexamples are: “in/s”, “Pa”, “Celsius”; see interface for available units for each initial condition

pressureType

String“Gage”, “Absolute”

reinitialize

Booleantrue, false

InitialCondition Methods

InitialCondition MethodsDescriptiondata return

ic = new InitialCondition(type)

creates an initial condition object of name ic (can be anything); type = stringno

setValue(value, units)

sets value and units; value = number, units = stringno