OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
intelpoint.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 intelpoint_h
36 #define intelpoint_h
37 
38 #include "../sm/Elements/Interfaces/structuralinterfaceelement.h"
39 #include "gaussintegrationrule.h"
40 
42 
43 #define _IFT_IntElPoint_Name "intelpoint"
44 #define _IFT_IntElPoint_refnode "refnode"
45 #define _IFT_IntElPoint_normal "normal"
46 #define _IFT_IntElPoint_area "area"
47 
48 
49 namespace oofem {
59 {
60 protected:
64  double area;
65 public:
66  IntElPoint(int n, Domain *d);
67  virtual ~IntElPoint() { }
68 
69  virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords);
70 
71  virtual int computeNumberOfDofs();
72  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
73 
74  virtual double computeAreaAround(GaussPoint *gp);
75 
76 
77 
78  // definition & identification
79  virtual const char *giveInputRecordName() const { return _IFT_IntElPoint_Name; }
81  virtual Element_Geometry_Type giveGeometryType() const { return EGT_line_1; }
82 
84 
85 
86  virtual void computeTransformationMatrixAt(GaussPoint *gp, FloatMatrix &answer);
87 
88  virtual void giveEngTraction(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep)
89  {
90  if ( this->giveDomain()->giveNumberOfSpatialDimensions() == 3 ) {
91  this->giveInterfaceCrossSection()->giveEngTraction_3d(answer, gp, jump, tStep);
92  } else if ( this->giveDomain()->giveNumberOfSpatialDimensions() == 2 ) {
93  this->giveInterfaceCrossSection()->giveEngTraction_2d(answer, gp, jump, tStep);
94  } else if ( this->giveDomain()->giveNumberOfSpatialDimensions() == 1 ) {
95  this->giveInterfaceCrossSection()->giveEngTraction_1d(answer, gp, jump, tStep);
96  }
97  }
98 
100  {
101  if ( this->giveDomain()->giveNumberOfSpatialDimensions() == 3 ) {
102  this->giveInterfaceCrossSection()->give3dStiffnessMatrix_Eng(answer, rMode, ip, tStep);
103  } else if ( this->giveDomain()->giveNumberOfSpatialDimensions() == 2 ) {
104  this->giveInterfaceCrossSection()->give2dStiffnessMatrix_Eng(answer, rMode, ip, tStep);
105  } else if ( this->giveDomain()->giveNumberOfSpatialDimensions() == 1 ) {
106  this->giveInterfaceCrossSection()->give1dStiffnessMatrix_Eng(answer, rMode, ip, tStep);
107  }
108 
109  }
110 
111 #ifdef __OOFEG
112  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
114  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
115 #endif
116 
117 protected:
118  virtual void computeNmatrixAt(GaussPoint *gp, FloatMatrix &answer);
119  virtual void computeGaussPoints();
120 
121  void computeLocalSlipDir(FloatArray &normal);
122  cmode giveCoordMode() const { return this->mode; }
123  void setCoordMode();
124 };
125 } // end namespace oofem
126 #endif // interfaceelement1d_h
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: intelpoint.C:230
Class and object Domain.
Definition: domain.h:115
Element_Geometry_Type
Enumerative type used to classify element geometry Possible values are: EGT_point - point in space EG...
void give1dStiffnessMatrix_Eng(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
#define _IFT_IntElPoint_Name
Definition: intelpoint.h:43
void computeLocalSlipDir(FloatArray &normal)
Definition: intelpoint.C:298
virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType)
Definition: intelpoint.C:340
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: intelpoint.C:86
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Computes the global coordinates from given element's local coordinates.
Definition: intelpoint.C:210
enum oofem::IntElPoint::cmode mode
virtual Element_Geometry_Type giveGeometryType() const
Returns the element geometry type.
Definition: intelpoint.h:81
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 const char * giveInputRecordName() const
Definition: intelpoint.h:79
virtual double computeAreaAround(GaussPoint *gp)
Definition: intelpoint.C:221
virtual void computeTransformationMatrixAt(GaussPoint *gp, FloatMatrix &answer)
Definition: intelpoint.C:144
virtual ~IntElPoint()
Definition: intelpoint.h:67
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
void giveEngTraction_3d(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep)
virtual void computeNmatrixAt(GaussPoint *gp, FloatMatrix &answer)
Computes modified interpolation matrix (N) for the element which multiplied with the unknowns vector ...
Definition: intelpoint.C:103
void setCoordMode()
Definition: intelpoint.C:67
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: intelpoint.C:198
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
Definition: intelpoint.C:277
Class representing vector of real numbers.
Definition: floatarray.h:82
void give3dStiffnessMatrix_Eng(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Definition: intelpoint.C:316
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual void giveEngTraction(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep)
Definition: intelpoint.h:88
cmode giveCoordMode() const
Definition: intelpoint.h:122
void give2dStiffnessMatrix_Eng(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Class representing the general Input Record.
Definition: inputrecord.h:101
Domain * giveDomain() const
Definition: femcmpnn.h:100
void giveEngTraction_1d(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep)
Abstract base class for all structural interface elements.
void giveEngTraction_2d(FloatArray &answer, GaussPoint *gp, const FloatArray &jump, TimeStep *tStep)
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void giveStiffnessMatrix_Eng(FloatMatrix &answer, MatResponseMode rMode, IntegrationPoint *ip, TimeStep *tStep)
Definition: intelpoint.h:99
FloatArray normal
Definition: intelpoint.h:63
Class representing integration point in finite element program.
Definition: gausspoint.h:93
IntElPoint(int n, Domain *d)
Definition: intelpoint.C:55
Class representing solution step.
Definition: timestep.h:80
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: intelpoint.C:255
StructuralInterfaceCrossSection * giveInterfaceCrossSection()
This class implements an interface element that connects two nodes.
Definition: intelpoint.h:58
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
Definition: intelpoint.C:368

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