OGS
ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater Struct Reference

Detailed Description

Definition at line 206 of file FlowAndTemperatureControl.h.

#include <FlowAndTemperatureControl.h>

Collaboration diagram for ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater:
[legend]

Public Member Functions

FlowAndTemperature operator() (double const T_out, double const time) const

Public Attributes

PowerWithCOP const building_heating
PowerWithCOP const building_hot_water
ParameterLib::Parameter< double > const & flow_rate_param
double const heat_capacity
double const density
double const flow_rate_min
double const power_min

Static Public Attributes

static constexpr bool is_power_bc = true

Member Function Documentation

◆ operator()()

FlowAndTemperature ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater::operator() ( double const T_out,
double const time ) const
inline

Definition at line 208 of file FlowAndTemperatureControl.h.

209 {
210 ParameterLib::SpatialPosition const x;
211 double const flow_rate = flow_rate_param(time, x)[0];
212 double const power_heating = building_heating.power_param(time, x)[0];
213 double const cop_heating = building_heating.cop_curve.getValue(T_out);
214
215 double const power_hot_water =
216 building_hot_water.power_param(time, x)[0];
217 double const cop_hot_water =
218 building_hot_water.cop_curve.getValue(T_out);
219
220 double const power = power_heating - power_heating / cop_heating +
221 power_hot_water - power_hot_water / cop_hot_water;
222
223 return check_power_and_flow_rate(flow_rate,
224 power,
226 density,
227 T_out,
229 power_min);
230 }
FlowAndTemperature check_power_and_flow_rate(double flow_rate, double power, double const heat_capacity, double const density, double const T_out, double const flow_rate_min, double const power_min)

References building_heating, building_hot_water, ProcessLib::HeatTransportBHE::BHE::check_power_and_flow_rate(), density, flow_rate_min, flow_rate_param, heat_capacity, and power_min.

Member Data Documentation

◆ building_heating

PowerWithCOP const ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater::building_heating

Definition at line 232 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ building_hot_water

PowerWithCOP const ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater::building_hot_water

Definition at line 233 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ density

double const ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater::density

Definition at line 237 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ flow_rate_min

double const ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater::flow_rate_min

Definition at line 238 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ flow_rate_param

ParameterLib::Parameter<double> const& ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater::flow_rate_param

Definition at line 234 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ heat_capacity

double const ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater::heat_capacity

Definition at line 236 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ is_power_bc

bool ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater::is_power_bc = true
staticconstexpr

Definition at line 240 of file FlowAndTemperatureControl.h.

◆ power_min

double const ProcessLib::HeatTransportBHE::BHE::BuildingPowerHotWater::power_min

Definition at line 239 of file FlowAndTemperatureControl.h.

Referenced by operator()().


The documentation for this struct was generated from the following file: