From 75aa33469b6fbd9b234d017a385a3191468579f3 Mon Sep 17 00:00:00 2001 From: LoneMeertens Date: Mon, 13 May 2024 15:37:39 +0200 Subject: [PATCH] Possible to make changes in GHEtool and give to pygfunction for dynamic short-term g-function calculation? --- .../VariableClasses/Dyn_short_term_effects.py | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 GHEtool/VariableClasses/Dyn_short_term_effects.py diff --git a/GHEtool/VariableClasses/Dyn_short_term_effects.py b/GHEtool/VariableClasses/Dyn_short_term_effects.py new file mode 100644 index 00000000..a9462e3d --- /dev/null +++ b/GHEtool/VariableClasses/Dyn_short_term_effects.py @@ -0,0 +1,31 @@ +""" +This document contains the code to add the dynamic short-term effects to the pygfunction package as they can be +translated into short-term g-functions following the paper of (Meertens et al., 2023) + +References: +----------- + - +""" + +import pygfunction as gt +import numpy as np + +def radial_numerical_borehole(self,time, alpha): + + + + + +def update_pygfunction() -> None: + """ + This function updates pygfunction by adding the cylindrical correction methods to it. + + Returns + ------- + None + """ + gt.heat_transfer.cylindrical_heat_source = cylindrical_heat_source + gt.heat_transfer.infinite_line_source = infinite_line_source + gt.gfunction._Equivalent.thermal_response_factors = thermal_response_factors + gt.gfunction._BaseSolver.solve = solve + gt.gfunction._BaseSolver.__init__ = __init__ \ No newline at end of file