Skip to content

Commit 0ddc2d2

Browse files
Added documentation of tabulation settings
1 parent 83d94b3 commit 0ddc2d2

3 files changed

Lines changed: 85 additions & 3 deletions

File tree

Common/DataDrivenConfig.py

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,11 @@ def IncludeTransportProperties(self, calc_transport_properties:bool=False):
238238
return
239239

240240
def CalcTransportProperties(self):
241+
"""Whether transport properties are included in the fluid data set.
242+
243+
:return: calculation of transport properties.
244+
:rtype: bool
245+
"""
241246
return self.__calc_transport_properties
242247

243248
def SetConductivityModel(self, conductivity_model:str=DefaultSettings_NICFD.conductivity_model):
@@ -287,18 +292,33 @@ def GetViscosityModel(self):
287292
return self.__viscosity_model
288293

289294
def EnableGasPhase(self, gas_phase:bool=True):
295+
"""Include thermophysical state data from the fluid in gas phase
296+
297+
:param gas_phase: include gas phase data, defaults to True
298+
:type gas_phase: bool, optional
299+
"""
290300
self.__gasphase = gas_phase
291301
return
292302

293303
def GasPhase(self):
304+
"""Whether thermophysical state data from the fluid in the gaseous phase are included.
305+
306+
:return: inclusion of gas phase data.
307+
:rtype: bool
308+
"""
294309
return self.__gasphase
295310

296311
def EnableSuperCritical(self, supercritical:bool=True):
312+
"""Include thermophysical state data of the fluid in supercritial, and of the supercritical gas and liquid phase if specified.
313+
314+
:param supercritical: include supercritical phase data, defaults to True
315+
:type supercritical: bool, optional
316+
"""
297317
self.__supercritical = supercritical
298318
return
299319

300320
def EnableTwophase(self, two_phase:bool=False):
301-
"""Include two-phase region in fluid data.
321+
"""Include two-phase thermophysical data of the fluid.
302322
303323
:param two_phase: include two-phase data in fluid data, defaults to False
304324
:type two_phase: bool, optional
@@ -316,12 +336,27 @@ def EnableLiquidPhase(self, liquid_phase:bool=False):
316336
return
317337

318338
def TwoPhase(self):
339+
"""Whether thermophysical state data from the fluid in the two-phase are included.
340+
341+
:return: inclusion of two-phase data.
342+
:rtype: bool
343+
"""
319344
return self.__twophase
320345

321346
def LiquidPhase(self):
347+
"""Whether thermophysical state data from the fluid in the liquid phase are included.
348+
349+
:return: inclusion of liquid phase data.
350+
:rtype: bool
351+
"""
322352
return self.__liquidphase
323353

324354
def SuperCritical(self):
355+
"""Whether thermophysical state data from the fluid in the supercritical phases are included.
356+
357+
:return: inclusion of supercritical phase data.
358+
:rtype: bool
359+
"""
325360
return self.__supercritical
326361

327362
def GetEquationOfState(self):

Documentation/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
exclude_patterns = []
2424

2525
add_module_names = False
26-
26+
show_authors=True
2727
numpydoc_show_class_members = False
2828
# -- Options for HTML output -------------------------------------------------
2929
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

Documentation/source/documentation/configs/Config_NICFD.rst

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.. sectionauthor:: Evert Bunschoten
2+
3+
14
.. _NICFD:
25

36
SU2 DataMiner Configuration for NICFD
@@ -35,6 +38,7 @@ retrieved by running the following code snippet:
3538

3639
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.SetFluid
3740

41+
.. _nicfd_data_limits:
3842

3943
Range of the Thermodynamic State Data
4044
-------------------------------------
@@ -70,6 +74,34 @@ The limits of the fluid data grid are set with the following functions
7074
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.SetDensityBounds
7175

7276

77+
Phases and transport properties
78+
-------------------------------
79+
80+
Thermophysical state data can be generated at various phases. The following functions can be used to specify in which phases thermophysical state data are included in the data generation process.
81+
*SU2 DataMiner* currently only supports the inclusion of fluid data in the gaseous, liquid, two-phase, supercritical, supercritical gas, and supercritical liquid phases.
82+
Information about the phase data can be accessed with the following functions.
83+
84+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.EnableGasPhase
85+
86+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.EnableLiquidPhase
87+
88+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.EnableSuperCritical
89+
90+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.GasPhase
91+
92+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.LiquidPhase
93+
94+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.SuperCritical
95+
96+
Transport properties can also be included in the fluid data set. Currently, these are limited to the fluid *thermal conductivity*, *dynamic viscosity*, and *vapor quality*.
97+
Information on whether transport properties are included in the fluid data set can be accessed with the following functions:
98+
99+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.IncludeTransportProperties
100+
101+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.CalcTransportProperties
102+
103+
104+
.. _resolutionsettings:
73105

74106
Resolution
75107
----------
@@ -116,7 +148,22 @@ By default, these are entropy, pressure, temperature, and the speed of sound, bu
116148

117149

118150

119-
151+
Tabulation
152+
----------
153+
154+
In addition to the EEoS-PINN method, thermophysical state information can also be stored in look-up tables.
155+
The thermodynamic state space can be discretized with a *Cartesian* method or with an *adaptive* method.
156+
With the Cartesian method, the thermodynamic state space is divided into equally sized, rectangular cells in the density-static energy space.
157+
The number of cells along the density and energy axes are specified with the :ref:`setters <resolutionsettings>` for thermodynamic state space resolution.
158+
With the adaptive method, the thermodynamic state space is divided into triangular elements and can be locally refined in areas of interest such as around the saturation curve.
159+
For both methods, the limits of the table can be specified with the :ref:`setters <nicfd_data_limits>` for the density and static energy ranges.
160+
161+
Information on the table discretization method can be accessed with the following functions:
162+
163+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.SetTableDiscretization
164+
165+
.. autofunction:: Common.DataDrivenConfig.Config_NICFD.GetTableDiscretization
166+
120167

121168
References
122169
----------

0 commit comments

Comments
 (0)