24#ifndef _GEMA_PLUGIN_COUPLED_TH_MATERIAL_H_
25#define _GEMA_PLUGIN_COUPLED_TH_MATERIAL_H_
29#include <gmpFemPhysicsCommonMaterial.h>
30#include <gmpHydraulicMaterial.h>
40 : GmpFemPhysicsCommonMaterial(typeIndex, typeName, logger)
42 _thermoMaterial = NULL;
43 _hydroMaterial = NULL;
56 virtual const QVariantMap* materialMetaDataMap();
60 GmpFemPhysicsCommonMaterial* hydro)
62 _thermoMaterial = thermo;
63 _hydroMaterial = hydro;
70 GmpHydraulicMaterial*
hydro()
const {
return dynamic_cast<GmpHydraulicMaterial*
>(_hydroMaterial); }
73 virtual bool thermoHydraulicConstitutiveModel(
const GmElement* e,
GmMatrix& Ded,
const GmVector* coord,
const GmVector& Time,
double Tg,
unsigned nc,
bool ips)
const ;
76 virtual bool setInitialConditions(
const GmElement* e,
const GmVector* coord,
int ip)
const;
79 virtual double solidBulkModulus(
const GmElement* e,
const GmVector* coord,
int ip)
const;
82 virtual double fluidDensity(
const GmElement* e,
const GmVector* coord,
int ip)
const;
85 virtual double fluidHeatCapacity(
const GmElement* e,
const GmVector* coord,
int ip)
const;
Basic class for a coupled thermo-hydro-mechanical material object, storing references for a mechanica...
Definition gmpCoupledTHMaterial.h:36
GmpFemPhysicsCommonMaterial * _thermoMaterial
Thermal material.
Definition gmpCoupledTHMaterial.h:99
static GmpFemPhysicsCommonMaterial * instance(GmSimulationData *simulation, int typeIndex, QString typeName, const GmLogCategory &logger)
A "factory" function used to register the material with the physics material factory.
Definition gmpCoupledTHMaterial.h:50
void setPhysicsMaterials(GmpFemPhysicsCommonMaterial *thermo, GmpFemPhysicsCommonMaterial *hydro)
Sets the thermal, hydraulic and mechanical materials for this coupled material. Materials CAN be NULL...
Definition gmpCoupledTHMaterial.h:59
GmpFemPhysicsCommonMaterial * _hydroMaterial
hydraulic material.
Definition gmpCoupledTHMaterial.h:100
virtual ~GmpCoupledTHMaterial()
Destructor.
Definition gmpCoupledTHMaterial.h:47
ElementPropertyIds
IDs for material element properties.
Definition gmpCoupledTHMaterial.h:90
@ KSS_ID
Id for retrieving the solid graind bulk Modulus accessor.
Definition gmpCoupledTHMaterial.h:91
@ CPF_ID
Id for retrieving the fluid specific heat capacity.
Definition gmpCoupledTHMaterial.h:93
@ NUM_PROPERTY_IDS
The number of property ids above.
Definition gmpCoupledTHMaterial.h:96
@ RHOF_ID
Id for retrieving the fluid density accessor.
Definition gmpCoupledTHMaterial.h:92
GmpCoupledTHMaterial(int typeIndex, QString typeName, const GmLogCategory &logger)
Constructor. Gets as parameters the material index and its name.
Definition gmpCoupledTHMaterial.h:39
GmpHydraulicMaterial * hydro() const
Returns the thermal material or NULL if none was configured.
Definition gmpCoupledTHMaterial.h:70
Declaration of useful configuration definitions for the plugin library.