OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
misesmatnl.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 misesmatnl_h
36 
37 #include "Materials/misesmat.h"
40 #include "cltypes.h"
41 
43 
44 #define _IFT_MisesMatNl_Name "misesmatnl"
45 #define _IFT_MisesMatNl_averagingtype "averagingtype"
46 #define _IFT_MisesMatNl_exp "exp"
47 #define _IFT_MisesMatNl_rf "rf"
48 
49 
50 namespace oofem {
56 {
57 protected:
58  // STATE VARIABLE DECLARATION
59  // Equivalent strain for avaraging
61 
62 public:
63  MisesMatNlStatus(int n, Domain * d, GaussPoint * g);
64  virtual ~MisesMatNlStatus();
65 
66  virtual void printOutputAt(FILE *file, TimeStep *tStep);
67 
68  // STATE VARIABLE
69  // declare state variable access and modification methods
72  void setLocalCumPlasticStrainForAverage(double ls) { localCumPlasticStrainForAverage = ls; }
73 
74  // DEFINITION
75  virtual const char *giveClassName() const { return "MisesMatNlStatus"; }
76 
77  virtual void initTempStatus();
78 
79  virtual void updateYourself(TimeStep *tStep);
80  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
81  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
82 
84 };
85 
86 
93 {
94 protected:
95  double Rf;
96  double exponent;
97  int averType;
98 
99 public:
100  MisesMatNl(int n, Domain * d);
101  virtual ~MisesMatNl();
102 
103  virtual const char *giveClassName() const { return "MisesMatNl"; }
104  virtual const char *giveInputRecordName() const { return _IFT_MisesMatNl_Name; }
105 
107  virtual void giveInputRecord(DynamicInputRecord &input);
108 
110 
117  virtual void computeCumPlasticStrain(double &kappa, GaussPoint *gp, TimeStep *tStep);
118  double computeDamage(GaussPoint *gp, TimeStep *tStep);
119  void modifyNonlocalWeightFunctionAround(GaussPoint *gp);
120  double computeDistanceModifier(double damage);
121  void computeLocalCumPlasticStrain(double &kappa, GaussPoint *gp, TimeStep *tStep)
122  {
123  MisesMat :: computeCumPlastStrain(kappa, gp, tStep);
124  }
125 
126  virtual void give1dStressStiffMtrx(FloatMatrix &answer, MatResponseMode mmode, GaussPoint *gp, TimeStep *tStep);
127  //virtual void givePlaneStrainStiffMtrx(FloatMatrix& answer, MatResponseMode, GaussPoint *gp,TimeStep *tStep);
128  //virtual void give3dMaterialStiffnessMatrix(FloatMatrix& answer, MatResponseMode, GaussPoint *gp, TimeStep *tStep);
129 
130  virtual void NonlocalMaterialStiffnessInterface_addIPContribution(SparseMtrx &dest, const UnknownNumberingScheme &s,
131  GaussPoint *gp, TimeStep *tStep);
132 
133  virtual std :: vector< localIntegrationRecord > *NonlocalMaterialStiffnessInterface_giveIntegrationDomainList(GaussPoint *gp);
134 
144  int giveLocalNonlocalStiffnessContribution(GaussPoint *gp, IntArray &loc, const UnknownNumberingScheme &s,
145  FloatArray &lcontrib, TimeStep *tStep);
146 
155  void giveRemoteNonlocalStiffnessContribution(GaussPoint *gp, IntArray &rloc, const UnknownNumberingScheme &s,
156  FloatArray &rcontrib, TimeStep *tStep);
157 
158  virtual void giveRealStressVector_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &strainVector, TimeStep *tStep);
159  virtual void giveRealStressVector_1d(FloatArray &answer, GaussPoint *gp, const FloatArray &strainVector, TimeStep *tStep);
160 
161  virtual void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep);
162 
163  virtual int hasBoundedSupport() { return 1; }
164 
165  virtual int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip);
166  virtual int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip);
167  virtual int estimatePackSize(DataStream &buff, GaussPoint *ip);
168 
169 protected:
170  // Creates the corresponding material status
172 };
173 } // end namespace oofem
174 #define misesmatnl_h
175 #endif
void computeLocalCumPlasticStrain(double &kappa, GaussPoint *gp, TimeStep *tStep)
Definition: misesmatnl.h:121
Abstract base class for all nonlocal structural materials.
Mises nonlocal material.
Definition: misesmatnl.h:91
This class implements an isotropic elastoplastic material with Mises yield condition, associated flow rule and linear isotropic hardening.
Definition: misesmat.h:72
virtual int hasBoundedSupport()
Determines, whether receiver has bounded weighting function (limited support).
Definition: misesmatnl.h:163
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
virtual Interface * giveInterface(InterfaceType)
Interface requesting service.
Definition: misesmatnl.C:538
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
Base class for all matrices stored in sparse format.
Definition: sparsemtrx.h:60
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: misesmatnl.C:489
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: misesmatnl.C:501
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Definition: femcmpnn.C:77
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
Mises Nonlocal material status.
Definition: misesmatnl.h:55
virtual const char * giveInputRecordName() const
Definition: misesmatnl.h:104
double localCumPlasticStrainForAverage
Definition: misesmatnl.h:60
#define _IFT_MisesMatNl_Name
Definition: misesmatnl.h:44
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
MisesMatNlStatus(int n, Domain *d, GaussPoint *g)
Definition: misesmatnl.C:456
MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: misesmatnl.h:171
Class Nonlocal Material Stiffness Interface.
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
virtual void computeCumPlastStrain(double &kappa, GaussPoint *gp, TimeStep *tStep)
Definition: misesmat.C:406
virtual const char * giveClassName() const
Definition: misesmatnl.h:75
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: misesmatnl.C:519
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
double kappa
Cumulative plastic strain (initial).
Definition: misesmat.h:169
FloatArray strainVector
Equilibrated strain vector in reduced form.
Definition: structuralms.h:69
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
double giveLocalCumPlasticStrainForAverage()
Definition: misesmatnl.h:70
Class representing the general Input Record.
Definition: inputrecord.h:101
Base class for all nonlocal structural material statuses.
Class Interface.
Definition: interface.h:82
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver&#39;s output to given stream.
Definition: misesmatnl.C:468
Class representing the a dynamic Input Record.
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual ~MisesMatNlStatus()
Definition: misesmatnl.C:463
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual const char * giveClassName() const
Definition: misesmatnl.h:103
the oofem namespace is to define a context or scope in which all oofem names are defined.
const FloatArray * giveLTangentContrib()
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: misesmatnl.C:478
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
void setLocalCumPlasticStrainForAverage(double ls)
Definition: misesmatnl.h:72

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