OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
doublepowerlaw.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 - 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 #include "doublepowerlaw.h"
36 #include "mathfem.h"
37 #include "classfactory.h"
38 
39 namespace oofem {
40 REGISTER_Material(DoublePowerLawMaterial);
41 
44 {
45  IRResultType result; // Required by IR_GIVE_FIELD macro
46 
52 
54 }
55 
56 
57 double
59 {
60 
61  // computes the value of creep function at time t
62  // when load is acting from time t_prime
63  // t-t_prime = duration of loading
64 
65  double e0;
66  double h1, h2, h3;
67 
68  e0 = 1.50 * E28;
69 
70  h1 = pow(t - t_prime, n);
71  h2 = pow(t_prime, -m) + alpha;
72  h3 = fi1 / e0;
73 
74  return 1. / e0 + h1 * h2 * h3;
75 }
76 } // end namespace oofem
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: maxwellChM.C:258
#define _IFT_DoublePowerLawMaterial_e28
#define _IFT_DoublePowerLawMaterial_m
#define _IFT_DoublePowerLawMaterial_fi1
#define _IFT_DoublePowerLawMaterial_n
double E28
Young modulus at age of 28 days [MPa].
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual double computeCreepFunction(double t, double t_prime, GaussPoint *gp, TimeStep *tStep)
Evaluation of the creep compliance function at time t when loading is acting from time t_prime...
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
REGISTER_Material(DummyMaterial)
the oofem namespace is to define a context or scope in which all oofem names are defined.
#define IR_GIVE_FIELD(__ir, __value, __id)
Macro facilitating the use of input record reading methods.
Definition: inputrecord.h:69
#define _IFT_DoublePowerLawMaterial_alpha
double fi1
Basic creep coefficient.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80

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:28 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011