Buildings.Fluid.Geothermal.Borefields.TOUGH.BaseClasses.Validation

Information

Package with examples validating models in package Buildings.Fluid.Geothermal.Borefields.TOUGH.BaseClasses.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Fluid.Geothermal.Borefields.TOUGH.BaseClasses.Validation.GroundResponse GroundResponse Validation ground response function with python as interface with TOUGH

Buildings.Fluid.Geothermal.Borefields.TOUGH.BaseClasses.Validation.GroundResponse Buildings.Fluid.Geothermal.Borefields.TOUGH.BaseClasses.Validation.GroundResponse

Validation ground response function with python as interface with TOUGH

Buildings.Fluid.Geothermal.Borefields.TOUGH.BaseClasses.Validation.GroundResponse

Information

This model demonstrates the calculation of ground response through TOUGH simulator, Buildings.Fluid.Geothermal.Borefields.TOUGH.BaseClasses.GroundResponse.

Note that in this model, the dummy function def tough_avatar(heatFlux, T_out, nInt) is used to imitate the ground response calculated by TOUGH simulator. See the dummy function in "Path_To_Buildings_Library"/Resources/Python-Sources/GroundResponse.py. It assumes the response temperature increased by 0.1 °C every time when invoking the Python interface.

Modelica definition

model GroundResponse "Validation ground response function with python as interface with TOUGH" Buildings.Fluid.Geothermal.Borefields.TOUGH.BaseClasses.GroundResponse touRes( hBor=100, nSeg=10, nInt=10, nTouSeg=33, touWorDir="tmp-tou-wor-GroundResponse", samplePeriod=60) "Ground response calculated by TOUGH simulator"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant con[10]( final k={273.15+10,273.15+10.2,273.15+10.4,273.15+10.6,273.15+10.8, 273.15+11.0,273.15+11.2,273.15+11.4,273.15+11.6,273.15+11.8}) "Initial borehole wall temperature"; Buildings.Controls.OBC.CDL.Reals.Sources.Sin sin[10]( each amplitude=1000, each freqHz=1/3600) "Heat flow to ground"; Buildings.Controls.OBC.CDL.Reals.Sources.Constant outTem( final k=273.15 + 20) "Outdoor temperature"; equation connect(sin.y, touRes.QBor_flow); connect(con.y, touRes.TBorWal_start); connect(outTem.y, touRes.TOut); end GroundResponse;