OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 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 #ifndef tr1_ht_h
36 #define tr1_ht_h
37 
38 #include "transportelement.h"
39 #include "spatiallocalizer.h"
40 #include "zznodalrecoverymodel.h"
41 
42 #define _IFT_Tr1_hmt_Name "tr1hmt"
43 #define _IFT_Tr1_ht_Name "tr1ht"
44 #define _IFT_Tr1_mt_Name "tr1mt"
45 
46 namespace oofem {
47 class FEI2dTrLin;
48 
54 {
55 protected:
57 
58 public:
59  Tr1_ht(int n, Domain * d);
60  //virtual ~Tr1_ht();
61 
62  virtual double computeVolumeAround(GaussPoint *gp);
63 
64  // definition
65  virtual const char *giveInputRecordName() const { return _IFT_Tr1_ht_Name; }
66  virtual const char *giveClassName() const { return "Tr1_htElement"; }
67 
68  virtual int computeNumberOfDofs() { return ( emode == HeatMass1TransferEM ) ? 6 : 3; }
70  virtual MaterialMode giveMaterialMode() { return _2dHeat; }
71  virtual double giveThicknessAt(const FloatArray &gcoords);
72 
74 
75  virtual FEInterpolation *giveInterpolation() const;
76 
77 #ifdef __OOFEG
78  // Graphics output
79  //virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep) {}
80  //virtual void drawDeformedGeometry(oofegGraphicContext &gc, TimeStep *tStep, UnknownType) {}
81 #endif
82 
83 protected:
84  virtual void computeGaussPoints();
85  virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge);
86 };
87 
91 class Tr1_mt : public Tr1_ht
92 {
93 public:
94  Tr1_mt(int n, Domain * d);
95 
96  virtual const char *giveInputRecordName() const { return _IFT_Tr1_mt_Name; }
97  virtual const char *giveClassName() const { return "Tr1_mt"; }
98  virtual MaterialMode giveMaterialMode() { return _2dHeat; }
99 };
100 
101 
105 class Tr1_hmt : public Tr1_ht
106 {
107 public:
108  Tr1_hmt(int n, Domain * d);
109 
110  virtual const char *giveInputRecordName() const { return _IFT_Tr1_hmt_Name; }
111  virtual const char *giveClassName() const { return "Tr1_hmt"; }
112  virtual MaterialMode giveMaterialMode() { return _2dHeMo; }
113 };
114 } // end namespace oofem
115 #endif // tr1_ht_h
Class and object Domain.
Definition: domain.h:115
Class for mass transfer.
Definition: tr1_ht.h:91
The element interface required by ZZNodalRecoveryModel.
Class for heat and mass transfer.
Definition: tr1_ht.h:105
virtual double computeEdgeVolumeAround(GaussPoint *gp, int iEdge)
Computes the length around a integration point on a edge.
Definition: tr1_ht.C:117
virtual const char * giveClassName() const
Definition: tr1_ht.h:66
virtual FEInterpolation * giveInterpolation() const
Definition: tr1_ht.C:74
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
virtual const char * giveClassName() const
Definition: tr1_ht.h:97
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: tr1_ht.h:70
Triangle (2d) element with linear approximation for heat transfer.
Definition: tr1_ht.h:53
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
Definition: tr1_ht.C:89
Class representing a general abstraction for finite element interpolation class.
Definition: feinterpol.h:132
Class representing a 2d triangular linear interpolation based on area coordinates.
Definition: fei2dtrlin.h:44
static FEI2dTrLin interp
Definition: tr1_ht.h:56
#define _IFT_Tr1_ht_Name
Definition: tr1_ht.h:43
This abstract class represent a general base element class for transport problems.
virtual int computeNumberOfDofs()
Computes or simply returns total number of element's local DOFs.
Definition: tr1_ht.h:68
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: tr1_ht.h:98
#define _IFT_Tr1_mt_Name
Definition: tr1_ht.h:44
virtual double giveThicknessAt(const FloatArray &gcoords)
Gives the thickness at some global coordinate.
Definition: tr1_ht.C:110
Class representing vector of real numbers.
Definition: floatarray.h:82
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual const char * giveInputRecordName() const
Definition: tr1_ht.h:110
virtual const char * giveInputRecordName() const
Definition: tr1_ht.h:65
Class representing the general Input Record.
Definition: inputrecord.h:101
Class Interface.
Definition: interface.h:82
virtual double computeVolumeAround(GaussPoint *gp)
Returns volume related to given integration point.
Definition: tr1_ht.C:97
virtual void computeGaussPoints()
Initializes the array of integration rules member variable.
Definition: tr1_ht.C:77
Tr1_ht(int n, Domain *d)
Definition: tr1_ht.C:54
The spatial localizer element interface associated to spatial localizer.
virtual const char * giveInputRecordName() const
Definition: tr1_ht.h:96
InterfaceType
Enumerative type, used to identify interface type.
Definition: interfacetype.h:43
virtual Interface * giveInterface(InterfaceType t)
Interface requesting service.
Definition: tr1_ht.C:127
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
virtual const char * giveClassName() const
Definition: tr1_ht.h:111
#define _IFT_Tr1_hmt_Name
Definition: tr1_ht.h:42
virtual MaterialMode giveMaterialMode()
Returns material mode for receiver integration points.
Definition: tr1_ht.h:112

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