OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
lsmastermat.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 lsmastermat_h
36 #define lsmastermat_h
37 
38 #include "../sm/Materials/structuralmaterial.h"
39 #include "../sm/Materials/structuralms.h"
41 #include "dictionary.h"
42 #include "floatarray.h"
43 #include "floatmatrix.h"
44 
46 
47 #define _IFT_LargeStrainMasterMaterial_Name "lsmastermat"
48 #define _IFT_LargeStrainMasterMaterial_m "m"
49 #define _IFT_LargeStrainMasterMaterial_slaveMat "slavemat"
50 
51 
52 namespace oofem {
53 class GaussPoint;
54 class Domain;
55 
64 {
65 protected:
68 
70  int slaveMat;
72  double m;
73 
74 
75 public:
78 
80 
81  virtual int hasNonLinearBehaviour() { return 1; }
82  virtual const char *giveInputRecordName() const { return _IFT_LargeStrainMasterMaterial_Name; }
83  virtual const char *giveClassName() const { return "LargeStrainMasterMaterial"; }
84 
86 
87  virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode) { return false; }
88 
89  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
90 
91  virtual void give3dMaterialStiffnessMatrix_dPdF(FloatMatrix & answer,
93  GaussPoint * gp,
94  TimeStep * tStep);
95 
96  virtual void giveRealStressVector_3d(FloatArray &answer, GaussPoint *, const FloatArray &, TimeStep *)
97  { OOFEM_ERROR("not implemented, this material is designed for large strains only"); }
98  virtual void giveFirstPKStressVector_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &vF, TimeStep *tStep);
99 
101  void constructTransformationMatrix(FloatMatrix &answer, const FloatMatrix &eigenVectors);
102  void constructL1L2TransformationMatrices(FloatMatrix &answer1, FloatMatrix &answer2, const FloatArray &eigenValues, FloatArray &stress, double E1, double E2, double E3);
103 
104  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
105 };
106 
107 //=============================================================================
108 
109 
111 {
112 protected:
113  FloatMatrix Pmatrix, TLmatrix, transformationMatrix;
114  int slaveMat;
115 
116 public:
117  LargeStrainMasterMaterialStatus(int n, Domain *d, GaussPoint *g, int s);
119 
120 
121  const FloatMatrix &givePmatrix() { return Pmatrix; }
122  const FloatMatrix &giveTLmatrix() { return TLmatrix; }
123  const FloatMatrix &giveTransformationMatrix() { return transformationMatrix; }
124 
125  void setPmatrix(const FloatMatrix &values) { Pmatrix = values; }
126  void setTLmatrix(const FloatMatrix &values) { TLmatrix = values; }
127  void setTransformationMatrix(const FloatMatrix &values) { transformationMatrix = values; }
128 
129  virtual void printOutputAt(FILE *file, TimeStep *tStep);
130 
131  virtual void initTempStatus();
132 
133  virtual void updateYourself(TimeStep *);
134 
135  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
136 
137  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
138 
139  virtual const char *giveClassName() const { return "LargeStrainMasterMaterialStatus"; }
140 };
141 } // end namespace oofem
142 #endif // misesmat_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
#define _IFT_LargeStrainMasterMaterial_Name
Definition: lsmastermat.h:47
virtual void give3dMaterialStiffnessMatrix_dPdF(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep)
Definition: lsmastermat.C:349
Class and object Domain.
Definition: domain.h:115
const FloatMatrix & giveTransformationMatrix()
Definition: lsmastermat.h:123
virtual void giveFirstPKStressVector_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &vF, TimeStep *tStep)
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
Definition: lsmastermat.C:82
virtual const char * giveInputRecordName() const
Definition: lsmastermat.h:82
double m
Specifies the strain tensor.
Definition: lsmastermat.h:72
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
This class implements a structural material status information.
Definition: structuralms.h:65
LinearElasticMaterial * giveLinearElasticMaterial()
Definition: lsmastermat.h:85
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: lsmastermat.C:63
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: femcmpnn.C:51
const FloatMatrix & giveTLmatrix()
Definition: lsmastermat.h:122
MatResponseMode
Describes the character of characteristic material matrix.
This class is a abstract base class for all linear elastic material models in a finite element proble...
virtual const char * giveClassName() const
Definition: lsmastermat.h:139
virtual const char * giveClassName() const
Definition: lsmastermat.h:83
void setTLmatrix(const FloatMatrix &values)
Definition: lsmastermat.h:126
virtual void giveRealStressVector_3d(FloatArray &answer, GaussPoint *, const FloatArray &, TimeStep *)
Default implementation relies on giveRealStressVector for second Piola-Kirchoff stress.
Definition: lsmastermat.h:96
#define OOFEM_ERROR(...)
Definition: error.h:61
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: lsmastermat.C:75
LinearElasticMaterial * linearElasticMaterial
Reference to the basic elastic material.
Definition: lsmastermat.h:67
Abstract base class representing a material status information.
Definition: matstatus.h:84
void setPmatrix(const FloatMatrix &values)
Definition: lsmastermat.h:125
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
LargeStrainMasterMaterial(int n, Domain *d)
Definition: lsmastermat.C:52
virtual bool isCharacteristicMtrxSymmetric(MatResponseMode rMode)
Returns true if stiffness matrix of receiver is symmetric Default implementation returns true...
Definition: lsmastermat.h:87
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to stream, for given time step.
Definition: femcmpnn.h:171
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.
void setTransformationMatrix(const FloatMatrix &values)
Definition: lsmastermat.h:127
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: femcmpnn.C:64
the oofem namespace is to define a context or scope in which all oofem names are defined.
void constructTransformationMatrix(FloatMatrix &answer, const FloatMatrix &eigenVectors)
transformation matrices
Definition: lsmastermat.C:156
void constructL1L2TransformationMatrices(FloatMatrix &answer1, FloatMatrix &answer2, const FloatArray &eigenValues, FloatArray &stress, double E1, double E2, double E3)
Definition: lsmastermat.C:204
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in Reduced form.
Definition: lsmastermat.C:395
virtual void initTempStatus(GaussPoint *gp)
Initializes temporary variables stored in integration point status at the beginning of new time step...
Definition: material.C:267
virtual int hasNonLinearBehaviour()
Returns nonzero if receiver is non linear.
Definition: lsmastermat.h:81
Class representing integration point in finite element program.
Definition: gausspoint.h:93
int slaveMat
'slave' material model number.
Definition: lsmastermat.h:70
Class representing solution step.
Definition: timestep.h:80
Large strain master material.
Definition: lsmastermat.h:63

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