3.1.1. Abstract Material Baseclass

class MaterialAbstract[source]

Bases: object

A base class common to all material objects. It contains interfaces relevant for all materials, including unit initiation and converter objects.

E: float
rhoConvert(outputUnit: str)[source]

Get the conversion factor from the current unit to the output unit for density.

Parameters

outputUnit (str) – The desired output unit for stress.

Returns

The conversion factor between the base unit and the output unit.

Return type

float

sConvert(outputUnit: str)[source]

Get the conversion factor from the current unit to the output unit in stress units.

Parameters

outputUnit (str) – The desired output unit for stress.

Returns

The conversion factor between the base unit and the output unit.

Return type

float