18namespace HeatTransportBHE
22static std::tuple<BoreholeGeometry,
23 RefrigerantProperties,
26 PipeConfiguration1PType,
31 std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
const&
35 auto const bhe_if_use_python_bc_conf =
39 if (bhe_if_use_python_bc_conf)
41 DBUG(
"BHE 1P using python boundary conditions.");
44 auto const borehole_geometry =
51 Pipe const inlet_pipe =
createPipe(pipes_config.getConfigSubtree(
"inlet"));
53 const auto pipe_longitudinal_dispersion_length =
55 pipes_config.getConfigParameter<
double>(
56 "longitudinal_dispersion_length");
58 pipe_longitudinal_dispersion_length};
63 auto const refrigerant =
73 return {borehole_geometry, refrigerant, grout,
74 flowAndTemperatureControl, pipes, bhe_if_use_python_bc_conf};
77template <
typename T_BHE>
81 std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
const&
85 return {std::get<0>(SinglePipeType), std::get<1>(SinglePipeType),
86 std::get<2>(SinglePipeType), std::get<3>(SinglePipeType),
87 std::get<4>(SinglePipeType), std::get<5>(SinglePipeType)};
93 std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
const&
void DBUG(fmt::format_string< Args... > fmt, Args &&... args)
T getConfigParameter(std::string const ¶m) const
ConfigTree getConfigSubtree(std::string const &root) const
RefrigerantProperties createRefrigerantProperties(BaseLib::ConfigTree const &config)
std::variant< TemperatureCurveConstantFlow, TemperatureCurveFlowCurve, FixedPowerConstantFlow, FixedPowerFlowCurve, PowerCurveConstantFlow, PowerCurveFlowCurve, BuildingPowerCurveConstantFlow > FlowAndTemperatureControl
static std::tuple< BoreholeGeometry, RefrigerantProperties, GroutParameters, FlowAndTemperatureControl, PipeConfiguration1PType, bool > parseBHE1PTypeConfig(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
Pipe createPipe(BaseLib::ConfigTree const &config)
FlowAndTemperatureControl createFlowAndTemperatureControl(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves, RefrigerantProperties const &refrigerant)
T_BHE createBHE1PType(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
template BHE_1P createBHE1PType< BHE_1P >(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
GroutParameters createGroutParameters(BaseLib::ConfigTree const &config)
BoreholeGeometry createBoreholeGeometry(BaseLib::ConfigTree const &config)