OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
interfaceelem2dlin.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 - 2014 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 interfaceelem2dlin_h
36 #define interfaceelem2dlin_h
37 
38 #include "../sm/Elements/structuralelement.h"
39 
40 #define _IFT_InterfaceElem2dLin_Name "interface2dlin"
41 #define _IFT_InterfaceElem2dLin_axisymmode "axisymmode"
42 
43 namespace oofem {
44 class FEI2dLineLin;
45 
51 {
52 protected:
55  bool axisymmode;
56 
57 public:
58  InterfaceElem2dLin(int n, Domain * d);
59  virtual ~InterfaceElem2dLin() { }
60 
61  virtual FEInterpolation *giveInterpolation() const;
62 
63  virtual int computeNumberOfDofs() { return 8; }
64  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
65 
66  virtual double computeVolumeAround(GaussPoint *gp);
67 
68 
69  virtual int testElementExtension(ElementExtension ext) { return 0; }
70 
71  virtual Interface *giveInterface(InterfaceType) { return NULL; }
72 
73 #ifdef __OOFEG
74  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
76  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
77 #endif
78 
79  // definition & identification
80  virtual const char *giveInputRecordName() const { return _IFT_InterfaceElem2dLin_Name; }
81  virtual const char *giveClassName() const { return "InterfaceElem2dLin"; }
83  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
84  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
85  virtual MaterialMode giveMaterialMode() { return _2dInterface; }
86 
87 protected:
88  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS);
89  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) { }
90  virtual void computeGaussPoints();
91 
92  virtual bool computeGtoLRotationMatrix(FloatMatrix &answer);
93 };
94 } // end namespace oofem
95 #endif // interfaceelem2dlin_h
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
Class and object Domain.
Definition: domain.h:115
virtual Interface * giveInterface(InterfaceType)
Interface requesting service.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
#define _IFT_InterfaceElem2dLin_Name
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 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.
InterfaceElem2dLin(int n, Domain *d)
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
Abstract base class for all "structural" finite elements.
virtual FEInterpolation * giveInterpolation() const
static FEI2dLineLin interp
virtual const char * giveInputRecordName() const
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
ElementExtension
Type representing element extension.
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
bool axisymmode
Flag controlling axisymmetric mode (integration over unit circumferential angle)
This class implements a two dimensional interface element.
Class representing a 2d line with linear interpolation.
Definition: fei2dlinelin.h:46
#define ALL_STRAINS
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
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
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Class representing the general Input Record.
Definition: inputrecord.h:101
virtual bool computeGtoLRotationMatrix(FloatMatrix &answer)
Returns transformation matrix from global c.s.
Class Interface.
Definition: interface.h:82
virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep)
Computes constitutive matrix of receiver.
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual const char * giveClassName() const
virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType)
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
Class representing solution step.
Definition: timestep.h:80
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.

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