56.37 Density object

The Density object specifies the material density.

Access
materialApi.materials()[name].density()


56.37.1 Density(...)

This method creates a Density object.

Path
materialApi.materials()[name].Density
Prototype
odb_Density&
Density(const odb_SequenceSequenceDouble& table,
        bool temperatureDependency,
        int dependencies);

Required argument

table

An odb_SequenceSequenceDouble specifying the items described below.

Optional arguments

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

  • The mass density.

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

Exceptions

RangeError.


56.37.2  Members

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


56.37.3  Corresponding analysis keywords

*DENSITY