-
Notifications
You must be signed in to change notification settings - Fork 109
/
Copy path1:generate_fluid_data.py
40 lines (35 loc) · 2.61 KB
/
1:generate_fluid_data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
###############################################################################################
# # _____ __ _____ ____ __ __ ____ # #
# # / ___// / / /__ \ / __ \____ _/ /_____ _/ |/ (_)___ ___ _____ # #
# # \__ \/ / / /__/ / / / / / __ `/ __/ __ `/ /|_/ / / __ \/ _ \/ ___/ # #
# # ___/ / /_/ // __/ / /_/ / /_/ / /_/ /_/ / / / / / / / / __/ / # #
# # /____/\____//____/ /_____/\__,_/\__/\__,_/_/ /_/_/_/ /_/\___/_/ # #
# # # #
###############################################################################################
########################### FILE NAME: 1:generate_fluid_data.py ###############################
#=============================================================================================#
# author: Evert Bunschoten |
# :PhD Candidate , |
# :Flight Power and Propulsion |
# :TU Delft, |
# :The Netherlands |
# |
# |
# Description: |
# Generate the single-phase fluid data for siloxane MM which is used to train the |
# physics-informed neural network. |
# |
# Version: 2.0.0 |
# |
#=============================================================================================#
from su2dataminer.config import Config_NICFD
from su2dataminer.generate_data import DataGenerator_CoolProp
# Load SU2 DataMiner configuration.
Config = Config_NICFD("SU2DataMiner_MM.cfg")
# Initiate data generator.
DG = DataGenerator_CoolProp(Config)
DG.PreprocessData()
DG.ComputeData()
# Visualize and save fluid data.
DG.VisualizeFluidData()
DG.SaveData()