~shape() override=default
uint32Vector shapePropertyIds_
list of property ids of shapes (index)
#define fatalExit
Fatal exit.
bool propIdValid(uint32 propId) const
virtual real Inertial_yy(uint32 index) const =0
real indexToDensity(uint32 index) const
bool indexValid(uint32 index) const
const auto & shapePropertyIds() const
bool indexToDensity(uint32 index, real &rho) const
virtual realVector Inertia() const =0
shape(const word &fileName, repository *owner, const property &prop)
const wordVector & materialNames() const
virtual realVector mass() const =0
virtual bool Inertia_xx(uint32 index, real &Ixx) const =0
bool writeToDict(dictionary &dict) const override
const property & property_
property of materials
virtual bool Inertia_yy(uint32 index, real &Iyy) const =0
virtual real Inertial_xx(uint32 index) const =0
virtual dictionary & dict()
ref to this dictionary, if it is a dictionary
virtual bool Inertia_zz(uint32 index, real &Izz) const =0
bool shapeNameToIndex(const word &name, uint32 &index) const
virtual real maxBoundingSphere() const =0
const repository * owner() const override
virtual real minBoundingSphere() const =0
auto numMaterials() const
Return number of materials.
virtual word name() const
name/keyword of entry
property holds the pure properties of materials.
uint32 propertyId(uint32 index) const
wordVector materialNames_
list of material names
virtual realVector density() const =0
real density(uint32 i) const
Return density of material i.
const auto & properties() const
bool shapeNameToPropId(const word &name, int8 &propId) const
virtual real Inertial_zz(uint32 index) const =0
virtual realVector boundingDiameter() const =0
Dictionary holds a set of data entries or sub-dictionaries that are enclosed in a curely braces or ar...
bool readFromDictionary2()