OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
fiberedcs.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 fiberedcs_h
36 #define fiberedcs_h
37 
38 #include "../sm/CrossSections/structuralcrosssection.h"
39 #include "../sm/Materials/structuralmaterial.h"
40 #include "element.h"
41 #include "dictionary.h"
42 #include "floatarray.h"
43 #include "floatmatrix.h"
44 #include "interface.h"
45 
47 
48 #define _IFT_FiberedCrossSection_Name "fiberedcs"
49 #define _IFT_FiberedCrossSection_nfibers "nfibers"
50 #define _IFT_FiberedCrossSection_fibermaterials "fibermaterials"
51 #define _IFT_FiberedCrossSection_thicks "thicks"
52 #define _IFT_FiberedCrossSection_widths "widths"
53 #define _IFT_FiberedCrossSection_fiberycentrecoords "fiberycentrecoords"
54 #define _IFT_FiberedCrossSection_fiberzcentrecoords "fiberzcentrecoords"
55 #define _IFT_FiberedCrossSection_thick "thick"
56 #define _IFT_FiberedCrossSection_width "width"
57 
58 
59 namespace oofem {
60 class GaussPoint;
61 class FiberedCrossSectionModelInterface;
62 
90 {
91 protected:
96  double thick;
97  double width;
98  double area;
100 
101 public:
102  FiberedCrossSection(int n, Domain * d) : StructuralCrossSection(n, d), fiberMaterials(), fiberThicks(), fiberWidths(),
103  fiberYcoords(), fiberZcoords()
104  {
105  thick = 0.;
106  width = 0.;
107  area = -1.0;
108  }
109 
110  virtual ~FiberedCrossSection() { }
111 
112  virtual void giveRealStress_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
113  virtual void giveRealStress_PlaneStrain(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
114  virtual void giveRealStress_PlaneStress(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
115  virtual void giveRealStress_1d(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
116  virtual void giveRealStress_Warping(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep);
117 
118  virtual void giveStiffnessMatrix_3d(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
119  virtual void giveStiffnessMatrix_PlaneStress(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
120  virtual void giveStiffnessMatrix_PlaneStrain(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
121  virtual void giveStiffnessMatrix_1d(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
122 
123 
124  virtual void giveGeneralizedStress_Beam2d(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
125  virtual void giveGeneralizedStress_Beam3d(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
126  virtual void giveGeneralizedStress_Plate(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
127  virtual void giveGeneralizedStress_Shell(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
128  virtual void giveGeneralizedStress_MembraneRot(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
129  virtual void giveGeneralizedStress_PlateSubSoil(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep);
130 
131  virtual void giveCharMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
132 
133  virtual void give2dBeamStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
134  virtual void give3dBeamStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
135  virtual void give2dPlateStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
136  virtual void give3dShellStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
137  virtual void giveMembraneRotStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
138  virtual void give2dPlateSubSoilStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
139 
141  virtual double give(int aProperty, GaussPoint *gp)
142  {
143  OOFEM_ERROR("not implemented yet");
144  return 0.0;
145  };
146  virtual FloatArray *imposeStressConstrainsOnGradient(GaussPoint *gp, FloatArray *gradientStressVector3d);
147  virtual FloatArray *imposeStrainConstrainsOnGradient(GaussPoint *gp, FloatArray *gradientStrainVector3d);
148 
149  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
150 
163  void giveFiberMaterialStiffnessMatrix(FloatMatrix &fiberMatrix, MatResponseMode mode, GaussPoint *layerGp, TimeStep *tStep);
164 
165  virtual double give(CrossSectionProperty a, GaussPoint *gp);
166 
167  // identification and auxiliary functions
168  virtual const char *giveInputRecordName() const { return _IFT_FiberedCrossSection_Name; }
169  virtual const char *giveClassName() const { return "FiberedCrossSection"; }
171 
172  virtual void createMaterialStatus(GaussPoint &iGP); // ES
173 
174  virtual void printYourself();
175  double computeIntegralThickWidth();
178 
181 
182  virtual int checkConsistency();
183 
184  virtual int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip)
185  {
186  OOFEM_ERROR("not implemented");
187  return 0;
188  }
189 
190  virtual int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip)
191  {
192  OOFEM_ERROR("not implemented");
193  return 0;
194  }
195 
196  virtual int estimatePackSize(DataStream &buff, GaussPoint *ip)
197  {
198  OOFEM_ERROR("not implemented");
199  return 0;
200  }
201 
202 
203  virtual void giveFirstPKStresses(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedFIncrement, TimeStep *tStep)
204  { OOFEM_ERROR("not implemented"); }
205  virtual void giveCauchyStresses(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedFIncrement, TimeStep *tStep)
206  { OOFEM_ERROR("not implemented"); }
207  virtual void giveStiffnessMatrix_dPdF(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
208  { OOFEM_ERROR("not implemented"); }
209  virtual void giveStiffnessMatrix_dCde(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
210  { OOFEM_ERROR("not implemented"); }
211 
212 
213 protected:
214  double giveArea();
215 };
216 
221 {
222 public:
224 
233  virtual void FiberedCrossSectionInterface_computeStrainVectorInFiber(FloatArray &answer, const FloatArray &masterGpStrain,
234  GaussPoint *slaveGp, TimeStep *tStep) = 0;
235 };
236 } // end namespace oofem
237 #endif // fiberedcs_h
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
virtual void giveCharMaterialStiffnessMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Computes the stiffness matrix of receiver in given integration point, respecting its history...
Definition: fiberedcs.C:203
virtual void giveStiffnessMatrix_1d(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: fiberedcs.C:106
virtual contextIOResultType restoreIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp)
Reads integration point state to output stream.
Definition: fiberedcs.C:539
Class and object Domain.
Definition: domain.h:115
virtual void give3dShellStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Method for computing 3d shell stiffness matrix.
Definition: fiberedcs.C:298
virtual void createMaterialStatus(GaussPoint &iGP)
Definition: fiberedcs.C:445
virtual void printYourself()
Prints receiver state on stdout. Useful for debugging.
Definition: fiberedcs.C:492
virtual void giveGeneralizedStress_MembraneRot(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep)
Definition: fiberedcs.C:191
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
double width
Total width.
Definition: fiberedcs.h:97
FloatArray fiberThicks
Thickness for each fiber.
Definition: fiberedcs.h:93
virtual bool isCharacteristicMtrxSymmetric(MatResponseMode mode)
Check for symmetry of stiffness matrix.
Definition: fiberedcs.C:620
double thick
Total thickness.
Definition: fiberedcs.h:96
virtual void giveGeneralizedStress_Beam3d(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep)
Definition: fiberedcs.C:122
CrossSectionProperty
List of properties possibly stored in a cross section.
Definition: crosssection.h:58
virtual void giveRealStress_PlaneStrain(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep)
Definition: fiberedcs.C:57
virtual FloatArray * imposeStressConstrainsOnGradient(GaussPoint *gp, FloatArray *gradientStressVector3d)
Returns modified gradient of stress vector, which is used to bring stresses back to yield surface...
Definition: fiberedcs.C:318
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual double give(int aProperty, GaussPoint *gp)
Returns the value of cross section property.
Definition: fiberedcs.h:141
virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep)
Returns the integration point corresponding value in Reduced form.
Definition: fiberedcs.C:388
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual void giveRealStress_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep)
Definition: fiberedcs.C:50
virtual int estimatePackSize(DataStream &buff, GaussPoint *ip)
Estimates the necessary pack size to hold all packed data of receiver.
Definition: fiberedcs.h:196
virtual void giveRealStress_PlaneStress(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep)
Definition: fiberedcs.C:64
virtual void giveCauchyStresses(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedFIncrement, TimeStep *tStep)
Computes the Cauchy stress vector for a given increment of deformation gradient and given integration...
Definition: fiberedcs.h:205
virtual void giveRealStress_1d(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep)
Definition: fiberedcs.C:71
virtual void give2dPlateStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Method for computing 2d plate stiffness matrix.
Definition: fiberedcs.C:291
virtual int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip)
Pack all necessary data of integration point (according to element parallel_mode) into given communic...
Definition: fiberedcs.h:184
FiberedCrossSection(int n, Domain *d)
Definition: fiberedcs.h:102
virtual void giveMembraneRotStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Method for computing membrane stiffness matrix with added drilling stiffness.
Definition: fiberedcs.C:304
#define _IFT_FiberedCrossSection_Name
Definition: fiberedcs.h:48
virtual int checkConsistency()
Allows programmer to test some internal data, before computation begins.
Definition: fiberedcs.C:634
#define OOFEM_ERROR(...)
Definition: error.h:61
virtual void give2dBeamStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Computes the stiffness matrix for 2d beams.
Definition: fiberedcs.C:224
MaterialMode giveCorrespondingSlaveMaterialMode(MaterialMode)
Definition: fiberedcs.C:567
virtual void giveStiffnessMatrix_dCde(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes the material stiffness matrix dCde of receiver in a given integration point, respecting its history.
Definition: fiberedcs.h:209
double area
Total area.
Definition: fiberedcs.h:98
This class implements a fibered cross section in a finite element problem.
Definition: fiberedcs.h:89
virtual void giveFirstPKStresses(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedFIncrement, TimeStep *tStep)
Computes the First Piola-Kirchoff stress vector for a given deformation gradient and integration poin...
Definition: fiberedcs.h:203
virtual const char * giveClassName() const
Definition: fiberedcs.h:169
virtual void giveGeneralizedStress_PlateSubSoil(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep)
Definition: fiberedcs.C:197
virtual void giveStiffnessMatrix_3d(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Method for computing the stiffness matrix.
Definition: fiberedcs.C:85
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual void giveGeneralizedStress_Shell(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep)
Definition: fiberedcs.C:184
virtual void giveGeneralizedStress_Plate(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep)
Definition: fiberedcs.C:177
void giveFiberMaterialStiffnessMatrix(FloatMatrix &fiberMatrix, MatResponseMode mode, GaussPoint *layerGp, TimeStep *tStep)
Method for computing 1d fiber stiffness matrix of receiver.
Definition: fiberedcs.C:611
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
virtual void giveGeneralizedStress_Beam2d(FloatArray &answer, GaussPoint *gp, const FloatArray &generalizedStrain, TimeStep *tStep)
Computes the generalized stress vector for given strain and integration point.
Definition: fiberedcs.C:115
virtual FloatArray * imposeStrainConstrainsOnGradient(GaussPoint *gp, FloatArray *gradientStrainVector3d)
Returns modified gradient of strain vector, which is used to compute plastic strain increment...
Definition: fiberedcs.C:356
virtual int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip)
Unpack and updates all necessary data of given integration point (according to element parallel_mode)...
Definition: fiberedcs.h:190
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: fiberedcs.C:405
int numberOfFibers
Number of fibers.
Definition: fiberedcs.h:95
Class Interface.
Definition: interface.h:82
virtual const char * giveInputRecordName() const
Definition: fiberedcs.h:168
GaussPoint * giveSlaveGaussPoint(GaussPoint *gp, int)
Definition: fiberedcs.C:456
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual ~FiberedCrossSection()
Definition: fiberedcs.h:110
The element interface required by FiberedCrossSection.
Definition: fiberedcs.h:220
virtual void giveStiffnessMatrix_dPdF(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes the material stiffness matrix dPdF of receiver in a given integration point, respecting its history.
Definition: fiberedcs.h:207
virtual void giveStiffnessMatrix_PlaneStrain(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: fiberedcs.C:99
Abstract base class for all structural cross section models.
the oofem namespace is to define a context or scope in which all oofem names are defined.
IntArray fiberMaterials
Material of each fiber.
Definition: fiberedcs.h:92
virtual contextIOResultType saveIPContext(DataStream &stream, ContextMode mode, GaussPoint *gp)
Stores integration point state to output stream.
Definition: fiberedcs.C:511
virtual void give2dPlateSubSoilStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Method for computing subsoil stiffness matrix for plates.
Definition: fiberedcs.C:310
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual void giveRealStress_Warping(FloatArray &answer, GaussPoint *gp, const FloatArray &reducedStrain, TimeStep *tStep)
Definition: fiberedcs.C:78
FloatArray fiberWidths
Width for each fiber.
Definition: fiberedcs.h:94
virtual void give3dBeamStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Computes the stiffness matrix for 2d beams.
Definition: fiberedcs.C:231
virtual void giveStiffnessMatrix_PlaneStress(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: fiberedcs.C:92

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