OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
kelvinChM.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 kelvinchm_h
36 #define kelvinchm_h
37 
38 #include "rheoChM.h"
39 
40 namespace oofem {
45 {
46 public:
47  KelvinChainMaterialStatus(int n, Domain * d, GaussPoint * g, int nunits);
49 
50  virtual void printOutputAt(FILE *file, TimeStep *tStep);
51 
52  virtual void initTempStatus();
53  virtual void updateYourself(TimeStep *tStep);
54 
55  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
56  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
57 
58  // definition
59  virtual const char *giveClassName() const { return "KelvinChainMaterialStatus"; }
60 };
61 
62 
63 
68 {
69 public:
70  KelvinChainMaterial(int n, Domain * d);
71  virtual ~KelvinChainMaterial() { }
72 
73  // identification and auxiliary functions
74  virtual int hasNonLinearBehaviour() { return 0; }
75  virtual const char *giveClassName() const { return "KelvinChainMaterial"; }
76 
78 
79  virtual void giveShrinkageStrainVector(FloatArray &answer,
80  GaussPoint *gp,
81  TimeStep *tStep,
82  ValueModeType mode)
83  { answer.clear(); }
84 
85  virtual void giveEigenStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, ValueModeType mode);
86 
87  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
88 
89  virtual void giveRealStressVector(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
90 
91  void computeHiddenVars(GaussPoint *gp, TimeStep *tStep);
92 
93 protected:
94  virtual int hasIncrementalShrinkageFormulation() { return 0; }
95 
96  virtual void computeCharCoefficients(FloatArray &answer, double tPrime, GaussPoint *gp, TimeStep *tStep);
97 
98  virtual double giveEModulus(GaussPoint *gp, TimeStep *tStep);
99 
100  LinearElasticMaterial *giveLinearElasticMaterial();
101 };
102 } // end namespace oofem
103 #endif // kelvinchm_h
virtual void giveShrinkageStrainVector(FloatArray &answer, GaussPoint *gp, TimeStep *tStep, ValueModeType mode)
Computes, for the given integration point, the strain vector induced by stress-independent shrinkage...
Definition: kelvinChM.h:79
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
Definition: kelvinChM.C:295
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
virtual ~KelvinChainMaterial()
Definition: kelvinChM.h:71
This class implements a solidifying Kelvin chain model describing a viscoelastic material.
Definition: kelvinChM.h:67
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual const char * giveClassName() const
Definition: kelvinChM.h:59
void clear()
Clears receiver (zero size).
Definition: floatarray.h:206
This class implements associated Material Status to RheoChainMaterial.
Definition: rheoChM.h:71
virtual int hasIncrementalShrinkageFormulation()
If only incremental shrinkage strain formulation is provided, then total shrinkage strain must be tra...
Definition: kelvinChM.h:94
This class implements a rheologic chain model describing a viscoelastic material. ...
Definition: rheoChM.h:130
This class is a abstract base class for all linear elastic material models in a finite element proble...
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: kelvinChM.C:314
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 KelvinChainMaterial.
Definition: kelvinChM.h:44
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: kelvinChM.C:302
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
KelvinChainMaterialStatus(int n, Domain *d, GaussPoint *g, int nunits)
Definition: kelvinChM.C:290
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual const char * giveClassName() const
Definition: kelvinChM.h:75
virtual int hasNonLinearBehaviour()
Returns nonzero if receiver is non linear.
Definition: kelvinChM.h:74
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: kelvinChM.C:327
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: kelvinChM.C:308
the oofem namespace is to define a context or scope in which all oofem names are defined.
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