(9)

To treat material data. This class enables reading material data in material data files. It also returns these informations by means of its members. More...

Public Member Functions

 Material ()
 Default consructor. More...
 
 Material (const Material &m)
 Copy constructor.
 
 ~Material ()
 Destructor.
 
int set (int m, const string &name)
 Associate to material code number n the material named name More...
 
string getName (int m) const
 Return material name for material with code m More...
 
int getCode (size_t i) const
 Return material code for i-th material.
 
size_t getNbMat () const
 Return Number of read materials.
 
void setCode (int m)
 Associate code m to current material.
 
int check (int c)
 
real_t Density ()
 Return constant density.
 
real_t Density (const Point< real_t > &x, real_t t)
 Return density at point x and time t
 
real_t SpecificHeat ()
 Return constant specific heat.
 
real_t SpecificHeat (const Point< real_t > &x, real_t t)
 Return specific heat at point x and time t
 
real_t ThermalConductivity ()
 Return constant thermal conductivity.
 
real_t ThermalConductivity (const Point< real_t > &x, real_t t)
 Return thermal conductivity at point x and time t
 
real_t MeltingTemperature ()
 Return constant melting temperature.
 
real_t MeltingTemperature (const Point< real_t > &x, real_t t)
 Return melting temperature at point x and time t
 
real_t EvaporationTemperature ()
 Return constant evaporation temperature.
 
real_t EvaporationTemperature (const Point< real_t > &x, real_t t)
 Return evaporation temperature at point x and time t
 
real_t ThermalExpansion ()
 Return constant thermal expansion coefficient.
 
real_t ThermalExpansion (const Point< real_t > &x, real_t t)
 Return thermal expansion coefficient at point x and time t
 
real_t LatentHeatForMelting ()
 Return constant latent heat for melting.
 
real_t LatentHeatForMelting (const Point< real_t > &x, real_t t)
 Return latent heat for melting at point x and time t
 
real_t LatentHeatForEvaporation ()
 Return constant latent heat for evaporation.
 
real_t LatentHeatForEvaporation (const Point< real_t > &x, real_t t)
 Return latent heat for evaporation at point x and time t
 
real_t DielectricConstant ()
 Return constant dielectric constant.
 
real_t DielectricConstant (const Point< real_t > &x, real_t t)
 Return dielectric constant at point x and time t
 
real_t ElectricConductivity ()
 Return constant electric conductivity.
 
real_t ElectricConductivity (const Point< real_t > &x, real_t t)
 Return electric conductivity at point x and time t
 
real_t ElectricResistivity ()
 Return constant electric resistivity.
 
real_t ElectricResistivity (const Point< real_t > &x, real_t t)
 Return electric resistivity at point x and time t
 
real_t MagneticPermeability ()
 Return constant magnetic permeability.
 
real_t MagneticPermeability (const Point< real_t > &x, real_t t)
 Return magnetic permeability at point x and time t
 
real_t Viscosity ()
 Return constant viscosity.
 
real_t Viscosity (const Point< real_t > &x, real_t t)
 Return viscosity at point x and time t
 
real_t YoungModulus ()
 Return constant Young modulus.
 
real_t YoungModulus (const Point< real_t > &x, real_t t)
 Return Young modulus at point x and time t
 
real_t PoissonRatio ()
 Return constant Poisson ratio.
 
real_t PoissonRatio (const Point< real_t > &x, real_t t)
 Return Poisson ratio at point x and time t
 
real_t Property (int i)
 Return constant i-th property.
 
real_t Property (int i, const Point< real_t > &x, real_t t)
 Return i-th property at point x and time t
 
Materialoperator= (const Material &m)
 Operator =.
 

Detailed Description

To treat material data. This class enables reading material data in material data files. It also returns these informations by means of its members.

Constructor & Destructor Documentation

◆ Material()

Material ( )

Default consructor.

It initializes the class and searches for the path where are material data files.

Member Function Documentation

◆ check()

int check ( int  c)

Check if material code c is present.

Returns
0 if succeeded, 1 if not.

◆ getName()

string getName ( int  m) const

Return material name for material with code m

If such a material is not found, return a blank string.

◆ set()

int set ( int  m,
const string &  name 
)

Associate to material code number n the material named name

Returns
Number of materials