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

Detailed Description

Definition at line 97 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
 

Member Function Documentation

◆ operator()()

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

Definition at line 99 of file FlowAndTemperatureControl.h.

100 {
101 double const power = power_curve.getValue(time);
102 double const flow_rate = flow_curve.getValue(time);
103 if (power == 0)
104 {
105 return {0.0, T_out};
106 }
107 return {flow_rate, power / flow_rate / heat_capacity / density + T_out};
108 }
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 113 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ flow_curve

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

Definition at line 110 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ heat_capacity

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

Definition at line 112 of file FlowAndTemperatureControl.h.

Referenced by operator()().

◆ power_curve

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

Definition at line 109 of file FlowAndTemperatureControl.h.

Referenced by operator()().


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