20namespace HeatTransportBHE
24static std::tuple<BoreholeGeometry,
25 RefrigerantProperties,
28 PipeConfigurationUType,
33 std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
const&
37 auto const bhe_if_use_python_bc_conf =
40 DBUG(
"If using python boundary condition : {:s}",
41 (bhe_if_use_python_bc_conf) ?
"true" :
"false");
43 auto const borehole_geometry =
50 Pipe const inlet_pipe =
createPipe(pipes_config.getConfigSubtree(
"inlet"));
51 Pipe const outlet_pipe =
53 createPipe(pipes_config.getConfigSubtree(
"outlet"));
54 const auto pipe_distance =
56 pipes_config.getConfigParameter<
double>(
"distance_between_pipes");
57 const auto pipe_longitudinal_dispersion_length =
59 pipes_config.getConfigParameter<
double>(
60 "longitudinal_dispersion_length");
62 pipe_longitudinal_dispersion_length};
67 auto const refrigerant =
77 return {borehole_geometry, refrigerant, grout,
78 flowAndTemperatureControl, pipes, bhe_if_use_python_bc_conf};
81template <
typename T_BHE>
85 std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
const&
89 return {std::get<0>(UType), std::get<1>(UType), std::get<2>(UType),
90 std::get<3>(UType), std::get<4>(UType), std::get<5>(UType)};
96 std::unique_ptr<MathLib::PiecewiseLinearInterpolation>>
const&
101 std::map<std::string,
102 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)
template BHE_1U createBHEUType< BHE_1U >(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
std::variant< TemperatureCurveConstantFlow, TemperatureCurveFlowCurve, FixedPowerConstantFlow, FixedPowerFlowCurve, PowerCurveConstantFlow, PowerCurveFlowCurve, BuildingPowerCurveConstantFlow > FlowAndTemperatureControl
Pipe createPipe(BaseLib::ConfigTree const &config)
template BHE_2U createBHEUType< BHE_2U >(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
FlowAndTemperatureControl createFlowAndTemperatureControl(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves, RefrigerantProperties const &refrigerant)
GroutParameters createGroutParameters(BaseLib::ConfigTree const &config)
BoreholeGeometry createBoreholeGeometry(BaseLib::ConfigTree const &config)
T_BHE createBHEUType(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)
static std::tuple< BoreholeGeometry, RefrigerantProperties, GroutParameters, FlowAndTemperatureControl, PipeConfigurationUType, bool > parseBHEUTypeConfig(BaseLib::ConfigTree const &config, std::map< std::string, std::unique_ptr< MathLib::PiecewiseLinearInterpolation > > const &curves)