OOFEM 3.0
Loading...
Searching...
No Matches
tetrah1_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 tetrah1_ht_h
36#define tetrah1_ht_h
37
39#include "spatiallocalizer.h"
41
42#define _IFT_Tetrah1_ht_Name "tetrah1ht"
43#define _IFT_Tetrah1_hmt_Name "tetrah1hmt"
44
45namespace oofem {
46class FEI3dTetLin;
47
52{
53protected:
55
56public:
57 Tetrah1_ht(int n, Domain * d);
58
59 FEInterpolation *giveInterpolation() const override;
60
61 double computeVolumeAround(GaussPoint *gp) override;
62
63 // definition
64 const char *giveInputRecordName() const override { return _IFT_Tetrah1_ht_Name; }
65 const char *giveClassName() const override { return "Tetrah1_ht"; }
66 Element_Geometry_Type giveGeometryType() const override {return EGT_tetra_1;}
67
68
69 int computeNumberOfDofs() override { return ( emode == HeatTransferEM ) ? 4 : 8; }
70 void initializeFrom(InputRecord &ir, int priority) override;
71 MaterialMode giveMaterialMode() override { return _3dHeat; }
72
75 { return ( ( ( ext == Element_EdgeLoadSupport ) || ( ext == Element_SurfaceLoadSupport ) ) ? 1 : 0 ); }
76
77#ifdef __OOFEG
78 // Graphics output
79 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
80 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
81 //void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override {}
82 //void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) override {}
83#endif
84
85protected:
86 void computeGaussPoints() override;
87 double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override;
88 double computeSurfaceVolumeAround(GaussPoint *gp, int iEdge) override;
89};
90
91class Tetrah1_hmt : public Tetrah1_ht
92{
93public:
94 Tetrah1_hmt(int n, Domain * d);
95
96 const char *giveInputRecordName() const override { return _IFT_Tetrah1_hmt_Name; }
97 const char *giveClassName() const override { return "Tetrah1_hmt"; }
98 MaterialMode giveMaterialMode() override { return _3dHeMo; }
99};
100} // end namespace oofem
101#endif // tetrah1_ht_h
SpatialLocalizerInterface(Element *element)
const char * giveInputRecordName() const override
Definition tetrah1_ht.h:96
MaterialMode giveMaterialMode() override
Definition tetrah1_ht.h:98
Tetrah1_hmt(int n, Domain *d)
Definition tetrah1_ht.C:63
const char * giveClassName() const override
Definition tetrah1_ht.h:97
FEInterpolation * giveInterpolation() const override
Definition tetrah1_ht.C:70
int computeNumberOfDofs() override
Definition tetrah1_ht.h:69
int testElementExtension(ElementExtension ext) override
Definition tetrah1_ht.h:74
void computeGaussPoints() override
Definition tetrah1_ht.C:77
Interface * giveInterface(InterfaceType t) override
Definition tetrah1_ht.C:124
Element_Geometry_Type giveGeometryType() const override
Definition tetrah1_ht.h:66
double computeSurfaceVolumeAround(GaussPoint *gp, int iEdge) override
Definition tetrah1_ht.C:115
double computeVolumeAround(GaussPoint *gp) override
Definition tetrah1_ht.C:95
Tetrah1_ht(int n, Domain *d)
Definition tetrah1_ht.C:57
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
Definition tetrah1_ht.C:106
static FEI3dTetLin interpolation
Definition tetrah1_ht.h:54
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition tetrah1_ht.C:142
MaterialMode giveMaterialMode() override
Definition tetrah1_ht.h:71
const char * giveInputRecordName() const override
Definition tetrah1_ht.h:64
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
Definition tetrah1_ht.C:178
void initializeFrom(InputRecord &ir, int priority) override
Definition tetrah1_ht.C:88
const char * giveClassName() const override
Definition tetrah1_ht.h:65
TransportElement(int n, Domain *d, ElementMode em=HeatTransferEM)
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
@ Element_EdgeLoadSupport
Element extension for edge loads.
@ Element_SurfaceLoadSupport
Element extension for surface loads.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define _IFT_Tetrah1_hmt_Name
Definition tetrah1_ht.h:43
#define _IFT_Tetrah1_ht_Name
Definition tetrah1_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