22 #ifndef NANDRAD_HydraulicNetworkComponentH 23 #define NANDRAD_HydraulicNetworkComponentH 25 #include <IBK_Parameter.h> 27 #include "NANDRAD_CodeGenMacros.h" 29 #include "NANDRAD_LinearSplineParameter.h" 30 #include "NANDRAD_DataTable.h" 43 MT_ConstantPressurePump,
44 MT_ConstantMassFluxPump,
47 MT_HeatPumpIdealCarnotSourceSide,
48 MT_HeatPumpIdealCarnotSupplySide,
49 MT_HeatPumpRealSourceSide,
52 MT_ConstantPressureLossValve,
59 P_PressureLossCoefficient,
63 P_FractionOfMotorInefficienciesToFluidStream,
65 P_PipeMaxDiscretizationWidth,
67 P_MaximumHeatingPower,
69 P_MaximumPressureHead,
70 P_PumpMaximumElectricalPower,
78 NANDRAD_COMPARE_WITH_ID
113 static std::vector<std::string> requiredScheduleNames(
const ModelType modelType);
126 #endif // NANDRAD_HydraulicNetworkComponentH A data member for a table with named columns.
static std::vector< unsigned int > requiredParameter(const ModelType modelType, int networkModelType)
Needed both in user interface and for valid parameter checking in solver.
Contains global constants for the Nandrad data model.
IBK::Parameter m_para[NUM_P]
Parameters of the flow component.
DataTable m_polynomCoefficients
Array parameters of the flow component.
ModelType
The various types (equations) of the hydraulic component.
std::string m_displayName
Display name.
Parameters for a hydraulic component for the network.
unsigned int INVALID_ID
defines an invalid id
static void checkModelParameter(const IBK::Parameter ¶, const unsigned int numPara)
Helper function that implements specific rules for testing a single parameter.
unsigned int m_id
Unique ID for this component.
para_t
Parameters for the component.
ModelType m_modelType
Model type.
void checkParameters(int networkModelType)
Checks for valid and required parameters (value ranges).
The namespace NANDRAD contains the data model classes that make up the NANDRAD solver input data...
NANDRAD_READWRITE NANDRAD_COMPARE_WITH_ID bool sameParametersAs(const HydraulicNetworkComponent &other) const
Compares two component definitions by parameters only, without comparing ID.