MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
therm.h
Go to the documentation of this file.
1 /*
2  * MBDyn (C) is a multibody analysis code.
3  * http://www.mbdyn.org
4  *
5  * Copyright (C) 1996-2005
6  *
7  * Pierangelo Masarati <masarati@aero.polimi.it>
8  * Paolo Mantegazza <mantegazza@aero.polimi.it>
9  *
10  * Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano
11  * via La Masa, 34 - 20156 Milano, Italy
12  * http://www.aero.polimi.it
13  *
14  * Changing this copyright notice is forbidden.
15  *
16  * This program is free software; you can redistribute it and/or modify
17  * it under the terms of the GNU General Public License as published by
18  * the Free Software Foundation (version 2 of the License).
19  *
20  *
21  * This program is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License
27  * along with this program; if not, write to the Free Software
28  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29  */
30 
31 /* elementi elettrici, tipo: Elem::ELECTRIC */
32 
33 #ifndef THERM_H
34 #define THERM_H
35 
36 #include "elem.h"
37 
38 /* Electric - begin */
39 
40 class Thermal : virtual public Elem, public ElemWithDofs {
41  public:
42  /* Tipi di elementi elettrici */
43  enum Type {
44  UNKNOWN = -1,
45 
49 
51  };
52 
53  public:
54  Thermal(unsigned int uL,
55  const DofOwner* pDO, flag fOut);
56  virtual ~Thermal(void);
57 
58  /* Contributo al file di restart
59  * (Nota: e' incompleta, deve essere chiamata dalla funzione corrispndente
60  * relativa alla classe derivata */
61  virtual std::ostream& Restart(std::ostream& out) const;
62 
63  /* Tipo dell'elemento (usato solo per debug ecc.) */
64  virtual Elem::Type GetElemType(void) const;
65 
66  /* Tipo di elemento elettrico (usato solo per debug ecc.) */
67  virtual Thermal::Type GetThermalType(void) const = 0;
68 };
69 
70 /* Electric - end */
71 
72 class DataManager;
73 class MBDynParser;
74 
76  MBDynParser& HP,
77  const DofOwner* pDO,
78  unsigned int uLabel);
79 
80 #endif /* ELEC_H */
81 
long int flag
Definition: mbdyn.h:43
Thermal(unsigned int uL, const DofOwner *pDO, flag fOut)
Definition: therm.cc:45
Elem * ReadThermal(DataManager *pDM, MBDynParser &HP, const DofOwner *pDO, unsigned int uLabel)
Definition: therm.cc:82
virtual ~Thermal(void)
Definition: therm.cc:54
Definition: therm.h:40
virtual std::ostream & Restart(std::ostream &out) const
Definition: therm.cc:63
Type
Definition: therm.h:43
DataManager * pDM
Definition: mbpar.h:252
virtual Thermal::Type GetThermalType(void) const =0
Definition: elem.h:75
Type
Definition: elem.h:91
virtual Elem::Type GetElemType(void) const
Definition: therm.cc:69