OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
mazarsmodelnl.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 mazarsmodelnl_h
36 #define mazarsmodelnl_h
37 
38 #include "mazarsmodel.h"
40 
42 
43 #define _IFT_MazarsNLMaterial_Name "mazarsmodelnl"
44 #define _IFT_MazarsNLMaterial_r "r"
45 
46 
47 namespace oofem {
48 class GaussPoint;
49 
54 {
55 protected:
58 
59 public:
61  MazarsNLMaterialStatus(int n, Domain * d, GaussPoint * g);
63  virtual ~MazarsNLMaterialStatus();
64 
65  virtual void printOutputAt(FILE *file, TimeStep *tStep);
66 
70  void setLocalEquivalentStrainForAverage(double ls) { localEquivalentStrainForAverage = ls; }
71 
72  // definition
73  virtual const char *giveInputRecordName() const { return _IFT_MazarsNLMaterial_Name; }
74  virtual const char *giveClassName() const { return "MazarsNLMaterialStatus"; }
75 
76  virtual void initTempStatus();
77  virtual void updateYourself(TimeStep *tStep);
78 
79  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
80  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
81 
94 };
95 
96 
102 {
103 protected:
105  double R;
106 
107 public:
109  MazarsNLMaterial(int n, Domain * d);
111  virtual ~MazarsNLMaterial();
112 
113  // identification and auxiliary functions
114  virtual const char *giveClassName() const { return "MazarsNLMaterial"; }
115 
118 
119  virtual void computeEquivalentStrain(double &kappa, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
127  void computeLocalEquivalentStrain(double &kappa, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
128  { MazarsMaterial :: computeEquivalentStrain(kappa, strain, gp, tStep); }
129 
130  virtual void updateBeforeNonlocAverage(const FloatArray &strainVector, GaussPoint *gp, TimeStep *tStep);
131  virtual double computeWeightFunction(const FloatArray &src, const FloatArray &coord);
132  virtual int hasBoundedSupport() { return 1; }
136  virtual void giveSupportRadius(double &radius) { radius = this->R; }
137 
138  virtual int packUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip);
139  virtual int unpackAndUpdateUnknowns(DataStream &buff, TimeStep *tStep, GaussPoint *ip);
140  virtual int estimatePackSize(DataStream &buff, GaussPoint *ip);
141 
143 
144 protected:
145  void initDamaged(double kappa, FloatArray &totalStrainVector, GaussPoint *gp);
146 };
147 } // end namespace oofem
148 #endif // mazarsmodelnl_h
Abstract base class for all nonlocal structural materials.
double giveLocalEquivalentStrainForAverage()
Returns the local equivalent strain to be averaged.
Definition: mazarsmodelnl.h:68
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
double R
Interaction radius, related to the nonlocal characteristic length of material.
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
This class implements associated Material Status to MazarsNLModel.
Definition: mazarsmodelnl.h:53
double kappa
Scalar measure of the largest strain level ever reached in material.
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
virtual const char * giveClassName() const
MazarsNLMaterialStatus(int n, Domain *d, GaussPoint *g)
Constructor.
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
virtual void computeEquivalentStrain(double &kappa, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
Computes the equivalent strain measure from given strain vector (full form).
Definition: mazarsmodel.C:130
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
void setLocalEquivalentStrainForAverage(double ls)
Sets the local equivalent strain for average to given value.
Definition: mazarsmodelnl.h:70
virtual int hasBoundedSupport()
Determines, whether receiver has bounded weighting function (limited support).
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
virtual ~MazarsNLMaterialStatus()
Destructor.
virtual const char * giveInputRecordName() const
Definition: mazarsmodelnl.h:73
void computeLocalEquivalentStrain(double &kappa, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
Computes the equivalent local strain measure from given strain vector (full form).
virtual void giveSupportRadius(double &radius)
Determines the width (radius) of limited support of weighting function.
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
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Base class for all nonlocal structural material statuses.
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Class Interface.
Definition: interface.h:82
double localEquivalentStrainForAverage
Equivalent strain for averaging.
Definition: mazarsmodelnl.h:57
virtual const char * giveClassName() const
Definition: mazarsmodelnl.h:74
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
This class implements a Nonlocal Mazars Damage Model for Concrete Model based on nonlocal averaging o...
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
#define _IFT_MazarsNLMaterial_Name
Definition: mazarsmodelnl.h:43
This class implements associated Material Status to MazarsMaterial.
Definition: mazarsmodel.h:62
the oofem namespace is to define a context or scope in which all oofem names are defined.
This class implements a Mazars damage model form concrete.
Definition: mazarsmodel.h:95
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80

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