OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
bondceb.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 bondceb_h
36 #define bondceb_h
37 
40 
42 
43 #define _IFT_BondCEBMaterial_Name "bondceb"
44 #define _IFT_BondCEBMaterial_kn "kn"
45 #define _IFT_BondCEBMaterial_ks "ks"
46 #define _IFT_BondCEBMaterial_s1 "s1"
47 #define _IFT_BondCEBMaterial_s2 "s2"
48 #define _IFT_BondCEBMaterial_s3 "s3"
49 #define _IFT_BondCEBMaterial_al "al"
50 #define _IFT_BondCEBMaterial_taumax "taumax"
51 #define _IFT_BondCEBMaterial_tauf "tauf"
52 
53 
54 namespace oofem {
55 
60 {
61 protected:
63  double kappa;
65  double tempKappa;
66 
67 public:
69  BondCEBMaterialStatus(int n, Domain * d, GaussPoint * g);
71  virtual ~BondCEBMaterialStatus();
72 
73  virtual void printOutputAt(FILE *file, TimeStep *tStep);
74 
76  double giveKappa() { return kappa; }
78  double giveTempKappa() { return tempKappa; }
80  void setTempKappa(double newKappa) { tempKappa = newKappa; }
81 
82  // definition
83  virtual const char *giveClassName() const { return "BondCEBMaterialStatus"; }
84 
85  virtual void initTempStatus();
86  virtual void updateYourself(TimeStep *tStep);
87 
88  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj = NULL);
89  virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj = NULL);
90 };
91 
92 
106 {
107 protected:
109  double kn;
111  double ks;
113  double taumax;
115  double tauf;
117  double s0, s1, s2, s3;
119  double alpha;
120 
121 public:
123  BondCEBMaterial(int n, Domain * d);
125  virtual ~BondCEBMaterial();
126 
127  virtual int hasNonLinearBehaviour() { return 1; }
128  virtual bool hasAnalyticalTangentStiffness() const { return true; }
129 
130  virtual const char *giveInputRecordName() const { return _IFT_BondCEBMaterial_Name; }
131  virtual const char *giveClassName() const { return "BondCEBMaterial"; }
132 
133  virtual void giveEngTraction_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep);
134  virtual void give3dStiffnessMatrix_Eng(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
135 
136  virtual int giveIPValue(FloatArray &answer, GaussPoint *gp, InternalStateType type, TimeStep *tStep);
137 
139  virtual void giveInputRecord(DynamicInputRecord &input);
140 
141  virtual MaterialStatus *CreateStatus(GaussPoint *gp) const { return new BondCEBMaterialStatus(1, domain, gp); }
142 
143 protected:
144  double evaluateBondStress(const double kappa);
145  };
146 } // end namespace oofem
147 #endif // bondceb_h
virtual const char * giveClassName() const
Definition: bondceb.h:131
InternalStateType
Type representing the physical meaning of element or constitutive model internal variable.
double ks
Shear elastic stiffness.
Definition: bondceb.h:111
double tauf
Residual shear stress.
Definition: bondceb.h:115
GaussPoint * gp
Associated integration point.
Class and object Domain.
Definition: domain.h:115
Simple isotropic damage based model for 2d interface elements.
Definition: bondceb.h:105
Domain * domain
Link to domain object, useful for communicating with other FEM components.
Definition: femcmpnn.h:82
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Restores the receiver state previously written in stream.
Definition: bondceb.C:241
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Print receiver's output to given stream.
Definition: bondceb.C:195
double taumax
Shear strength.
Definition: bondceb.h:113
virtual bool hasAnalyticalTangentStiffness() const
Tells if the model has implemented analytical tangent stiffness.
Definition: bondceb.h:128
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Definition: femcmpnn.C:77
MatResponseMode
Describes the character of characteristic material matrix.
virtual const char * giveInputRecordName() const
Definition: bondceb.h:130
double giveTempKappa()
Returns the temporary cumulative slip.
Definition: bondceb.h:78
double tempKappa
Non-equilibrated cumulative slip.
Definition: bondceb.h:65
This class implements associated status to BondCEBInterfaceMaterial.
Definition: bondceb.h:59
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: matstatus.h:140
BondCEBMaterialStatus(int n, Domain *d, GaussPoint *g)
Constructor.
Definition: bondceb.C:184
void setTempKappa(double newKappa)
Sets the temporary cumulative slip to the given value.
Definition: bondceb.h:80
virtual const char * giveClassName() const
Definition: bondceb.h:83
virtual void updateYourself(TimeStep *tStep)
Update equilibrium history variables according to temp-variables.
Definition: bondceb.C:215
double kappa
Cumulative slip.
Definition: bondceb.h:63
This class implements a structural interface material status information.
double alpha
Exponent.
Definition: bondceb.h:119
double giveKappa()
Returns the last equilibrated cumulative slip.
Definition: bondceb.h:76
FloatArray jump
Equilibrated jump (discontinuity)
Abstract base class representing a material status information.
Definition: matstatus.h:84
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual int hasNonLinearBehaviour()
Returns nonzero if receiver is non linear.
Definition: bondceb.h:127
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
Class representing the general Input Record.
Definition: inputrecord.h:101
double kn
Normal elastic stiffness.
Definition: bondceb.h:109
Class representing the a dynamic Input Record.
virtual void initTempStatus()
Initializes the temporary internal variables, describing the current state according to previously re...
Definition: bondceb.C:208
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
virtual ~BondCEBMaterialStatus()
Destructor.
Definition: bondceb.C:190
Abstract base class for all "structural" interface models.
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual MaterialStatus * CreateStatus(GaussPoint *gp) const
Creates new copy of associated status and inserts it into given integration point.
Definition: bondceb.h:141
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode, void *obj=NULL)
Stores receiver state to output stream.
Definition: bondceb.C:223
#define _IFT_BondCEBMaterial_Name
Definition: bondceb.h:43

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