Viscosity(...)
This method creates a Viscosity object.
Path
materialApi.materials()[name].Viscosity
Prototype
odb_Viscosity& Viscosity(const odb_SequenceSequenceDouble& table, const odb_String& type, bool temperatureDependency, int dependencies);
Required arguments
- table
An odb_SequenceSequenceDouble specifying the items described below.
Optional arguments
- type
An odb_String specifying the type of viscosity. The default value is "NEWTONIAN".
- temperatureDependency
A Boolean specifying whether the data depend on temperature. The default value is false.
- dependencies
An Int specifying the number of field variable dependencies. The default value is 0.
Table data
If type=NEWTONIAN, the table data specify the following:
Viscosity, .
Temperature, if the data depend on temperature.
Value of the first field variable, if the data depend on field variables.
Value of the second field variable.
Etc.
Return value
A Viscosity object.
Exceptions
RangeError.