OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
feinterpol2d.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 feinterpol2d_h
36 #define feinterpol2d_h
37 
38 #include "feinterpol.h"
39 #include "mathfem.h"
40 
41 namespace oofem {
45 class OOFEM_EXPORT FEInterpolation2d : public FEInterpolation
46 {
47 protected:
48  int xind, yind;
49 
50 public:
51  FEInterpolation2d(int o, int ind1, int ind2) : FEInterpolation(o), xind(ind1), yind(ind2) { }
52 
53  virtual int giveNsd() { return 2; }
54 
60  virtual double giveArea(const FEICellGeometry &cellgeo) const;
61 
67  virtual double giveCharacteristicLength(const FEICellGeometry &cellgeo) const {return sqrt( this->giveArea(cellgeo) );}
68 
73  virtual int global2local(FloatArray &answer, const FloatArray &gcoords, const FEICellGeometry &cellgeo);
74 
75  virtual void giveJacobianMatrixAt(FloatMatrix &jacobianMatrix, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
76 
77  virtual bool inside(const FloatArray &lcoords) const;
78 
84  virtual void boundaryEdgeGiveNodes(IntArray &answer, int boundary);
85  virtual void boundaryEdgeEvalN(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
86  virtual double boundaryEdgeGiveTransformationJacobian(int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
87  virtual void boundaryEdgeLocal2Global(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
88 
89  virtual void boundaryGiveNodes(IntArray &answer, int boundary);
90  virtual void boundaryEvalN(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
91  virtual double boundaryEvalNormal(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
92  virtual double boundaryGiveTransformationJacobian(int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
93  virtual void boundaryLocal2Global(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
94 
96 
97 
100  virtual void boundarySurfaceEvalN(FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
101  virtual void boundarySurfaceEvaldNdx(FloatMatrix &answer, int isurf,
102  const FloatArray &lcoords, const FEICellGeometry &cellgeo);
103  virtual double boundarySurfaceEvalNormal(FloatArray &answer, int isurf, const FloatArray &lcoords,
104  const FEICellGeometry &cellgeo);
105  virtual void boundarySurfaceLocal2global(FloatArray &answer, int isurf,
106  const FloatArray &lcoords, const FEICellGeometry &cellgeo) ;
107  virtual double boundarySurfaceGiveTransformationJacobian(int isurf, const FloatArray &lcoords,
108  const FEICellGeometry &cellgeo) ;
109  virtual void boundarySurfaceGiveNodes(IntArray &answer, int boundary);
111 
114  virtual void computeLocalEdgeMapping(IntArray &edgeNodes, int iedge) = 0;
115  void computeEdgeMapping(IntArray &edgeNodes, IntArray &elemNodes, int iedge);
123  virtual void edgeEvalN(FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo) = 0;
131  virtual double edgeEvalNormal(FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo) = 0;
140  virtual void edgeEvaldNds(FloatArray &answer, int iedge,
141  const FloatArray &lcoords,
142  const FEICellGeometry &cellgeo) = 0;
151  virtual void edgeLocal2global(FloatArray &answer, int iedge,
152  const FloatArray &lcoords, const FEICellGeometry &cellgeo) = 0;
160  virtual double edgeGiveTransformationJacobian(int iedge, const FloatArray &lcoords,
161  const FEICellGeometry &cellgeo);
163 
164 };
165 } // end namespace oofem
166 #endif // feinterpol2d_h
FEInterpolation2d(int o, int ind1, int ind2)
Definition: feinterpol2d.h:51
Class representing a general abstraction for surface finite element interpolation class...
Definition: feinterpol2d.h:45
Class representing a general abstraction for cell geometry.
Definition: feinterpol.h:62
virtual double giveCharacteristicLength(const FEICellGeometry &cellgeo) const
Returns a characteristic length of the geometry, typically a diagonal or edge length.
Definition: feinterpol2d.h:67
Class implementing an array of integers.
Definition: intarray.h:61
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
virtual int giveNsd()
Returns number of spatial dimensions.
Definition: feinterpol2d.h:53
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
the oofem namespace is to define a context or scope in which all oofem names are defined.

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:28 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011