OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
traxisym1_ht.C
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 #include "traxisym1_ht.h"
36 #include "fei2dtrlin.h"
37 #include "gausspoint.h"
38 #include "floatarray.h"
39 #include "mathfem.h"
40 #include "classfactory.h"
41 
42 #ifdef __OOFEG
43  #include "oofeggraphiccontext.h"
44  #include "connectivitytable.h"
45 #endif
46 
47 namespace oofem {
48 REGISTER_Element(TrAxisym1_ht);
49 
50 TrAxisym1_ht :: TrAxisym1_ht(int n, Domain *aDomain) : Tr1_ht(n, aDomain)
51  // Constructor.
52 { }
53 
55 // Destructor
56 { }
57 
58 double
60 {
61  double determinant, weight;
62  determinant = fabs( this->interp.giveTransformationJacobian( gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) ) );
63  weight = gp->giveWeight();
64  return determinant *weight *this->computeRadiusAt(gp);
65 }
66 
67 double
69 {
70  return gcoords.at(1);
71 }
72 
73 double
75 {
76  FloatArray gcoords;
77  double determinant, radius;
78 
79  determinant = fabs( this->interp.edgeGiveTransformationJacobian( iEdge, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) ) );
80  this->interp.edgeLocal2global( gcoords, iEdge, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
81  radius = gcoords.at(1);
82  return determinant *radius *gp->giveWeight();
83 }
84 
85 double
87 {
88  FloatArray gcoords;
89  this->computeGlobalCoordinates( gcoords, gp->giveNaturalCoordinates() );
90  return gcoords.at(1);
91 }
92 } // end namespace oofem
virtual void edgeLocal2global(FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates edge global coordinates from given local ones.
Definition: fei2dtrlin.C:213
Class and object Domain.
Definition: domain.h:115
double & at(int i)
Coefficient access function.
Definition: floatarray.h:131
virtual ~TrAxisym1_ht()
Definition: traxisym1_ht.C:54
virtual double edgeGiveTransformationJacobian(int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the edge Jacobian of transformation between local and global coordinates.
Definition: feinterpol2d.C:175
Triangle (2d) element with linear approximation for heat transfer.
Definition: tr1_ht.h:53
TrAxisym1_ht(int n, Domain *d)
Definition: traxisym1_ht.C:50
REGISTER_Element(LSpace)
static FEI2dTrLin interp
Definition: tr1_ht.h:56
virtual double giveWeight()
Returns integration weight of receiver.
Definition: gausspoint.h:181
Wrapper around element definition to provide FEICellGeometry interface.
Definition: feinterpol.h:95
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual double giveTransformationJacobian(const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the determinant of the transformation.
Definition: fei2dtrlin.C:147
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: traxisym1_ht.C:59
virtual double giveThicknessAt(const FloatArray &gcoords)
Gives the thickness at some global coordinate.
Definition: traxisym1_ht.C:68
double computeRadiusAt(GaussPoint *gp)
Definition: traxisym1_ht.C:86
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing integration point in finite element program.
Definition: gausspoint.h:93
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Computes the global coordinates from given element's local coordinates.
Definition: element.C:1207
const FloatArray & giveNaturalCoordinates()
Returns coordinate array of receiver.
Definition: gausspoint.h:138
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes the length around a integration point on a edge.
Definition: traxisym1_ht.C:74

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