GetSecondaryMaterial
Returns an additional fluid material.
Calling convention:
const GetSecondaryMaterial (int* indx)
Argument | Data type | Description |
---|---|---|
indx | int* | Additional fluid material ID. |
You can find a definition of this function in the CaeUtils_Exp_IMaterial.hxx header file.
The following example shows how to retrieve materials properties from both sides of a conductance during a solve.
When the conductance has the convective nature, you can access materials as follows:
const IMaterial* pFluidMaterial = pContext->GetFluidMaterial();
const IMaterial* pSolidMaterial = pContext->GetMaterial();
When the conductance is between two solid materials, you can access materials as follows:
const IMaterial* pSolidMaterial1 = pContext->GetMaterial();
const IMaterial* pSolidMaterial2 = pSolidMaterial1->GetSecondaryMaterial(1);