OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
feinterpol1d.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 feinterpol1d_h
36 #define feinterpol1d_h
37 
38 #include "feinterpol.h"
39 
40 namespace oofem {
44 class OOFEM_EXPORT FEInterpolation1d : public FEInterpolation
45 {
46 public:
48  virtual int giveNsd() { return 1; }
49 
50  //virtual FloatArray giveParametricCenter() const { return {0.}; }
51 
52  virtual void boundaryGiveNodes(IntArray &answer, int boundary);
53  virtual void boundaryEvalN(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
54  virtual double boundaryEvalNormal(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
55  virtual double boundaryGiveTransformationJacobian(int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
56  virtual void boundaryLocal2Global(FloatArray &answer, int boundary, const FloatArray &lcoords, const FEICellGeometry &cellgeo);
57 
60  virtual void boundarySurfaceEvalN(FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo) {OOFEM_ERROR("Functions not supported for this interpolator."); }
61  virtual void boundarySurfaceEvaldNdx(FloatMatrix &answer, int isurf,
62  const FloatArray &lcoords, const FEICellGeometry &cellgeo)
63  { OOFEM_ERROR("Functions not supported for this interpolator."); }
64  virtual double boundarySurfaceEvalNormal(FloatArray &answer, int isurf, const FloatArray &lcoords,
65  const FEICellGeometry &cellgeo)
66  { OOFEM_ERROR("Functions not supported for this interpolator."); }
67  virtual void boundarySurfaceLocal2global(FloatArray &answer, int isurf,
68  const FloatArray &lcoords, const FEICellGeometry &cellgeo)
69  { OOFEM_ERROR("Functions not supported for this interpolator."); }
70  virtual double boundarySurfaceGiveTransformationJacobian(int isurf, const FloatArray &lcoords,
71  const FEICellGeometry &cellgeo)
72  { OOFEM_ERROR("Functions not supported for this interpolator."); }
73  virtual void boundarySurfaceGiveNodes(IntArray &answer, int boundary)
74  { OOFEM_ERROR("Functions not supported for this interpolator."); }
75 
77 
78 
79 
85  virtual double giveLength(const FEICellGeometry &cellgeo) const
86  {
87  OOFEM_ERROR("Not implemented in subclass.");
88  return 0;
89  }
90 
91  virtual IntegrationRule *giveIntegrationRule(int order);
92  virtual IntegrationRule *giveBoundaryIntegrationRule(int order, int boundary);
93  virtual IntegrationRule *giveBoundaryEdgeIntegrationRule(int order, int boundary);
94 };
95 } // end namespace oofem
96 #endif // feinterpol1d_h
Class representing a general abstraction for cell geometry.
Definition: feinterpol.h:62
virtual double boundarySurfaceGiveTransformationJacobian(int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the edge jacobian of transformation between local and global coordinates.
Definition: feinterpol1d.h:70
virtual void boundarySurfaceLocal2global(FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates edge global coordinates from given local ones.
Definition: feinterpol1d.h:67
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol1d.h:44
virtual double giveLength(const FEICellGeometry &cellgeo) const
Computes the exact length.
Definition: feinterpol1d.h:85
Class implementing an array of integers.
Definition: intarray.h:61
Abstract base class representing integration rule.
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
virtual void boundarySurfaceGiveNodes(IntArray &answer, int boundary)
Gives the boundary nodes for requested boundary number.
Definition: feinterpol1d.h:73
#define OOFEM_ERROR(...)
Definition: error.h:61
virtual void boundarySurfaceEvalN(FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the array of edge interpolation functions (shape functions) at given point.
Definition: feinterpol1d.h:60
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
virtual double boundarySurfaceEvalNormal(FloatArray &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the normal out of the surface at given point.
Definition: feinterpol1d.h:64
virtual int giveNsd()
Returns number of spatial dimensions.
Definition: feinterpol1d.h:48
the oofem namespace is to define a context or scope in which all oofem names are defined.
virtual void boundarySurfaceEvaldNdx(FloatMatrix &answer, int isurf, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the matrix of derivatives of edge interpolation functions (shape functions) at given point...
Definition: feinterpol1d.h:61

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