Go to the documentation of this file.
20 #ifndef __property_hpp__
21 #define __property_hpp__
192 #endif // __property_hpp__
realVector densities_
list of density of materials
bool makeNameIndex()
creates a mapp
bool readDictionary()
read from dict
wordVector materials_
list of name of materials
~property() override=default
Default destructor.
const auto & densities() const
Return the list of densities.
property(const word &fileName, repository *owner=nullptr)
const word & material(uint32 i) const
Return the material name of material i.
Manages file pathes, manupulate and combines them.
const auto & materials() const
Return list of material names.
bool writeDictionary()
write to dict
bool material(uint32 i, word &name) const
Get the name of material i.
wordHashMap< uint32 > nameIndex_
rapid mapping from name to index
property & operator=(const property &)=default
Default copy assignment.
const repository * owner() const override
bool nameToIndex(const word &name, uint32 &idx) const
Get the name of material in index idx Return true, if the name found, otherwise false.
auto numMaterials() const
Return number of materials.
virtual word name() const
name/keyword of entry
property holds the pure properties of materials.
bool density(uint32 i, real &rho) const
Get the density of material i.
uint32 numMaterials_
number of materials
real density(uint32 i) const
Return density of material i.
TypeInfo("property")
Type info.