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 Properties | Type | Values |
type |
String | “Velocity”, “Normal Velocity”, “Pressure”, “Temperature”, “Scalar”, “Humidity”, “Steam Quality” |
value |
Number | |
units |
String | examples are: “in/s”, “Pa”, “Celsius”; see interface for available units for each initial condition |
pressureType |
String | “Gage”, “Absolute” |
reinitialize |
Boolean | true, false |
InitialCondition Methods
InitialCondition Methods | Description | data return |
ic = new InitialCondition(type) |
creates an initial condition object of name ic (can be anything); type = string | no |
setValue(value, units) |
sets value and units; value = number, units = string | no |