OOFEM 3.0
Loading...
Searching...
No Matches
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 - 2025 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
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
47namespace oofem {
51
52TrAxisym1_ht :: TrAxisym1_ht(int n, Domain *aDomain) : Tr1_ht(n, aDomain)
53{ }
54
55TrAxisym1_hmt :: TrAxisym1_hmt(int n, Domain *aDomain) : TrAxisym1_ht(n, aDomain)
56{
57 this->emode = HeatMass1TransferEM; // This could be done in a better way.
58}
59
60TrAxisym1_mt :: TrAxisym1_mt(int n, Domain *aDomain) : TrAxisym1_ht(n, aDomain)
61{
62 this->emode = Mass1TransferEM;
63}
64
65
66
67double
68TrAxisym1_ht :: computeVolumeAround(GaussPoint *gp)
69{
70 double determinant = fabs( this->interp.giveTransformationJacobian( gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) ) );
71 double weight = gp->giveWeight();
72 return determinant *weight *this->computeRadiusAt(gp);
73}
74
75double
76TrAxisym1_ht :: giveThicknessAt(const FloatArray &gcoords)
77{
78 return gcoords.at(1);
79}
80
81double
82TrAxisym1_ht :: computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
83{
84 FloatArray gcoords;
85 double determinant = fabs( this->interp.edgeGiveTransformationJacobian( iEdge, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) ) );
86 this->interp.edgeLocal2global( gcoords, iEdge, gp->giveNaturalCoordinates(), FEIElementGeometryWrapper(this) );
87 double radius = gcoords.at(1);
88 return determinant *radius *gp->giveWeight();
89}
90
91double
92TrAxisym1_ht :: computeRadiusAt(GaussPoint *gp)
93{
94 FloatArray gcoords;
96 return gcoords.at(1);
97}
98} // end namespace oofem
#define REGISTER_Element(class)
virtual int computeGlobalCoordinates(FloatArray &answer, const FloatArray &lcoords)
Definition element.C:1225
double & at(Index i)
Definition floatarray.h:202
const FloatArray & giveNaturalCoordinates() const
Returns coordinate array of receiver.
Definition gausspoint.h:138
double giveWeight()
Returns integration weight of receiver.
Definition gausspoint.h:180
static FEI2dTrLin interp
Definition tr1_ht.h:56
Tr1_ht(int n, Domain *d)
Definition tr1_ht.C:54
TrAxisym1_ht(int n, Domain *d)
double computeRadiusAt(GaussPoint *gp)

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011