diff --git a/geojson_modelica_translator/model_connectors/networks/templates/NetworkAmbientWaterStub_Instance.mopt b/geojson_modelica_translator/model_connectors/networks/templates/NetworkAmbientWaterStub_Instance.mopt index c56033470..b4376d668 100644 --- a/geojson_modelica_translator/model_connectors/networks/templates/NetworkAmbientWaterStub_Instance.mopt +++ b/geojson_modelica_translator/model_connectors/networks/templates/NetworkAmbientWaterStub_Instance.mopt @@ -3,11 +3,12 @@ {% for building in range( sys_params.num_buildings ) %} Buildings.Fluid.Sources.MassFlowSource_T supHeaWat_{{ building + 1 }}( redeclare package Medium={{ globals.medium_w }}, - use_m_flow_in=true, use_T_in=false, {% if 'ghe_parameters' in sys_params.district_system['fifth_generation'] %} + use_m_flow_in=false, T={{ sys_params.district_system.fifth_generation.ghe_parameters.soil.undisturbed_temp }}+273.15, {% else %} + use_m_flow_in=true, T={{ sys_params.district_system.fifth_generation.central_heating_plant_parameters.temp_setpoint_hhw }}+273.15, {% endif %} nPorts=1)