OOFEM 3.0
Loading...
Searching...
No Matches
bazantnajjarmat.C
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 - 2025 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
36#include "gausspoint.h"
37#include "mathfem.h"
38#include "classfactory.h"
39
40namespace oofem {
42
43void
56
57
58double
59BazantNajjarMoistureTransferMaterial :: giveMoistureCapacity(GaussPoint *gp, TimeStep *tStep) const
60{
61 return this->moistureCapacity;
62}
63
64double
65BazantNajjarMoistureTransferMaterial :: givePermeability(GaussPoint *gp, TimeStep *tStep) const
66{
67 double humidity = clamp(this->giveHumidity(gp, VM_Total), 0., 1.);
68 return C1 * ( alpha0 + ( 1. - alpha0 ) / ( 1. + pow( ( 1. - humidity ) / ( 1. - hC ), n ) ) );
69}
70
71double
72BazantNajjarMoistureTransferMaterial :: giveHumidity(GaussPoint *gp, ValueModeType mode) const
73{
74 auto field = static_cast< TransportMaterialStatus * >( giveStatus(gp) )->giveTempField();
75 if ( ( field > 1.0 ) || ( field < 0.0 ) ) {
76 OOFEM_WARNING("Relative humidity %.5f is out of range 0.0 - 1.0", field );
77 }
78 return field;
79}
80} // end namespace oofem
#define _IFT_BazantNajjarMoistureTransferMaterial_capa
#define _IFT_BazantNajjarMoistureTransferMaterial_hc
#define _IFT_BazantNajjarMoistureTransferMaterial_alpha0
#define _IFT_BazantNajjarMoistureTransferMaterial_c1
#define _IFT_BazantNajjarMoistureTransferMaterial_n
#define REGISTER_Material(class)
double alpha0
fraction minimal/maximal permeability [-]
double C1
maximal permeability [kg/ m s]
double giveHumidity(GaussPoint *gp, ValueModeType mode) const override
double n
exponent in nonlinear permeability function [-]
double moistureCapacity
sorption isotherm derivative [kg/m^3]
virtual MaterialStatus * giveStatus(GaussPoint *gp) const
Definition material.C:206
#define OOFEM_WARNING(...)
Definition error.h:80
#define IR_GIVE_OPTIONAL_FIELD(__ir, __value, __id)
Definition inputrecord.h:75
#define IR_GIVE_FIELD(__ir, __value, __id)
Definition inputrecord.h:67
double clamp(int a, int lower, int upper)
Returns the clamped value of a between upper and lower.
Definition mathfem.h:88

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011