NANDRAD Data Model Library  Version 2.0
NANDRAD
NANDRAD_HydraulicNetworkPipeProperties.h
1 /* The NANDRAD data model library.
2 
3  Copyright (c) 2012-today, Institut für Bauklimatik, TU Dresden, Germany
4 
5  Primary authors:
6  Andreas Nicolai <andreas.nicolai -[at]- tu-dresden.de>
7  Anne Paepcke <anne.paepcke -[at]- tu-dresden.de>
8 
9  This library is part of SIM-VICUS (https://github.com/ghorwin/SIM-VICUS)
10 
11  This library is free software: you can redistribute it and/or modify
12  it under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  This library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  GNU General Public License for more details.
20 */
21 
22 #ifndef NANDRAD_HydraulicNetworkPipePropertiesH
23 #define NANDRAD_HydraulicNetworkPipePropertiesH
24 
25 #include <IBK_Parameter.h>
26 
27 #include "NANDRAD_CodeGenMacros.h"
28 #include "NANDRAD_Constants.h"
29 
30 namespace NANDRAD {
31 
32 /*! Stores data specific for a pipe. */
34 public:
35 
36  /*! Parameters for the component. */
37  enum para_t {
38  P_PipeRoughness, // Keyword: PipeRoughness [mm] 'Roughness of pipe material'
39  P_PipeInnerDiameter, // Keyword: PipeInnerDiameter [mm] 'Inner diameter of pipe'
40  P_PipeOuterDiameter, // Keyword: PipeOuterDiameter [mm] 'Outer diameter of pipe'
41  P_UValuePipeWall, // Keyword: UValuePipeWall [W/mK] 'Length-specific U-Value of pipe wall incl. insulation'
42  NUM_P
43  };
44 
45  // *** PUBLIC MEMBER FUNCTIONS ***
46 
47  NANDRAD_READWRITE
48  NANDRAD_COMPARE_WITH_ID
49  NANDRAD_COMP(HydraulicNetworkPipeProperties)
50 
51  /*! Checks for valid and required parameters (value ranges).
52  \param networkModelType Identifies basic network model type (see HydraulicNetwork::ModelType)
53  */
54  void checkParameters(int networkModelType) const;
55 
56  // *** PUBLIC MEMBER VARIABLES ***
57 
58  /*! Unique ID for this component. */
59  unsigned int m_id = NANDRAD::INVALID_ID; // XML:A:required
60 
61  /*! Parameters. */
62  IBK::Parameter m_para[NUM_P]; // XML:E
63 
64 };
65 
66 } // namespace NANDRAD
67 
68 #endif // NANDRAD_HydraulicNetworkPipePropertiesH
NANDRAD_READWRITE NANDRAD_COMPARE_WITH_ID void checkParameters(int networkModelType) const
Checks for valid and required parameters (value ranges).
Contains global constants for the Nandrad data model.
unsigned int INVALID_ID
defines an invalid id
unsigned int m_id
Unique ID for this component.
The namespace NANDRAD contains the data model classes that make up the NANDRAD solver input data...