OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
m4.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 m4_h
36 #define m4_h
37 
39 #include "../sm/Materials/structuralms.h"
40 
42 
43 #define _IFT_M4Material_Name "microplane_m4"
44 #define _IFT_M4Material_c3 "c3"
45 #define _IFT_M4Material_c4 "c4"
46 #define _IFT_M4Material_c20 "c20"
47 #define _IFT_M4Material_k1 "k1"
48 #define _IFT_M4Material_k2 "k2"
49 #define _IFT_M4Material_k3 "k3"
50 #define _IFT_M4Material_k4 "k4"
51 #define _IFT_M4Material_talpha "talpha"
52 
53 
54 namespace oofem {
61 {
62 public:
63  M4MaterialStatus(int n, Domain *d, GaussPoint *g);
64  virtual ~M4MaterialStatus();
65 
66  // definition
67  virtual const char *giveClassName() const { return "M4MaterialStatus"; }
68 
69  virtual void initTempStatus();
70  virtual void updateYourself(TimeStep *tStep);
71 
72  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
73  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
74 };
75 
76 
82 {
83 protected:
84 
85  double c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12;
86  double c13, c14, c15, c16, c17, c18, c19, c20; /*c... fixed empirical constants*/
87  double k1, k2, k3, k4, k5, mu;
88  double EV, ED, ET;
89  double talpha;
90 
91 public:
98  M4Material(int n, Domain *d);
100  virtual ~M4Material() { }
101 
102  virtual void giveThermalDilatationVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep);
103 
104  virtual void giveRealMicroplaneStressVector(FloatArray &answer, Microplane *mplane, const FloatArray &strain, TimeStep *tStep);
105 
106  double macbra(double x);
107  double FVplus(double ev, double k1, double c13, double c14, double c15, double Ev);
108  double FVminus(double ev, double k1, double k3, double k4, double E);
109  double FDminus(double ed, double k1, double c7, double c8, double c9, double E);
110  double FDplus(double ed, double k1, double c5, double c6, double c7, double c20, double E);
111  double FN(double en, double sv, double k1, double c1, double c2, double c3, double c4,
112  double E, double Ev);
113  double FT(double sn, double ev, double k1, double k2, double c10,
114  double c11, double c12, double Et);
115 
116  virtual void updateVolumetricStressTo(Microplane *mPlane, double sigv);
117 
119  virtual const char *giveInputRecordName() const { return _IFT_M4Material_Name; }
120  virtual const char *giveClassName() const { return "M4Material"; }
121 
122 protected:
124 };
125 } // end namespace oofem
126 #endif // m4_h
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: m4.C:316
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: m4.C:322
double c20
Definition: m4.h:86
This class implements a structural material status information.
Definition: structuralms.h:65
Implementation of microplane material model according to Bazant's boundary curve approach.
Definition: m4.h:81
double macbra(double x)
Returns the positive part of given float.
Definition: mathfem.h:115
virtual const char * giveClassName() const
Definition: m4.h:120
double c9
Definition: m4.h:85
virtual const char * giveClassName() const
Definition: m4.h:67
#define _IFT_M4Material_Name
Definition: m4.h:43
double EV
Definition: m4.h:88
virtual ~M4Material()
Destructor.
Definition: m4.h:100
double mu
Definition: m4.h:87
#define E(p)
Definition: mdm.C:368
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: m4.C:310
Class representing microplane integration point in finite element program.
Definition: microplane.h:74
MaterialStatus * CreateMicroplaneStatus(GaussPoint *gp)
Definition: m4.h:123
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
M4MaterialStatus(int n, Domain *d, GaussPoint *g)
Definition: m4.C:301
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
double talpha
Definition: m4.h:89
Abstract base class for all microplane models according to Bazant's approach.
Related material model status to M4Material class for storing history variables in particular integra...
Definition: m4.h:60
Class representing the general Input Record.
Definition: inputrecord.h:101
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual ~M4MaterialStatus()
Definition: m4.C:306
virtual const char * giveInputRecordName() const
Definition: m4.h:119
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: m4.C:328
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:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011