OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
trabbonematerial.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 trabbonematerial_h
36 #define trabbonematerial_h
37 
38 #include "../sm/Materials/structuralmaterial.h"
39 #include "floatarray.h"
40 #include "floatmatrix.h"
41 #include "cltypes.h"
42 #include "matconst.h"
43 #include "matstatus.h"
44 #include "../sm/Materials/structuralms.h"
45 #include "cltypes.h"
46 
48 
49 #define _IFT_TrabBoneMaterial_Name "trabbone"
50 #define _IFT_TrabBoneMaterial_E0 "e0"
51 #define _IFT_TrabBoneMaterial_Eil "eil"
52 #define _IFT_TrabBoneMaterial_Eie "eie"
53 #define _IFT_TrabBoneMaterial_kie "kie"
54 #define _IFT_TrabBoneMaterial_Ek "ek"
55 #define _IFT_TrabBoneMaterial_Cc "cc"
56 #define _IFT_TrabBoneMaterial_Cc2 "cc2"
57 #define _IFT_TrabBoneMaterial_EpsC "epsc"
58 #define _IFT_TrabBoneMaterial_SigYp "sigyp"
59 #define _IFT_TrabBoneMaterial_SigYn "sigyn"
60 #define _IFT_TrabBoneMaterial_adam "adam"
61 
62 
63 namespace oofem {
68 {
69 protected:
70  double tempAlpha, alpha;
71  double tempDam, dam;
72  double smtrx, slope;
73  double sigC, matConstC;
75 
76 public:
77  TrabBoneMaterialStatus(int n, Domain * d, GaussPoint * g);
78  virtual ~TrabBoneMaterialStatus();
79 
80  void printOutputAt(FILE *file, TimeStep *tStep);
81 
82  double giveAlpha();
83  double giveTempAlpha();
84  double giveDam();
85  double giveTempDam();
86  double giveSmtrx();
87  double giveSlope();
88  double giveSigC();
89  double giveMatConstC();
93 
94  void setTempAlpha(double al) { tempAlpha = al; }
95  void setTempDam(double da) { tempDam = da; }
96  void setSmtrx(double smt) { smtrx = smt; }
97  void setSlope(double slp) { slope = slp; }
98  void setSigC(double sc) { sigC = sc; }
99  void setMatConstC(double mcc) { matConstC = mcc; }
100  void setTempEpsp(double epsip) { tempEpsp.at(1) = epsip; }
101  void setTempDepsp(double depsip) { tempDepsp.at(1) = depsip; }
102 
103 
104  // definition
105  virtual const char *giveClassName() const { return "TrabBoneMaterialStatus"; }
106 
107  virtual void initTempStatus();
108  virtual void updateYourself(TimeStep *tStep);
109 
110  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
111  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
112 };
113 
114 
115 
120 {
121 protected:
122  double E0, Eil, Eie, kie, Ek, Cc, Cc2, EpsC, SigYp, SigYn, adam;
123 
124 public:
125  TrabBoneMaterial(int n, Domain * d);
126 
127  void performPlasticityReturn(GaussPoint *gp, const FloatArray &totalStrain);
128 
129  void computeDensification(GaussPoint *gp, const FloatArray &totalStrain);
130 
131  double computeDamageParam(double alpha, GaussPoint *gp);
132 
133  double computeDamage(GaussPoint *gp, TimeStep *tStep);
134 
135  virtual void computeCumPlastStrain(double &alpha, GaussPoint *gp, TimeStep *tStep);
136 
137  virtual void give1dStressStiffMtrx(FloatMatrix &answer,
139  TimeStep *tStep);
140 
141  virtual void giveRealStressVector_1d(FloatArray &answer, GaussPoint *gp,
142  const FloatArray &reducedStrain, TimeStep *tStep);
143 
144  virtual int hasMaterialModeCapability(MaterialMode);
145 
146  virtual const char *giveInputRecordName() const { return _IFT_TrabBoneMaterial_Name; }
147  virtual const char *giveClassName() const { return "TrabBoneMaterial"; }
148 
150 
151  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
152 };
153 } // end namespace oofem
154 #endif
const FloatArray & giveTempIncPlasStrainVector()
const FloatArray & giveTempPlasStrainVector()
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
virtual const char * giveClassName() const
void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
Defines several material constant (respective their representative number).
#define _IFT_TrabBoneMaterial_Name
double & at(int i)
Coefficient access function.
Definition: floatarray.h:131
void setTempDepsp(double depsip)
This class implements a structural material status information.
Definition: structuralms.h:65
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
TrabBoneMaterialStatus(int n, Domain *d, GaussPoint *g)
virtual const char * giveClassName() const
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Trabecular bone material model.
MatResponseMode
Describes the character of characteristic material matrix.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
This class implements associated Material Status to TrabBoneMaterial.
virtual const char * giveInputRecordName() const
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
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 void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
Abstract base class for all "structural" constitutive models.
the oofem namespace is to define a context or scope in which all oofem names are defined.
const FloatArray & givePlasStrainVector()
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.

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