OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
quadaxisym1_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 "quadaxisym1_ht.h"
36 #include "fei2dquadlin.h"
37 #include "gausspoint.h"
38 #include "mathfem.h"
39 #include "classfactory.h"
40 
41 #ifdef __OOFEG
42  #include "oofeggraphiccontext.h"
43  #include "connectivitytable.h"
44 #endif
45 
46 namespace oofem {
47 REGISTER_Element(QuadAxisym1_ht);
48 REGISTER_Element(QuadAxisym1_hmt);
49 REGISTER_Element(QuadAxisym1_mt);
50 
51 QuadAxisym1_ht :: QuadAxisym1_ht(int n, Domain *aDomain) : Quad1_ht(n, aDomain)
52 { }
53 
55 {
56  this->emode = HeatMass1TransferEM; // This could be done in a better way.
57 }
58 
60 {
61  this->emode = Mass1TransferEM;
62 }
63 
65 // Destructor
66 { }
67 
68 double
70 // Returns the portion of the receiver which is attached to gp.
71 {
72  double determinant, weight, volume;
73  determinant = fabs( this->interpolation.giveTransformationJacobian( gp->giveNaturalCoordinates(),
74  FEIElementGeometryWrapper(this) ) );
75 
76  weight = gp->giveWeight();
77  volume = determinant * weight * this->computeRadiusAt(gp);
78 
79  return volume;
80 }
81 
82 double
84 {
85  return gcoords.at(1);
86 }
87 
88 double
90 {
91  double radius;
92  FloatArray gcoords;
94  radius = gcoords.at(1);
95 
96  double detJ = fabs( this->interpolation.edgeGiveTransformationJacobian( iEdge, gp->giveNaturalCoordinates(),
97  FEIElementGeometryWrapper(this) ) );
98  return detJ *gp->giveWeight() * radius;
99 }
100 
101 double
103 {
104  FloatArray gcoords;
106  return gcoords.at(1);
107 }
108 
111 {
112  return this->giveInterpolation()->giveBoundaryEdgeIntegrationRule(order+1, boundary);
113 
114 }
115 
118 {
119  return this->giveInterpolation()->giveBoundarySurfaceIntegrationRule(order+1, boundary);
120 }
121 } // end namespace oofem
QuadAxisym1_hmt(int n, Domain *d)
Class and object Domain.
Definition: domain.h:115
virtual IntegrationRule * giveBoundaryEdgeIntegrationRule(int order, int boundary)
Sets up a suitable integration rule for integrating over the requested boundary.
Definition: feinterpol.C:74
virtual double giveTransformationJacobian(const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates the determinant of the transformation.
Definition: feinterpol.C:43
virtual IntegrationRule * giveBoundaryEdgeIntegrationRule(int order, int boundary)
Returns boundary edge integration rule.
const FloatArray & giveSubPatchCoordinates()
Returns local sub-patch coordinates of the receiver.
Definition: gausspoint.h:144
virtual void local2global(FloatArray &answer, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates global coordinates from given local ones.
Definition: fei2dquadlin.C:96
double & at(int i)
Coefficient access function.
Definition: floatarray.h:131
QuadAxisym1_mt(int n, Domain *d)
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
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes the length around a integration point on a edge.
static FEI2dQuadLin interpolation
Definition: quad1_ht.h:55
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
virtual IntegrationRule * giveBoundarySurfaceIntegrationRule(int order, int boundary)
Returns boundary surface integration rule.
virtual FEInterpolation * giveInterpolation() const
Definition: quad1_ht.C:78
Abstract base class representing integration rule.
virtual IntegrationRule * giveBoundarySurfaceIntegrationRule(int order, int boundary)
Sets up a suitable integration rule for integrating over the requested boundary.
Definition: feinterpol.C:85
QuadAxisym1_ht(int n, Domain *d)
Quadratic axisymmetric element with linear approximation for heat transfer.
REGISTER_Element(LSpace)
virtual double computeRadiusAt(GaussPoint *gp)
virtual double giveWeight()
Returns integration weight of receiver.
Definition: gausspoint.h:181
Wrapper around element definition to provide FEICellGeometry interface.
Definition: feinterpol.h:95
Quadratic (2d) element with linear approximation for heat transfer.
Definition: quad1_ht.h:52
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual void edgeLocal2global(FloatArray &answer, int iedge, const FloatArray &lcoords, const FEICellGeometry &cellgeo)
Evaluates edge global coordinates from given local ones.
Definition: fei2dquadlin.C:279
virtual double giveThicknessAt(const FloatArray &gcoords)
Gives the thickness at some global coordinate.
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
const FloatArray & giveNaturalCoordinates()
Returns coordinate array of receiver.
Definition: gausspoint.h:138

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