Material Class

The Material class allows specification of direction definition for material objects such as internal fans and distributed resistances. Note that materials are assigned using the analysis method:

a.applyMaterial(materialname)

Material Class Properties

Material Properties Type Values

type

String “Fluid”, “Solid”, “Resistance”, “Internal Fan/Pump”, “Centrifugal Pump/Blower”, “Check Valve”, “Rotating Region”, “2-Resistor Electronic Component”, “Printed Circuit Boards”; "Compact Thermal Model"; "Contact Resistance"

name

String  

alignment

String “Cartesian”, “Non-Cartesian”, “Cylindrical”

inletFaces

Array  

outletFaces

Array  

analysisType

String “Known Rotational Speed”, “Known Driving Torque”, “Free Spinning”

thermostat(value)

String "On" or "Off"

thermostatLocation

Integer Surface ID of thermostat surface

thermostatTriggerTemperature

Number  

thermostatTriggerTemperatureUnits

String “Fahrenheit”, “Celsius”, “Rankine”, “Kelvin”

thermostatTriggerType

String "Exceed Trigger"; "Below Trigger"

Material Class Methods

Material Methods Description data return

m = new Material(type)

creates a new material object of name m (can be anything); type = string

no

property(type)

returns property of material type; type = string

yes

setShellThickness(thickness, units)

sets shell thickness (for surface parts); thickness = number; units = string

no

setDirectionNormalTo(e)

reverseDirection()

setDirection(x, y, z)

setOrigin(x, y, z)

Sets device direction for fans, blowers, check valves;

e = entity object;

x, y, z = number

no

setDirections(through, normal1, normal2)

setNormalDirectionNormalTo(e)

setNormalDirection(x, y, z)

Sets resistance directions;

through, normal1, and normal2 = strings

e = entity object;

x, y, z = number

no

readFrom(m)

Copies the material m to this material.

no

setReferenceGasConstant(value, units)

value = gas constant value; units = string (check UI for available units)

no

setReferencePressure(value, units)

value = reference pressure; units = string (check UI for available units)

no

setReferenceTemperature(value, units)

value = reference temperature; units = string (check UI for available units)

no

setThermostatTriggerTemperature (value, units)

value = thermostat trigger temperature; units = string (check UI for available units)

no