Viscosity object

The Viscosity object specifies mechanical viscosity.

The following topics are discussed:

Access

materialApi.materials()[name].viscosity()

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, k.

  • 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.

Members

The Viscosity object has members with the same names and descriptions as the arguments to the Viscosity method.

In addition, the Viscosity object can have the following member:

Prototype

odb_Trs trs() const;
trs

A Trs object.

Corresponding analysis keywords