OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
hemotkmat.h
Go to the documentation of this file.
1 /*
2  *
3  * ##### ##### ###### ###### ### ###
4  * ## ## ## ## ## ## ## ### ##
5  * ## ## ## ## #### #### ## # ##
6  * ## ## ## ## ## ## ## ##
7  * ## ## ## ## ## ## ## ##
8  * ##### ##### ## ###### ## ##
9  *
10  *
11  * OOFEM : Object Oriented Finite Element Code
12  *
13  * Copyright (C) 1993 - 2013 Borek Patzak
14  *
15  *
16  *
17  * Czech Technical University, Faculty of Civil Engineering,
18  * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19  *
20  * This library is free software; you can redistribute it and/or
21  * modify it under the terms of the GNU Lesser General Public
22  * License as published by the Free Software Foundation; either
23  * version 2.1 of the License, or (at your option) any later version.
24  *
25  * This program is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28  * Lesser General Public License for more details.
29  *
30  * You should have received a copy of the GNU Lesser General Public
31  * License along with this library; if not, write to the Free Software
32  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33  */
34 
35 #ifndef hemotkmat_h
36 #define hemotkmat_h
37 
38 #include "transportmaterial.h"
39 
41 
42 #define _IFT_HeMoTKMaterial_Name "hemotk"
43 #define _IFT_HeMoTKMaterial_a_0 "a_0"
44 #define _IFT_HeMoTKMaterial_nn "nn"
45 #define _IFT_HeMoTKMaterial_phi_c "phi_c"
46 #define _IFT_HeMoTKMaterial_delta_wet "delta_wet"
47 #define _IFT_HeMoTKMaterial_w_h "w_h"
48 #define _IFT_HeMoTKMaterial_n "n"
49 #define _IFT_HeMoTKMaterial_a "a"
50 #define _IFT_HeMoTKMaterial_latent "latent"
51 #define _IFT_HeMoTKMaterial_c "c"
52 #define _IFT_HeMoTKMaterial_rho "rho"
53 #define _IFT_HeMoTKMaterial_chi_eff "chi_eff"
54 #define _IFT_HeMoTKMaterial_por "por"
55 #define _IFT_HeMoTKMaterial_rho_gws "rho_gws"
56 
57 
58 namespace oofem {
67 {
68 protected:
69  double a_0;
70  double nn;
71  double phi_c;
72  double delta_wet;
73 
74  double w_h;
75  double n;
76  double a;
77 
78  double latent;
79  double c;
80  double rho;
81  double chi_eff;
82 
83  double por;
84  double rho_gws;
85 
86 public:
87 
93  HeMoTKMaterial(int n, Domain * d) : TransportMaterial(n, d) { }
95  virtual ~HeMoTKMaterial() { }
96 
97  virtual void giveFluxVector(FloatArray &answer, GaussPoint *gp, const FloatArray &grad, const FloatArray &field, TimeStep *tStep);
98 
99  virtual void giveCharacteristicMatrix(FloatMatrix &answer,
100  MatResponseMode mode,
101  GaussPoint *gp,
102  TimeStep *tStep);
103 
104  virtual double giveCharacteristicValue(MatResponseMode mode,
105  GaussPoint *gp,
106  TimeStep *tStep);
107 
109 
111 
112  virtual double give(int aProperty, GaussPoint *gp);
113 
114  virtual int hasMaterialModeCapability(MaterialMode mode);
115 
116  // identification
117  virtual const char *giveInputRecordName() const { return _IFT_HeMoTKMaterial_Name; }
118  virtual const char *giveClassName() const { return "HeMoTKMaterial"; }
119 
120  double sorption_isotherm(double phi);
121  double inverse_sorption_isotherm(double w);
122  double give_dphi_dw(double w);
123 
124 protected:
125  void computeConductivityMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
126  void matcond1d(FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *tStep);
127  void matcond2d(FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *tStep);
128  void matcond3d(FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *tStep);
129 
130  double computeCapacityCoeff(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
134  double giveHumidity(GaussPoint *gp, ValueModeType mode);
135 
136  double get_latent(double w, double t);
137  double get_ceff(double w, double t);
138  double get_chi(double w, double t);
139 
140  double perm_wt(double w, double t);
141  double perm_ww(double w, double t);
142  double give_delta_gw(double phi);
143  double give_dpgw_dt(double t, double phi);
144 
145  double get_b(double w, double t);
146  double get_sat(double w, double t);
147  double give_p_gws(double t);
148 
149  // post-processing, poi export
150  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
151 };
152 } // end namespace oofem
153 #endif // hemotkmat_h
double sorption_isotherm(double phi)
Definition: hemotkmat.C:424
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
double nn
Constant-exponent (obtained from experiments) [Bazant and Najjar, 1972].
Definition: hemotkmat.h:70
Class and object Domain.
Definition: domain.h:115
double give_dphi_dw(double w)
Definition: hemotkmat.C:471
#define _IFT_HeMoTKMaterial_Name
Definition: hemotkmat.h:42
void matcond3d(FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *tStep)
Definition: hemotkmat.C:251
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
void matcond2d(FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *tStep)
Definition: hemotkmat.C:209
double give_p_gws(double t)
Definition: hemotkmat.C:508
double get_sat(double w, double t)
Definition: hemotkmat.C:554
virtual const char * giveClassName() const
Definition: hemotkmat.h:118
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
MatResponseMode
Describes the character of characteristic material matrix.
HeMoTKMaterial(int n, Domain *d)
Constructor.
Definition: hemotkmat.h:93
virtual void giveCharacteristicMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Computes characteristic matrix of receiver in given integration point.
Definition: hemotkmat.C:126
void matcond1d(FloatMatrix &d, GaussPoint *gp, MatResponseMode mode, TimeStep *tStep)
Definition: hemotkmat.C:170
virtual int hasMaterialModeCapability(MaterialMode mode)
Tests if material supports material mode.
Definition: hemotkmat.C:45
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in Reduced form.
Definition: hemotkmat.C:604
double w_h
Constant water content (obtained from experiments) [Pedersen, 1990].
Definition: hemotkmat.h:74
virtual double give(int aProperty, GaussPoint *gp)
Returns the value of material property 'aProperty'.
Definition: hemotkmat.C:82
double giveHumidity(GaussPoint *gp, ValueModeType mode)
Returns positive value of humidity, use VM_Velocity for previous (equilibrated) value.
Definition: hemotkmat.C:339
double a
Constant (obtained from experiments) [Pedersen, 1990].
Definition: hemotkmat.h:76
virtual ~HeMoTKMaterial()
Destructor.
Definition: hemotkmat.h:95
double give_delta_gw(double phi)
Definition: hemotkmat.C:402
double get_b(double w, double t)
Definition: hemotkmat.C:536
double get_ceff(double w, double t)
Definition: hemotkmat.C:567
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
double computeCapacityCoeff(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: hemotkmat.C:298
double c
Thermal capacity.
Definition: hemotkmat.h:79
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual double giveCharacteristicValue(MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Computes the characteristic value of receiver in given integration point, respecting its history...
Definition: hemotkmat.C:143
double por
Porosity.
Definition: hemotkmat.h:83
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: hemotkmat.C:56
double phi_c
Constant-relative humidity (obtained from experiments) [Bazant and Najjar, 1972]. ...
Definition: hemotkmat.h:71
double n
Constant-exponent (obtained from experiments) [Pedersen, 1990].
Definition: hemotkmat.h:75
double get_latent(double w, double t)
Definition: hemotkmat.C:524
double chi_eff
Effective thermal conductivity.
Definition: hemotkmat.h:81
Class representing the general Input Record.
Definition: inputrecord.h:101
double get_chi(double w, double t)
Definition: hemotkmat.C:580
double perm_wt(double w, double t)
Definition: hemotkmat.C:384
Abstract base class for all constitutive models for transport problems.
double give_dpgw_dt(double t, double phi)
Definition: hemotkmat.C:489
double latent
Latent heat of evaporation.
Definition: hemotkmat.h:78
This class implements a coupled heat and mass transfer material model.
Definition: hemotkmat.h:66
virtual void giveFluxVector(FloatArray &answer, GaussPoint *gp, const FloatArray &grad, const FloatArray &field, TimeStep *tStep)
Returns the flux for the field and its gradient.
Definition: hemotkmat.C:93
double a_0
Constant (obtained from experiments) [Bazant and Najjar, 1972].
Definition: hemotkmat.h:69
double delta_wet
Constant-water vapor permeability (obtained from experiments) [Bazant and Najjar, 1972]...
Definition: hemotkmat.h:72
virtual const char * giveInputRecordName() const
Definition: hemotkmat.h:117
the oofem namespace is to define a context or scope in which all oofem names are defined.
double perm_ww(double w, double t)
Definition: hemotkmat.C:364
double rho_gws
Saturation volume density.
Definition: hemotkmat.h:84
Class representing integration point in finite element program.
Definition: gausspoint.h:93
double rho
Volume density.
Definition: hemotkmat.h:80
Class representing solution step.
Definition: timestep.h:80
virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode)
Returns true if stiffness matrix of receiver is symmetric Default implementation returns true...
Definition: hemotkmat.C:592
double inverse_sorption_isotherm(double w)
Definition: hemotkmat.C:447
void computeConductivityMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: hemotkmat.C:151

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011