OOFEM 3.0
Loading...
Searching...
No Matches
tr1_ht.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 - 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
35#ifndef tr1_ht_h
36#define tr1_ht_h
37
39#include "spatiallocalizer.h"
41
42#define _IFT_Tr1_hmt_Name "tr1hmt"
43#define _IFT_Tr1_ht_Name "tr1ht"
44#define _IFT_Tr1_mt_Name "tr1mt"
45
46namespace oofem {
47class FEI2dTrLin;
48
54{
55protected:
57
58public:
59 Tr1_ht(int n, Domain * d);
60
61 double computeVolumeAround(GaussPoint *gp) override;
62
63 // definition
64 const char *giveInputRecordName() const override { return _IFT_Tr1_ht_Name; }
65 const char *giveClassName() const override { return "Tr1_htElement"; }
66 Element_Geometry_Type giveGeometryType() const override {return EGT_triangle_1;}
67
68
69 int computeNumberOfDofs() override { return ( emode == HeatMass1TransferEM ) ? 6 : 3; }
70 void initializeFrom(InputRecord &ir, int priority) override;
71 MaterialMode giveMaterialMode() override { return _2dHeat; }
72 double giveThicknessAt(const FloatArray &gcoords) override;
73
75
76 FEInterpolation *giveInterpolation() const override;
77
78#ifdef __OOFEG
79 // Graphics output
80 //void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override {}
81 //void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override {}
82#endif
83
84protected:
85 void computeGaussPoints() override;
86 double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override;
87};
88
92class Tr1_mt : public Tr1_ht
93{
94public:
95 Tr1_mt(int n, Domain * d);
96
97 const char *giveInputRecordName() const override { return _IFT_Tr1_mt_Name; }
98 const char *giveClassName() const override { return "Tr1_mt"; }
99 MaterialMode giveMaterialMode() override { return _2dHeat; }
100};
101
102
106class Tr1_hmt : public Tr1_ht
107{
108public:
109 Tr1_hmt(int n, Domain * d);
110
111 const char *giveInputRecordName() const override { return _IFT_Tr1_hmt_Name; }
112 const char *giveClassName() const override { return "Tr1_hmt"; }
113 MaterialMode giveMaterialMode() override { return _2dHeMo; }
114};
115} // end namespace oofem
116#endif // tr1_ht_h
SpatialLocalizerInterface(Element *element)
const char * giveInputRecordName() const override
Definition tr1_ht.h:111
const char * giveClassName() const override
Definition tr1_ht.h:112
MaterialMode giveMaterialMode() override
Definition tr1_ht.h:113
Tr1_hmt(int n, Domain *d)
Definition tr1_ht.C:61
void initializeFrom(InputRecord &ir, int priority) override
Definition tr1_ht.C:87
void computeGaussPoints() override
Definition tr1_ht.C:76
Element_Geometry_Type giveGeometryType() const override
Definition tr1_ht.h:66
const char * giveClassName() const override
Definition tr1_ht.h:65
int computeNumberOfDofs() override
Definition tr1_ht.h:69
Interface * giveInterface(InterfaceType t) override
Definition tr1_ht.C:120
static FEI2dTrLin interp
Definition tr1_ht.h:56
double computeVolumeAround(GaussPoint *gp) override
Definition tr1_ht.C:94
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
Definition tr1_ht.C:110
const char * giveInputRecordName() const override
Definition tr1_ht.h:64
MaterialMode giveMaterialMode() override
Definition tr1_ht.h:71
double giveThicknessAt(const FloatArray &gcoords) override
Definition tr1_ht.C:103
FEInterpolation * giveInterpolation() const override
Definition tr1_ht.C:73
Tr1_ht(int n, Domain *d)
Definition tr1_ht.C:54
const char * giveInputRecordName() const override
Definition tr1_ht.h:97
MaterialMode giveMaterialMode() override
Definition tr1_ht.h:99
const char * giveClassName() const override
Definition tr1_ht.h:98
Tr1_mt(int n, Domain *d)
Definition tr1_ht.C:66
TransportElement(int n, Domain *d, ElementMode em=HeatTransferEM)
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
#define _IFT_Tr1_ht_Name
Definition tr1_ht.h:43
#define _IFT_Tr1_mt_Name
Definition tr1_ht.h:44
#define _IFT_Tr1_hmt_Name
Definition tr1_ht.h:42

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