GetDensity
Returns the material's density for a given temperature and pressure.
Calling convention:
double GetDensity (double temp, double press)
Argument | Data type | Description |
---|---|---|
temp | double | The given temperature. |
press | double | The given pressure. |
You can find a definition of this function in theCaeUtils_Exp_IMaterial.hxx header file.
Example:
const IMaterial* pMaterial = pContext->GetDensity();
double density = pMaterial->GetDensity(temp, press);