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

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