Library | File

Class pfcMaterial

# include <pfcPart.h>

class pfcMaterial
 : public virtual pfcParameterOwner,
 : public virtual pfcChild
{
    xaideclare(pfcMaterial)
    ...
};



Description

This class provides information about a material.
Direct Known Subclasses:
wfcWMaterial



Method Summary

voidDelete ()
Deletes the material from the part's database.
xstringGetBendTable ()
voidSetBendTable (xrstring value)
The bend table
xstringGetCondition ()
voidSetCondition (xrstring value)
The condition
optional xstringGetCrossHatchFile ()
voidSetCrossHatchFile (optional xrstring value)
The name of the cross-hatching file used in detailing for this material.
optional xstringGetDescription ()
voidSetDescription (optional xrstring value)
The material description string.
xrealGetEmissivity ()
voidSetEmissivity (xreal value)
The emissivity
optional xstringGetFailureCriterion ()
voidSetFailureCriterion (optional xrstring value)
The failure criterion.
optional xstringGetFatigueMaterialFinish ()
voidSetFatigueMaterialFinish (optional xrstring value)
The fatigue material finish.
optional xstringGetFatigueMaterialType ()
voidSetFatigueMaterialType (optional xrstring value)
The fatigue material type.
optional xstringGetFatigueType ()
voidSetFatigueType (optional xrstring value)
The fatigue type.
pfcMaterialTypeGetFluidMaterialType ()
voidSetFluidMaterialType (pfcMaterialType value)
The material type for the fluid properties.
xrealGetHardness ()
voidSetHardness (xreal value)
The hardness
optional xstringGetHardnessType ()
voidSetHardnessType (optional xrstring value)
The hardness type.
xintGetId ()
The id of the material
xrealGetInitBendYFactor ()
voidSetInitBendYFactor (xreal value)
The initial bend Y-factor
xrealGetMassDensity ()
voidSetMassDensity (xreal value)
The mass density
optional xstringGetMaterialModel ()
voidSetMaterialModel (optional xrstring value)
The type of hyperelastic material model.
optional xboolGetModelDefByTests ()
voidSetModelDefByTests (optional xbool value)
Specifies whether the selected hyperelastic material model is defined using test data.
xstringGetName ()
The name of the material
xstringsequence_ptrGetPermittedFailureCriteria ()
A list of the permitted string values for the material failure criterion.
xstringsequence_ptrGetPermittedFatigueMaterialFinishes ()
A list of the permitted string values for the material fatigue material finish.
xstringsequence_ptrGetPermittedFatigueMaterialTypes ()
A list of the permitted string values for the material fatigue material type.
xstringsequence_ptrGetPermittedFatigueTypes ()
A list of the permitted string values for the material fatigue type.
xstringsequence_ptrGetPermittedMaterialModels ()
A list of the permitted string values for the material model.
xstringsequence_ptrGetPermittedSubTypes ()
A list of the permitted string values for the material sub type.
xrealGetPoissonRatio ()
voidSetPoissonRatio (xreal value)
The isotropic Poisson's ratio
optional pfcMaterialProperty_ptrGetPropertyValue (pfcMaterialPropertyType Type)
Returns the value and units for a material property.
xrealGetShearModulus ()
voidSetShearModulus (xreal value)
The isotropic shear modulus
xrealGetSpecificHeat ()
voidSetSpecificHeat (xreal value)
The specific heat
xrealGetStressLimCompress ()
voidSetStressLimCompress (xreal value)
The isotropic compression ultimate stress.
xrealGetStressLimShear ()
voidSetStressLimShear (xreal value)
The shear ultimate stress.
xrealGetStressLimTension ()
voidSetStressLimTension (xreal value)
The isotropic tensile ultimate stress.
xrealGetStructDampCoef ()
voidSetStructDampCoef (xreal value)
The structural damping coefficient
pfcMaterialTypeGetStructuralMaterialType ()
voidSetStructuralMaterialType (pfcMaterialType value)
The material type for the structural properties.
optional xstringGetSubType ()
voidSetSubType (optional xrstring value)
The isotropic material type's sub type.
pfcMaterialTypeGetThermalMaterialType ()
voidSetThermalMaterialType (pfcMaterialType value)
The material type for the thermal properties.
xrealGetThermConductivity ()
voidSetThermConductivity (xreal value)
The isotropic thermal conductivity
xrealGetThermExpCoef ()
voidSetThermExpCoef (xreal value)
The isotropic thermal expansion coefficient
xrealGetThermExpRefTemp ()
voidSetThermExpRefTemp (xreal value)
The thermal expansion reference temperature
xrealGetYoungModulus ()
voidSetYoungModulus (xreal value)
The isotropic Young's modulus
voidRemoveProperty (pfcMaterialPropertyType Type)
Removes a material property.
voidSave (xrstring FileName)
Writes the specified part material to a file.
voidSetCurrent ()
Sets the current material to its owner part.
voidSetPropertyUnits (pfcMaterialPropertyType Type, xrstring Units, optional xbool Convert)
Sets the units for a material property.
voidSetPropertyValue (pfcMaterialPropertyType Type, pfcMaterialProperty_ptr Value)
Sets the value and units for a material property.


Methods Inherited from Class pfcActionSource:

AddActionListener, RemoveActionListener, AddActionListenerWithType


Methods Inherited from Class pfcParent:

GetChild


Methods Inherited from Class pfcParameterOwner:

GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters


Methods Inherited from Class pfcChild:

GetDBParent, GetOId



Method Detail

xstringGetName ()

The name of the material




xintGetId ()

The id of the material




pfcMaterialTypeGetStructuralMaterialType ()
voidSetStructuralMaterialType (pfcMaterialType value)

The material type for the structural properties.
Manual References:
Solid: Accessing Material Types, Solid: Accessing Material Types, Solid: Accessing Material Types, Solid: Accessing Material Types




pfcMaterialTypeGetThermalMaterialType ()
voidSetThermalMaterialType (pfcMaterialType value)

The material type for the thermal properties.
Manual References:
Solid: Accessing Material Types, Solid: Accessing Material Types, Solid: Accessing Material Types, Solid: Accessing Material Types




pfcMaterialTypeGetFluidMaterialType ()
voidSetFluidMaterialType (pfcMaterialType value)

The material type for the fluid properties.
Manual References:
Solid: Accessing Material Types, Solid: Accessing Material Types, Solid: Accessing Material Types




optional xstringGetDescription ()
voidSetDescription (optional xrstring value)

The material description string.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




xstringGetCondition ()
voidSetCondition (xrstring value)

The condition

If this property is not set on the material, an attempt to retrieve it will throw a pfcXToolkitNotFound exception.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




xstringGetBendTable ()
voidSetBendTable (xrstring value)

The bend table

If this property is not set on the material, an attempt to retrieve it will throw a pfcXToolkitNotFound exception.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




optional xstringGetHardnessType ()
voidSetHardnessType (optional xrstring value)

The hardness type.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




optional xstringGetCrossHatchFile ()
voidSetCrossHatchFile (optional xrstring value)

The name of the cross-hatching file used in detailing for this material.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




optional xstringGetMaterialModel ()
voidSetMaterialModel (optional xrstring value)

The type of hyperelastic material model.

Must be one of the members of pfcMaterial::GetPermittedMaterialModels()
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




xstringsequence_ptrGetPermittedMaterialModels ()

A list of the permitted string values for the material model.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties




optional xstringGetSubType ()
voidSetSubType (optional xrstring value)

The isotropic material type's sub type.

Must be one of the members of pfcMaterial::GetPermittedSubTypes()
Manual References:
Solid: Accessing Material Types, Solid: Accessing Material Types, Solid: Accessing Material Types, Solid: Accessing Material Types




xstringsequence_ptrGetPermittedSubTypes ()

A list of the permitted string values for the material sub type.
Manual References:
Solid: Accessing Material Types, Solid: Accessing Material Types




optional xboolGetModelDefByTests ()
voidSetModelDefByTests (optional xbool value)

Specifies whether the selected hyperelastic material model is defined using test data.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




optional xstringGetFatigueType ()
voidSetFatigueType (optional xrstring value)

The fatigue type.

Must be one of the members of pfcMaterial::GetPermittedFatigueTypes()
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




optional xstringGetFatigueMaterialType ()
voidSetFatigueMaterialType (optional xrstring value)

The fatigue material type.

Must be one of the members of pfcMaterial::GetPermittedFatigueMaterialTypes()
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




optional xstringGetFatigueMaterialFinish ()
voidSetFatigueMaterialFinish (optional xrstring value)

The fatigue material finish.

Must be one of the members of pfcMaterial::GetPermittedFatigueMaterialFinishes()
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




xstringsequence_ptrGetPermittedFatigueTypes ()

A list of the permitted string values for the material fatigue type.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties




xstringsequence_ptrGetPermittedFatigueMaterialTypes ()

A list of the permitted string values for the material fatigue material type.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties




xstringsequence_ptrGetPermittedFatigueMaterialFinishes ()

A list of the permitted string values for the material fatigue material finish.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties




optional xstringGetFailureCriterion ()
voidSetFailureCriterion (optional xrstring value)

The failure criterion.

Must be one of the members of pfcMaterial::GetPermittedFailureCriteria()
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




xstringsequence_ptrGetPermittedFailureCriteria ()

A list of the permitted string values for the material failure criterion.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties




optional pfcMaterialProperty_ptrGetPropertyValue (pfcMaterialPropertyType Type)

Returns the value and units for a material property.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - This means either:

  • The material property unit type was not recognized, OR
  • The material does not have this property assigned.


Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties
Parameters:
Type
The type of property to retrieve.
Returns:
The value and units, or null, if the property is not set on the material.



voidSetPropertyValue (pfcMaterialPropertyType Type, pfcMaterialProperty_ptr Value)

Sets the value and units for a material property.

If the property doesn't exist on the material, this method creates it.

Exceptions thrown (but not limited to):

pfcXToolkitBadContext - This property cannot be created on the material (because other properties assigned to the material already do not permit it).

pfcXToolkitNotValid - The new value for the property lies outside the permitted ranges for the property.

pfcXToolkitInvalidType - The new units for the property are not correct for this property type.

pfcXToolkitCantModify - Cannot change the value of the property because it is driven by a parameter, relation or function.


See Also:
pfcMaterialProperty::Create(xreal, optional xrstring)
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties
Parameters:
Type
The type of property to set.
Value
The value and units to use for the property
Returns:



voidSetPropertyUnits (pfcMaterialPropertyType Type, xrstring Units, optional xbool Convert)

Sets the units for a material property.

Exceptions thrown (but not limited to):

pfcXToolkitBadContext - This property cannot be created on the material (because other properties assigned to the material already do not permit it).

pfcXToolkitNotValid - The new value for the property lies outside the permitted ranges for the property.

pfcXToolkitInvalidType - The new units for the property are not correct for this property type.

pfcXToolkitCantModify - Cannot change the value of the property because it is driven by a parameter, relation or function.


Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties
Parameters:
Type
The type of property to set.
Units
The units to use for the property.
Convert
true to convert the property value to the new units. false or null to interpret the current value in the new units.
Returns:



voidRemoveProperty (pfcMaterialPropertyType Type)

Removes a material property.

Exceptions thrown (but not limited to):

pfcXToolkitNotFound - This property does not exist on the material.

pfcXToolkitBadContext - This property cannot be deleted on the material (because other properties assigned to the material already do not permit it).


Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties
Parameters:
Type
The type of property to remove.
Returns:



xrealGetYoungModulus ()
voidSetYoungModulus (xreal value)

The isotropic Young's modulus






xrealGetPoissonRatio ()
voidSetPoissonRatio (xreal value)

The isotropic Poisson's ratio

If this property is not set on the material, an attempt to retrieve it will throw a pfcXToolkitNotFound exception.




xrealGetShearModulus ()
voidSetShearModulus (xreal value)

The isotropic shear modulus






xrealGetMassDensity ()
voidSetMassDensity (xreal value)

The mass density

This accesses the property value in the units of the model that owns this material. To access the value using its assigned units as you would find in the user interface, use pfcMaterial::GetPropertyValue(pfcMaterialPropertyType) and pfcMaterial::SetPropertyValue(pfcMaterialPropertyType, pfcMaterialProperty_ptr).




xrealGetThermExpCoef ()
voidSetThermExpCoef (xreal value)

The isotropic thermal expansion coefficient






xrealGetThermExpRefTemp ()
voidSetThermExpRefTemp (xreal value)

The thermal expansion reference temperature






xrealGetStructDampCoef ()
voidSetStructDampCoef (xreal value)

The structural damping coefficient






xrealGetStressLimTension ()
voidSetStressLimTension (xreal value)

The isotropic tensile ultimate stress.






xrealGetStressLimCompress ()
voidSetStressLimCompress (xreal value)

The isotropic compression ultimate stress.






xrealGetStressLimShear ()
voidSetStressLimShear (xreal value)

The shear ultimate stress.






xrealGetThermConductivity ()
voidSetThermConductivity (xreal value)

The isotropic thermal conductivity






xrealGetEmissivity ()
voidSetEmissivity (xreal value)

The emissivity

If this property is not set on the material, an attempt to retrieve it will throw a pfcXToolkitNotFound exception.




xrealGetSpecificHeat ()
voidSetSpecificHeat (xreal value)

The specific heat






xrealGetHardness ()
voidSetHardness (xreal value)

The hardness

If this property is not set on the material, an attempt to retrieve it will throw a pfcXToolkitNotFound exception.
Manual References:
Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties, Solid: Accessing Material Properties




xrealGetInitBendYFactor ()
voidSetInitBendYFactor (xreal value)

The initial bend Y-factor

If this property is not set on the material, an attempt to retrieve it will throw a pfcXToolkitNotFound exception.




voidDelete ()

Deletes the material from the part's database.
Manual References:
Solid: Materials, Solid: Materials
Returns:



voidSave (xrstring FileName)

Writes the specified part material to a file.

Exceptions thrown (but not limited to):

pfcXToolkitBadContext - The function is not available in Design Test Mode.


Manual References:
Solid: Materials, Solid: Materials
Parameters:
FileName
The name of the output material file
Returns:



voidSetCurrent ()

Sets the current material to its owner part.
Returns: