OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
structuralms.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 structuralms_h
36 #define structuralms_h
37 
38 #include "matstatus.h"
39 #include "floatarray.h"
40 #include "matstatmapperint.h"
41 
42 namespace oofem {
43 class GaussPoint;
44 class Dictionary;
45 class Domain;
46 
66 {
67 protected:
76 
89 
90 public:
94  virtual ~StructuralMaterialStatus();
95 
96  virtual void printOutputAt(FILE *file, TimeStep *tStep);
97 
98  virtual void initTempStatus();
99  virtual void updateYourself(TimeStep *tStep);
100 
101  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
102  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
103 
105  const FloatArray &giveStrainVector() const { return strainVector; }
107  const FloatArray &giveStressVector() const { return stressVector; }
109  const FloatArray &givePVector() const { return PVector; }
111  const FloatArray &giveCVector() const { return CVector; }
113  const FloatArray &giveFVector() const { return FVector; }
119  const FloatArray &giveTempPVector() const { return tempPVector; }
121  const FloatArray &giveTempCVector() const { return tempCVector; }
123  const FloatArray &giveTempFVector() const { return tempFVector; }
125  void letStrainVectorBe(const FloatArray &v) { strainVector = v; }
127  void letStressVectorBe(const FloatArray &v) { stressVector = v; }
129  void letPVectorBe(const FloatArray &v) { PVector = v; }
131  void letCVectorBe(const FloatArray &v) { CVector = v; }
133  void letFVectorBe(const FloatArray &v) { FVector = v; }
135  void letTempStressVectorBe(const FloatArray &v) { tempStressVector = v; }
137  void letTempStrainVectorBe(const FloatArray &v) { tempStrainVector = v; }
139  void letTempPVectorBe(const FloatArray &v) { tempPVector = v; }
141  void letTempCVectorBe(const FloatArray &v) { tempCVector = v; }
143  void letTempFVectorBe(const FloatArray &v) { tempFVector = v; }
144 
145  virtual const char *giveClassName() const { return "StructuralMaterialStatus"; }
146 
148  virtual void copyStateVariables(const MaterialStatus &iStatus);
149  virtual void addStateVariables(const MaterialStatus &iStatus);
150 };
151 } // end namespace oofem
152 #endif // structuralms_h
FloatArray PVector
Equilibrated first Piola-Kirchhoff stress vector.
Definition: structuralms.h:78
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: structuralms.C:96
void letTempStrainVectorBe(const FloatArray &v)
Assigns tempStrainVector to given vector v.
Definition: structuralms.h:137
Class and object Domain.
Definition: domain.h:115
void letTempFVectorBe(const FloatArray &v)
Assigns tempFVector to given vector v.
Definition: structuralms.h:143
const FloatArray & giveTempCVector() const
Returns the const pointer to receiver's temporary Cauchy stress vector.
Definition: structuralms.h:121
void letStrainVectorBe(const FloatArray &v)
Assigns strain vector to given vector v.
Definition: structuralms.h:125
FloatArray tempStrainVector
Temporary strain vector in reduced form (to find balanced state)
Definition: structuralms.h:75
const FloatArray & givePVector() const
Returns the const pointer to receiver's first Piola-Kirchhoff stress vector.
Definition: structuralms.h:109
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
FloatArray tempFVector
Temporary deformation gradient in reduced form (to find balanced state)
Definition: structuralms.h:88
This class implements a structural material status information.
Definition: structuralms.h:65
FloatArray stressVector
Equilibrated stress vector in reduced form.
Definition: structuralms.h:71
const FloatArray & giveCVector() const
Returns the const pointer to receiver's Cauchy stress vector.
Definition: structuralms.h:111
virtual ~StructuralMaterialStatus()
Destructor.
Definition: structuralms.C:70
virtual const char * giveClassName() const
Definition: structuralms.h:145
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
Definition: structuralms.C:73
void letTempCVectorBe(const FloatArray &v)
Assigns tempPVector to given vector v.
Definition: structuralms.h:141
FloatArray tempCVector
Temporary Cauchy stress vector (to find balanced state)
Definition: structuralms.h:84
StructuralMaterialStatus(int n, Domain *d, GaussPoint *g)
Constructor. Creates new StructuralMaterialStatus with number n, belonging to domain d and Integratio...
Definition: structuralms.C:42
const FloatArray & giveTempPVector() const
Returns the const pointer to receiver's temporary first Piola-Kirchhoff stress vector.
Definition: structuralms.h:119
virtual void addStateVariables(const MaterialStatus &iStatus)
Definition: structuralms.C:198
FloatArray tempPVector
Temporary first Piola-Kirchhoff stress vector (to find balanced state)
Definition: structuralms.h:80
virtual void copyStateVariables(const MaterialStatus &iStatus)
Functions for MaterialStatusMapperInterface.
Definition: structuralms.C:180
FloatArray CVector
Equilibrated Cauchy stress vector.
Definition: structuralms.h:82
const FloatArray & giveTempStrainVector() const
Returns the const pointer to receiver's temporary strain vector.
Definition: structuralms.h:115
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: structuralms.C:157
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
FloatArray strainVector
Equilibrated strain vector in reduced form.
Definition: structuralms.h:69
void letTempStressVectorBe(const FloatArray &v)
Assigns tempStressVector to given vector v.
Definition: structuralms.h:135
const FloatArray & giveStressVector() const
Returns the const pointer to receiver's stress vector.
Definition: structuralms.h:107
const FloatArray & giveFVector() const
Returns the const pointer to receiver's deformation gradient vector.
Definition: structuralms.h:113
void letFVectorBe(const FloatArray &v)
Assigns FVector to given vector v.
Definition: structuralms.h:133
FloatArray FVector
Equilibrated deformation gradient in reduced form.
Definition: structuralms.h:86
const FloatArray & giveTempFVector() const
Returns the const pointer to receiver's temporary deformation gradient vector.
Definition: structuralms.h:123
void letStressVectorBe(const FloatArray &v)
Assigns stressVector to given vector v.
Definition: structuralms.h:127
void letPVectorBe(const FloatArray &v)
Assigns PVector to given vector v.
Definition: structuralms.h:129
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: structuralms.C:108
void letCVectorBe(const FloatArray &v)
Assigns CVector to given vector v.
Definition: structuralms.h:131
const FloatArray & giveTempStressVector() const
Returns the const pointer to receiver's temporary stress vector.
Definition: structuralms.h:117
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: structuralms.C:133
the oofem namespace is to define a context or scope in which all oofem names are defined.
const FloatArray & giveStrainVector() const
Returns the const pointer to receiver's strain vector.
Definition: structuralms.h:105
FloatArray tempStressVector
Temporary stress vector in reduced form (increments are used mainly in nonlinear analysis) ...
Definition: structuralms.h:73
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
void letTempPVectorBe(const FloatArray &v)
Assigns tempPVector to given vector v.
Definition: structuralms.h:139

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