OOFEM 3.0
Loading...
Searching...
No Matches
quad1_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 quad1_ht_h
36#define quad1_ht_h
37
39#include "spatiallocalizer.h"
41
42#define _IFT_Quad1_ht_Name "quad1ht"
43#define _IFT_Quad1_hmt_Name "quad1hmt"
44#define _IFT_Quad1_mt_Name "quad1mt"
45
46namespace oofem {
47class FEI2dQuadLin;
48
53{
54protected:
56
57public:
58 Quad1_ht(int n, Domain * d);
59
60 FEInterpolation *giveInterpolation() const override;
61 double computeVolumeAround(GaussPoint *gp) override;
62
63 const char *giveInputRecordName() const override { return _IFT_Quad1_ht_Name; }
64 const char *giveClassName() const override { return "Quad1_ht"; }
65 Element_Geometry_Type giveGeometryType() const override {return EGT_quad_1;}
66
67
68 //int computeNumberOfDofs() override { return ( emode == HeatTransferEM ) ? 4 : 8; }
69 int computeNumberOfDofs() override { return 4; }
70 void initializeFrom(InputRecord &ir, int priority) override;
71 MaterialMode giveMaterialMode() override { return _2dHeat; }
72 double giveThicknessAt(const FloatArray &gcoords) override;
73
75
76#ifdef __OOFEG
77 // Graphics output
78 void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override;
79 void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override;
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 Quad1_hmt : public Quad1_ht
93{
94public:
95 Quad1_hmt(int n, Domain * d);
96
97 const char *giveInputRecordName() const override { return _IFT_Quad1_hmt_Name; }
98 const char *giveClassName() const override { return "Quad1_hmt"; }
99 int computeNumberOfDofs() override { return 8; }
100 MaterialMode giveMaterialMode() override { return _2dHeMo; }
101};
102
106class Quad1_mt : public Quad1_ht
107{
108public:
109 Quad1_mt(int n, Domain * d);
110
111 const char *giveInputRecordName() const override { return _IFT_Quad1_mt_Name; }
112 const char *giveClassName() const override { return "Quad1_mt"; }
113 int computeNumberOfDofs() override { return 4; }
114 MaterialMode giveMaterialMode() override { return _2dHeat; }
115};
116} // end namespace oofem
117#endif // quad1_ht_h
Quad1_hmt(int n, Domain *d)
Definition quad1_ht.C:64
const char * giveInputRecordName() const override
Definition quad1_ht.h:97
int computeNumberOfDofs() override
Definition quad1_ht.h:99
const char * giveClassName() const override
Definition quad1_ht.h:98
MaterialMode giveMaterialMode() override
Definition quad1_ht.h:100
double computeEdgeVolumeAround(GaussPoint *gp, int iEdge) override
Definition quad1_ht.C:114
Quad1_ht(int n, Domain *d)
Definition quad1_ht.C:58
int computeNumberOfDofs() override
Definition quad1_ht.h:69
void initializeFrom(InputRecord &ir, int priority) override
Definition quad1_ht.C:90
const char * giveInputRecordName() const override
Definition quad1_ht.h:63
void drawScalar(oofegGraphicContext &gc, TimeStep *tStep) override
Definition quad1_ht.C:177
const char * giveClassName() const override
Definition quad1_ht.h:64
void computeGaussPoints() override
Definition quad1_ht.C:79
double computeVolumeAround(GaussPoint *gp) override
Definition quad1_ht.C:97
MaterialMode giveMaterialMode() override
Definition quad1_ht.h:71
Interface * giveInterface(InterfaceType t) override
Definition quad1_ht.C:128
FEInterpolation * giveInterpolation() const override
Definition quad1_ht.C:76
double giveThicknessAt(const FloatArray &gcoords) override
Definition quad1_ht.C:107
static FEI2dQuadLin interpolation
Definition quad1_ht.h:55
void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) override
Definition quad1_ht.C:143
Element_Geometry_Type giveGeometryType() const override
Definition quad1_ht.h:65
int computeNumberOfDofs() override
Definition quad1_ht.h:113
MaterialMode giveMaterialMode() override
Definition quad1_ht.h:114
const char * giveClassName() const override
Definition quad1_ht.h:112
Quad1_mt(int n, Domain *d)
Definition quad1_ht.C:69
const char * giveInputRecordName() const override
Definition quad1_ht.h:111
SpatialLocalizerInterface(Element *element)
TransportElement(int n, Domain *d, ElementMode em=HeatTransferEM)
ZZNodalRecoveryModelInterface(Element *element)
Constructor.
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
#define _IFT_Quad1_ht_Name
Definition quad1_ht.h:42
#define _IFT_Quad1_mt_Name
Definition quad1_ht.h:44
#define _IFT_Quad1_hmt_Name
Definition quad1_ht.h:43

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