OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
interfaceelement1d.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 interfaceelement1d_h
36 #define interfaceelement1d_h
37 
38 #include "../sm/Elements/structuralelement.h"
39 
41 
42 #define _IFT_InterfaceElem1d_Name "interface1d"
43 #define _IFT_InterfaceElem1d_refnode "refnode"
44 #define _IFT_InterfaceElem1d_normal "normal"
45 #define _IFT_InterfaceElem1d_dofIDs "dofids"
46 
47 
48 namespace oofem {
54 {
55 protected:
60 
61 public:
62  InterfaceElem1d(int n, Domain * d);
63  virtual ~InterfaceElem1d() { }
64 
65  virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep);
66  virtual void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep) { computeLumpedMassMatrix(answer, tStep); }
67 
68  virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords);
69  virtual bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords);
70 
71  virtual int computeNumberOfDofs();
72  virtual void giveDofManDofIDMask(int inode, IntArray &answer) const;
73 
74  virtual double computeVolumeAround(GaussPoint *gp);
75 
76  virtual int testElementExtension(ElementExtension ext) { return 0; }
77 
78  virtual Interface *giveInterface(InterfaceType it) { return NULL; }
79 
80 #ifdef __OOFEG
81  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
83  virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep);
84 #endif
85 
86  // definition & identification
87  virtual const char *giveInputRecordName() const { return _IFT_InterfaceElem1d_Name; }
88  virtual const char *giveClassName() const { return "InterfaceElem1d"; }
90  virtual Element_Geometry_Type giveGeometryType() const { return EGT_point; }
91  virtual integrationDomain giveIntegrationDomain() const { return _Point; }
92  virtual void computeStressVector(FloatArray &answer, const FloatArray &strain, GaussPoint *gp, TimeStep *tStep);
93  virtual void computeConstitutiveMatrixAt(FloatMatrix &answer, MatResponseMode rMode, GaussPoint *gp, TimeStep *tStep);
95 
96 protected:
97  virtual void computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int = 1, int = ALL_STRAINS);
98  virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer) { }
99  virtual void computeGaussPoints();
101 
102  void computeLocalSlipDir(FloatArray &normal);
103  cmode giveCoordMode() const { return this->mode; }
104  void setCoordMode();
105 };
106 } // end namespace oofem
107 #endif // interfaceelement1d_h
integrationDomain
Used by integrator class to supply integration points for proper domain to be integrated (Area...
void computeLocalSlipDir(FloatArray &normal)
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...
virtual void computeLumpedMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes lumped mass matrix of receiver.
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep)
virtual Interface * giveInterface(InterfaceType it)
Interface requesting service.
virtual int testElementExtension(ElementExtension ext)
Tests if the element implements required extension.
enum oofem::InterfaceElem1d::cmode mode
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
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 computeBmatrixAt(GaussPoint *gp, FloatMatrix &answer, int=1, int=ALL_STRAINS)
Computes the geometrical matrix of receiver in given integration point.
Abstract base class for all "structural" finite elements.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType)
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
ElementExtension
Type representing element extension.
virtual const char * giveInputRecordName() const
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
void evaluateLocalCoordinateSystem(FloatMatrix &)
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Computes the global coordinates from given element's local coordinates.
virtual void computeNmatrixAt(const FloatArray &iLocCoord, FloatMatrix &answer)
Computes interpolation matrix for element unknowns.
virtual void drawScalar(oofegGraphicContext &gc, TimeStep *tStep)
virtual integrationDomain giveIntegrationDomain() const
Returns integration domain for receiver, used to initialize integration point over receiver volume...
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
#define _IFT_InterfaceElem1d_Name
virtual void giveDofManDofIDMask(int inode, IntArray &answer) const
Returns dofmanager dof mask for node.
#define ALL_STRAINS
virtual bool computeLocalCoordinates(FloatArray &answer, const FloatArray &gcoords)
Computes the element local coordinates from given global coordinates.
InterfaceElem1d(int n, Domain *d)
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
Class representing the general Input Record.
Definition: inputrecord.h:101
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 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.
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
virtual void computeMassMatrix(FloatMatrix &answer, TimeStep *tStep)
Computes mass matrix of receiver.
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual Element_Geometry_Type giveGeometryType() const
Returns the element geometry type.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
This class implements a one-dimensional interface element connecting two nodes (with the same positio...
Class representing solution step.
Definition: timestep.h:80
virtual const char * giveClassName() const

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