OGS
ProcessLib::HeatTransportBHE::BHE::BuildingPowerCurveConstantFlow Struct Reference

Detailed Description

Definition at line 122 of file FlowAndTemperatureControl.h.

#include <FlowAndTemperatureControl.h>

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

Public Member Functions

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

Public Attributes

BuildingPowerCurves const building_power_curves
 
double flow_rate
 
double heat_capacity
 
double density
 

Static Public Attributes

static constexpr bool is_power_bc = true
 

Member Function Documentation

◆ operator()()

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

Definition at line 124 of file FlowAndTemperatureControl.h.

125 {
126 double const power = building_power_curves.power_curve.getValue(time);
127 double const cop =
129
130 if (power == 0)
131 {
132 return {0.0, T_out};
133 }
134 return {flow_rate,
135 power * (cop - 1) / cop / flow_rate / heat_capacity / density +
136 T_out};
137 }
double getValue(double pnt_to_interpolate) const
Calculates the interpolation value.
MathLib::PiecewiseLinearInterpolation const & cop_heating_curve
MathLib::PiecewiseLinearInterpolation const & power_curve

References building_power_curves, ProcessLib::HeatTransportBHE::BHE::BuildingPowerCurves::cop_heating_curve, density, flow_rate, MathLib::PiecewiseLinearInterpolation::getValue(), heat_capacity, and ProcessLib::HeatTransportBHE::BHE::BuildingPowerCurves::power_curve.

Member Data Documentation

◆ building_power_curves

BuildingPowerCurves const ProcessLib::HeatTransportBHE::BHE::BuildingPowerCurveConstantFlow::building_power_curves

Definition at line 138 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ density

double ProcessLib::HeatTransportBHE::BHE::BuildingPowerCurveConstantFlow::density

Definition at line 142 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ flow_rate

double ProcessLib::HeatTransportBHE::BHE::BuildingPowerCurveConstantFlow::flow_rate

Definition at line 140 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ heat_capacity

double ProcessLib::HeatTransportBHE::BHE::BuildingPowerCurveConstantFlow::heat_capacity

Definition at line 141 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ is_power_bc

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

Definition at line 143 of file FlowAndTemperatureControl.h.


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