Material Class Reference
[Physical properties of media]
#include <Material.h>
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.
Public Member Functions | |
| int | check (int c) |
| Check if material code c is present. | |
| double | Density (const Point< double > &x, double t) |
| Return density at point x and time t. | |
| double | Density () |
| Return constant density. | |
| double | DielectricConstant (const Point< double > &x, double t) |
| Return dielectric constant at point x and time t. | |
| double | DielectricConstant () |
| Return constant dielectric constant. | |
| double | ElectricConductivity (const Point< double > &x, double t) |
| Return electric conductivity at point x and time t. | |
| double | ElectricConductivity () |
| Return constant electric conductivity. | |
| double | ElectricResistivity (const Point< double > &x, double t) |
| Return electric resistivity at point x and time t. | |
| double | ElectricResistivity () |
| Return constant electric resistivity. | |
| double | EvaporationTemperature (const Point< double > &x, double t) |
| Return evaporation temperature at point x and time t. | |
| double | EvaporationTemperature () |
| Return constant evaporation temperature. | |
| int | getCode (size_t i) const |
| Return material code for i-th material. | |
| string | getName (int m) const |
| Return material name for material with code m. | |
| size_t | getNbMat () const |
| Return Number of read materials. | |
| double | LatentHeatForEvaporation (const Point< double > &x, double t) |
| Return latent heat for evaporation at point x and time t. | |
| double | LatentHeatForEvaporation () |
| Return constant latent heat for evaporation. | |
| double | LatentHeatForMelting (const Point< double > &x, double t) |
| Return latent heat for melting at point x and time t. | |
| double | LatentHeatForMelting () |
| Return constant latent heat for melting. | |
| double | MagneticPermeability (const Point< double > &x, double t) |
| Return magnetic permeability at point x and time t. | |
| double | MagneticPermeability () |
| Return constant magnetic permeability. | |
| Material (const Material &m) | |
| Copy constructor. | |
| Material () | |
| Default consructor. | |
| double | MeltingTemperature (const Point< double > &x, double t) |
| Return melting temperature at point x and time t. | |
| double | MeltingTemperature () |
| Return constant melting temperature. | |
| Material & | operator= (const Material &m) |
| Operator =. | |
| double | PoissonRatio (const Point< double > &x, double t) |
| Return Poisson ratio at point x and time t. | |
| double | PoissonRatio () |
| Return constant Poisson ratio. | |
| double | Property (int i, const Point< double > &x, double t) |
| Return i-th property at point x and time t. | |
| double | Property (int i) |
| Return constant i-th property. | |
| int | set (int m, const string &name, int type) |
| Associate to material code number n the material named name. | |
| void | setCode (int m) |
| Associate code m to current material. | |
| double | SpecificHeat (const Point< double > &x, double t) |
| Return specific heat at point x and time t. | |
| double | SpecificHeat () |
| Return constant specific heat. | |
| double | ThermalConductivity (const Point< double > &x, double t) |
| Return thermal conductivity at point x and time t. | |
| double | ThermalConductivity () |
| Return constant thermal conductivity. | |
| double | ThermalExpansion (const Point< double > &x, double t) |
| Return thermal expansion coefficient at point x and time t. | |
| double | ThermalExpansion () |
| Return constant thermal expansion coefficient. | |
| double | Viscosity (const Point< double > &x, double t) |
| Return viscosity at point x and time t. | |
| double | Viscosity () |
| Return constant viscosity. | |
| double | YoungModulus (const Point< double > &x, double t) |
| Return Young modulus at point x and time t. | |
| double | YoungModulus () |
| Return constant Young modulus. | |
| ~Material () | |
| Destructor. | |
Constructor & Destructor Documentation
| Material | ( | ) |
Default consructor.
It initializes the class and searches for the path where are material data files.
Member Function Documentation
| int check | ( | int | c | ) |
Check if material code c is present.
- Return values:
-
ans 0 if succeeded, 1 if not.
| string getName | ( | int | m | ) | const |
Return material name for material with code m.
If such a material is not found, return a blank string.
| int set | ( | int | m, | |
| const string & | name, | |||
| int | type | |||
| ) |
Associate to material code number n the material named name.
- Return values:
-
nb_mat Number of materials