OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
idmgrad1.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 idmgrad1_h
36 #define idmgrad1_h
37 
39 #include "../sm/Materials/graddpmaterialextensioninterface.h"
40 
41 #define _IFT_IDGMaterial_Name "idmgrad1"
42 
43 namespace oofem {
48 {
49 protected:
53  int averType;
55  double beta, t;
56 
57 
58 public:
60  IDGMaterial(int n, Domain * d);
62  virtual ~IDGMaterial();
63 
64  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const;
65  // identification and auxiliary functions
66  virtual const char *giveClassName() const { return "IDGMaterial"; }
67  virtual const char *giveInputRecordName() const { return _IFT_IDGMaterial_Name; }
69 
72  return static_cast< GradDpMaterialExtensionInterface * >(this);
73  } else {
74  return NULL;
75  }
76  }
77  virtual int hasMaterialModeCapability(MaterialMode mode);
78 
79  virtual void givePDGradMatrix_uu(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
80  virtual void givePDGradMatrix_ku(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
81  virtual void givePDGradMatrix_uk(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
82  virtual void givePDGradMatrix_kk(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
83  virtual void givePDGradMatrix_LD(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
84  virtual void giveRealStressVectorGrad(FloatArray &answer1, double &answer2, GaussPoint *gp, const FloatArray &totalStrain, double nonlocalCumulatedStrain, TimeStep *tStep);
85 
86  void giveStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
87  virtual void give1dStressStiffMtrx(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep);
88  void give1dKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
89  void give1dGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
92  void givePlaneStressGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
95  void givePlaneStrainGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
96  void giveInternalLength(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep);
98 };
99 
100 
105 {
106 public:
107  IDGMaterialStatus(int n, Domain * d, GaussPoint * g);
108  virtual ~IDGMaterialStatus();
109 
110  virtual const char *giveClassName() const { return "IDGMaterialStatus"; }
111 
112  virtual void initTempStatus();
113  virtual void updateYourself(TimeStep *);
114 
115  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
116  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
117 
118  virtual double giveNonlocalCumulatedStrain() { return nonlocalCumulatedStrain; }
119  virtual void setNonlocalCumulatedStrain(double nonlocalCumulatedStrain) { this->nonlocalCumulatedStrain = nonlocalCumulatedStrain; }
120 };
121 } // end namespace oofem
122 #endif // idmgrad1_h
void giveInternalLength(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: idmgrad1.C:269
virtual const char * giveClassName() const
Definition: idmgrad1.h:66
Class and object Domain.
Definition: domain.h:115
void givePlaneStrainGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: idmgrad1.C:248
virtual void givePDGradMatrix_kk(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Right lower block.
Definition: idmgrad1.C:591
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
virtual void givePDGradMatrix_uu(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Left upper block.
Definition: idmgrad1.C:534
IDGMaterial(int n, Domain *d)
Constructor.
Definition: idmgrad1.C:53
virtual void giveRealStressVectorGrad(FloatArray &answer1, double &answer2, GaussPoint *gp, const FloatArray &totalStrain, double nonlocalCumulatedStrain, TimeStep *tStep)
gradient - based giveRealStressVector
Definition: idmgrad1.C:379
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: femcmpnn.C:51
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: idmgrad1.C:451
This class implements associated Material Status to IsotropicDamageMaterial1.
Definition: idm1.h:117
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
MatResponseMode
Describes the character of characteristic material matrix.
virtual int hasMaterialModeCapability(MaterialMode mode)
Tests if material supports material mode.
Definition: idmgrad1.C:89
double beta
Parameters specifying how the length scale parameter l is adjusted.
Definition: idmgrad1.h:55
Material status for gradient-enhanced isotropic damage model for concrete in tension.
Definition: idmgrad1.h:104
virtual void givePDGradMatrix_LD(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Stress-based averaging.
Definition: idmgrad1.C:610
#define _IFT_IDGMaterial_Name
Definition: idmgrad1.h:41
void give1dKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: idmgrad1.C:119
void giveStiffnessMatrix(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes the stiffness matrix for giveRealStressVector of receiver in given integration point...
Definition: idmgrad1.C:95
double internalLength
Length scale parameter.
Definition: idmgrad1.h:51
Material interface for gradient material models.
void givePlaneStressStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Method for computing plane stress stiffness matrix of receiver.
Definition: idmgrad1.C:159
virtual void givePDGradMatrix_ku(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Left lower block.
Definition: idmgrad1.C:553
void givePlaneStressKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: idmgrad1.C:178
int averType
Parameter specifiying averaging type(0 - classical, 1 - distance based, 2 - stress based) ...
Definition: idmgrad1.h:53
Abstract base class representing a material status information.
Definition: matstatus.h:84
virtual const char * giveClassName() const
Definition: idmgrad1.h:110
Class representing vector of real numbers.
Definition: floatarray.h:82
void givePlaneStressGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: idmgrad1.C:194
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual void setNonlocalCumulatedStrain(double nonlocalCumulatedStrain)
Definition: idmgrad1.h:119
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Gradient-enhanced Isotropic Damage model for concrete in tension,.
Definition: idmgrad1.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
void give1dGprime(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: idmgrad1.C:136
void giveInternalLengthDerivative(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: idmgrad1.C:337
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
Definition: idmgrad1.h:70
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual const char * giveInputRecordName() const
Definition: idmgrad1.h:67
This class implements a simple local isotropic damage model for concrete in tension.
Definition: idm1.h:137
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: femcmpnn.C:64
void givePlaneStrainKappaMatrix(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Definition: idmgrad1.C:233
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: idmgrad1.C:70
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 void give1dStressStiffMtrx(FloatMatrix &answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep)
Method for computing 1d stiffness matrix of receiver.
Definition: idmgrad1.C:106
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual void givePDGradMatrix_uk(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Right upper block.
Definition: idmgrad1.C:572
virtual ~IDGMaterial()
Destructor.
Definition: idmgrad1.C:63
void givePlaneStrainStiffMtrx(FloatMatrix &answer, MatResponseMode mode, GaussPoint *gp, TimeStep *tStep)
Method for computing plane strain stiffness matrix of receiver.
Definition: idmgrad1.C:214
virtual double giveNonlocalCumulatedStrain()
Definition: idmgrad1.h:118

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