OGS
ProcessLib::HeatTransportBHE::BHE::PowerCurveConstantFlow Struct Reference

Detailed Description

Definition at line 83 of file FlowAndTemperatureControl.h.

#include <FlowAndTemperatureControl.h>

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

Public Member Functions

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

Public Attributes

MathLib::PiecewiseLinearInterpolation const & power_curve
 
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::PowerCurveConstantFlow::operator() ( double const T_out,
double const time ) const
inline

Definition at line 85 of file FlowAndTemperatureControl.h.

86 {
87 double const power = power_curve.getValue(time);
88 if (power == 0)
89 {
90 return {0.0, T_out};
91 }
92 return {flow_rate, power / flow_rate / heat_capacity / density + T_out};
93 }
double getValue(double pnt_to_interpolate) const
Calculates the interpolation value.
MathLib::PiecewiseLinearInterpolation const & power_curve

References density, flow_rate, MathLib::PiecewiseLinearInterpolation::getValue(), heat_capacity, and power_curve.

Member Data Documentation

◆ density

double ProcessLib::HeatTransportBHE::BHE::PowerCurveConstantFlow::density

Definition at line 98 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ flow_rate

double ProcessLib::HeatTransportBHE::BHE::PowerCurveConstantFlow::flow_rate

Definition at line 96 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ heat_capacity

double ProcessLib::HeatTransportBHE::BHE::PowerCurveConstantFlow::heat_capacity

Definition at line 97 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ is_power_bc

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

Definition at line 99 of file FlowAndTemperatureControl.h.

◆ power_curve

MathLib::PiecewiseLinearInterpolation const& ProcessLib::HeatTransportBHE::BHE::PowerCurveConstantFlow::power_curve

Definition at line 94 of file FlowAndTemperatureControl.h.

Referenced by operator()().


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