MBDyn-1.7.3
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
preselem.h
Go to the documentation of this file.
1
/* $Header: /var/cvs/mbdyn/mbdyn/mbdyn-1.0/mbdyn/hydr/preselem.h,v 1.22 2017/01/12 14:46:32 masarati Exp $ */
2
/*
3
* MBDyn (C) is a multibody analysis code.
4
* http://www.mbdyn.org
5
*
6
* Copyright (C) 1996-2017
7
*
8
* Pierangelo Masarati <masarati@aero.polimi.it>
9
* Paolo Mantegazza <mantegazza@aero.polimi.it>
10
*
11
* Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano
12
* via La Masa, 34 - 20156 Milano, Italy
13
* http://www.aero.polimi.it
14
*
15
* Changing this copyright notice is forbidden.
16
*
17
* This program is free software; you can redistribute it and/or modify
18
* it under the terms of the GNU General Public License as published by
19
* the Free Software Foundation (version 2 of the License).
20
*
21
*
22
* This program is distributed in the hope that it will be useful,
23
* but WITHOUT ANY WARRANTY; without even the implied warranty of
24
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25
* GNU General Public License for more details.
26
*
27
* You should have received a copy of the GNU General Public License
28
* along with this program; if not, write to the Free Software
29
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
30
*/
31
32
/*
33
* Copyright 1999-2000 Lamberto Puggelli <puggelli@tiscalinet.it>
34
* Dipartimento di Ingegneria Aerospaziale - Politecnico di Milano
35
*/
36
37
38
#ifndef PRESELEM_H
39
#define PRESELEM_H
40
41
#include "
elem.h
"
42
#include "
presnode.h
"
43
#include "
drive.h
"
/* per parametri variabili */
44
#include "
strnode.h
"
/* per attuatore */
45
46
#include "
hfluid.h
"
47
48
49
extern
const
char
*
psHydraulicNames
[];
50
51
52
/* HydraulicElem - begin */
53
54
class
HydraulicElem
:
virtual
public
Elem
,
public
ElemWithDofs
{
55
public
:
56
/* Tipi di elementi idraulici */
57
enum
Type
{
58
UNKNOWN
= -1,
59
60
MINOR_LOSS
= 0,
61
THREEWAYMINORLOSS
,
62
CONTROL_VALVE
,
63
DYNAMIC_CONTROL_VALVE
,
64
PRESSURE_FLOW_CONTROL_VALVE
,
65
PRESSURE_VALVE
,
66
FLOW_VALVE
,
67
ORIFICE
,
68
ACCUMULATOR
,
69
TANK
,
70
PIPE
,
71
DYNAMIC_PIPE
,
72
HYDRAULIC_ACTUATOR
,
73
ACTUATOR
,
74
75
LASTHYDRAULICTYPE
76
};
77
78
protected
:
79
HydraulicFluid
*
HF
;
80
81
public
:
82
HydraulicElem
(
unsigned
int
uL,
const
DofOwner
* pDO,
83
HydraulicFluid
* hf,
flag
fOut);
84
virtual
~HydraulicElem
(
void
);
85
86
/* Tipo dell'elemento (usato per debug ecc.) */
87
virtual
Elem::Type
GetElemType
(
void
)
const
;
88
89
/* Contributo al file di restart
90
* (Nota: e' incompleta, deve essere chiamata dalla funzione corrispndente
91
* relativa alla classe derivata */
92
virtual
std::ostream&
Restart
(std::ostream& out)
const
;
93
94
/* Tipo di elemento elettrico (usato solo per debug ecc.) */
95
virtual
HydraulicElem::Type
GetHydraulicType
(
void
)
const
= 0;
96
};
97
98
/* HydraulicElem - end */
99
100
101
class
DataManager
;
102
class
MBDynParser
;
103
104
extern
Elem
*
ReadHydraulicElem
(
DataManager
*
pDM
,
105
MBDynParser
& HP,
106
const
DofOwner
* pDO,
107
unsigned
int
uLabel);
108
109
110
#endif
/* PRESELEM_H */
strnode.h
flag
long int flag
Definition:
mbdyn.h:43
HydraulicElem::PIPE
Definition:
preselem.h:70
HydraulicElem::Restart
virtual std::ostream & Restart(std::ostream &out) const
Definition:
preselem.cc:82
presnode.h
HydraulicElem::HYDRAULIC_ACTUATOR
Definition:
preselem.h:72
elem.h
HydraulicElem::PRESSURE_FLOW_CONTROL_VALVE
Definition:
preselem.h:64
HydraulicElem::DYNAMIC_CONTROL_VALVE
Definition:
preselem.h:63
HydraulicElem::CONTROL_VALVE
Definition:
preselem.h:62
HydraulicElem::LASTHYDRAULICTYPE
Definition:
preselem.h:75
DataManager
Definition:
dataman.h:85
MBDynParser
Definition:
mbpar.h:129
HydraulicElem::~HydraulicElem
virtual ~HydraulicElem(void)
Definition:
preselem.cc:64
HydraulicElem::GetElemType
virtual Elem::Type GetElemType(void) const
Definition:
preselem.cc:73
DofOwner
Definition:
dofown.h:68
HydraulicElem::PRESSURE_VALVE
Definition:
preselem.h:65
HydraulicElem::HydraulicElem
HydraulicElem(unsigned int uL, const DofOwner *pDO, HydraulicFluid *hf, flag fOut)
Definition:
preselem.cc:54
HydraulicElem::HF
HydraulicFluid * HF
Definition:
preselem.h:79
HydraulicFluid
Definition:
hfluid.h:46
HydraulicElem
Definition:
preselem.h:54
MBDynParser::pDM
DataManager * pDM
Definition:
mbpar.h:252
HydraulicElem::THREEWAYMINORLOSS
Definition:
preselem.h:61
ReadHydraulicElem
Elem * ReadHydraulicElem(DataManager *pDM, MBDynParser &HP, const DofOwner *pDO, unsigned int uLabel)
Definition:
preselem.cc:93
HydraulicElem::MINOR_LOSS
Definition:
preselem.h:60
HydraulicElem::GetHydraulicType
virtual HydraulicElem::Type GetHydraulicType(void) const =0
HydraulicElem::UNKNOWN
Definition:
preselem.h:58
HydraulicElem::FLOW_VALVE
Definition:
preselem.h:66
ElemWithDofs
Definition:
elem.h:278
drive.h
HydraulicElem::DYNAMIC_PIPE
Definition:
preselem.h:71
Elem
Definition:
elem.h:75
Elem::Type
Type
Definition:
elem.h:91
HydraulicElem::Type
Type
Definition:
preselem.h:57
HydraulicElem::TANK
Definition:
preselem.h:69
hfluid.h
psHydraulicNames
const char * psHydraulicNames[]
Definition:
enums.cc:287
HydraulicElem::ORIFICE
Definition:
preselem.h:67
HydraulicElem::ACCUMULATOR
Definition:
preselem.h:68
HydraulicElem::ACTUATOR
Definition:
preselem.h:73
mbdyn
hydr
preselem.h
Generated on Fri Apr 13 2018 10:19:36 for MBDyn-1.7.3 by
1.8.7