OGS
ProcessLib::HeatTransportBHE::BHE::PowerCurveFlowCurve Struct Reference

Detailed Description

Definition at line 102 of file FlowAndTemperatureControl.h.

#include <FlowAndTemperatureControl.h>

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

Public Member Functions

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

Public Attributes

MathLib::PiecewiseLinearInterpolation const & power_curve
 
MathLib::PiecewiseLinearInterpolation const & flow_curve
 
double heat_capacity
 
double density
 

Static Public Attributes

static constexpr bool is_power_bc = true
 

Member Function Documentation

◆ operator()()

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

Definition at line 104 of file FlowAndTemperatureControl.h.

105 {
106 double const power = power_curve.getValue(time);
107 double const flow_rate = flow_curve.getValue(time);
108 if (power == 0)
109 {
110 return {0.0, T_out};
111 }
112 return {flow_rate, power / flow_rate / heat_capacity / density + T_out};
113 }
double getValue(double pnt_to_interpolate) const
Calculates the interpolation value.
MathLib::PiecewiseLinearInterpolation const & power_curve
MathLib::PiecewiseLinearInterpolation const & flow_curve

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

Member Data Documentation

◆ density

double ProcessLib::HeatTransportBHE::BHE::PowerCurveFlowCurve::density

Definition at line 118 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ flow_curve

MathLib::PiecewiseLinearInterpolation const& ProcessLib::HeatTransportBHE::BHE::PowerCurveFlowCurve::flow_curve

Definition at line 115 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ heat_capacity

double ProcessLib::HeatTransportBHE::BHE::PowerCurveFlowCurve::heat_capacity

Definition at line 117 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ is_power_bc

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

Definition at line 119 of file FlowAndTemperatureControl.h.

◆ power_curve

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

Definition at line 114 of file FlowAndTemperatureControl.h.

Referenced by operator()().


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