OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
cohsur3d.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 cohsur3d_h
36 #define cohsur3d_h
37 
38 #include "../sm/Elements/structuralelement.h"
39 
41 
42 #define _IFT_CohesiveSurface3d_Name "cohsur3d"
43 #define _IFT_CohSur3d_kx "kx"
44 #define _IFT_CohSur3d_ky "ky"
45 #define _IFT_CohSur3d_kz "kz"
46 #define _IFT_CohSur3d_area "area"
47 
48 
49 namespace oofem {
57 {
58 protected:
59  double area, length;
62 
64 
65  int kx, ky, kz;
66  double kxa, kyb, kzc;
68 
69 public:
70  CohesiveSurface3d(int n, Domain * d);
71  virtual ~CohesiveSurface3d() { }
72 
73  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int li, int ui);
74  virtual double computeVolumeAround(GaussPoint *gp);
75  virtual int computeNumberOfDofs() { return 6 * giveNumberOfNodes(); }
76  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
77  double giveLength();
78  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) { }
79  virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords);
80 
81  // definition & identification
82  virtual const char *giveClassName() const { return "CohesiveSurface3d"; }
83  virtual const char *giveInputRecordName() const { return _IFT_CohesiveSurface3d_Name; }
84 
85  // input and output
87 
88 #ifdef __OOFEG
89  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
91  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
92 #endif
93 
94 protected:
95  virtual void computeGaussPoints();
96  void evaluateCenter();
98 
99  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
100  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
101  virtual MaterialMode giveMaterialMode() { return _3dInterface; }
102 };
103 } // namespace oofem
104 #endif
Class and object Domain.
Definition: domain.h:115
FloatMatrix lcs
Matrix defining the local coordinate system.
Definition: cohsur3d.h:61
virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType)
Definition: cohsur3d.C:478
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
Definition: cohsur3d.h:78
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Definition: cohsur3d.C:434
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Class implementing an array of integers.
Definition: intarray.h:61
MatResponseMode
Describes the character of characteristic material matrix.
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: cohsur3d.C:217
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: cohsur3d.C:364
virtual int giveNumberOfNodes() const
Returns number of nodes of receiver.
Definition: element.h:662
Abstract base class for all "structural" finite elements.
virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep)
Computes the stress vector of receiver at given integration point, at time step tStep.
Definition: cohsur3d.C:231
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
Definition: cohsur3d.C:530
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Computes the global coordinates from given element's local coordinates.
Definition: cohsur3d.C:426
FloatArray center
Coordinates of the center of the cohesive surface.
Definition: cohsur3d.h:60
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
Definition: cohsur3d.C:238
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
virtual const char * giveClassName() const
Definition: cohsur3d.h:82
virtual ~CohesiveSurface3d()
Definition: cohsur3d.h:71
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: cohsur3d.h:75
#define _IFT_CohesiveSurface3d_Name
Definition: cohsur3d.h:42
Class representing vector of real numbers.
Definition: floatarray.h:82
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
void evaluateLocalCoordinateSystem()
Definition: cohsur3d.C:315
Class representing the general Input Record.
Definition: inputrecord.h:101
This class implements a cohesive surface element used by the cohesive particle model.
Definition: cohsur3d.h:56
CohesiveSurface3d(int n, Domain *d)
Definition: cohsur3d.C:56
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int li, int ui)
Computes the geometrical matrix of receiver in given integration point.
Definition: cohsur3d.C:67
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
Definition: cohsur3d.C:224
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: cohsur3d.h:101
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual const char * giveInputRecordName() const
Definition: cohsur3d.h:83
Class representing integration point in finite element program.
Definition: gausspoint.h:93
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: cohsur3d.C:205
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:27 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011