Skip to content

Commit

Permalink
heat exchanger (PaddlePaddle#693)
Browse files Browse the repository at this point in the history
* add bubble datafile test=develop

* add bubble code test=develop

* add bubble code test=develop

* add bubble code test=develop

* add bubble code

* add bubble data

* add bubble code

* delete mat file

* delete mat file

* bubble code

* delete mat file

* add some modify

* add some modifications

* add some modifications

* add some modifications

* add some modifications

* add some modification

* add some modification

* add some modification

* add some modification

* add some modification

* add some modification(test=document_fix)

* add some modification

* add some modification

* add some modification

* add some modification

* add some code test=develop

* add some code test=develop

* add some code test=develop

* add some code test=develop

* add some code test=develop

* add some code test=develop

* add some code test=develop

* add some code test=develop
  • Loading branch information
liaoxin2 committed Dec 21, 2023
1 parent d6382c2 commit fb1a380
Show file tree
Hide file tree
Showing 9 changed files with 1,061 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/zh/api/arch.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
- PrecipNet
- UNetEx
- NowcastNet
- HEDeepONets
show_root_heading: true
heading_level: 3
1 change: 1 addition & 0 deletions docs/zh/api/equation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- PDE
- FractionalPoisson
- Biharmonic
- HeatExchanger
- Laplace
- LinearElasticity
- NavierStokes
Expand Down
91 changes: 91 additions & 0 deletions examples/heat_exchanger/conf/heat_exchanger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
hydra:
run:
# dynamic output directory according to running time and override name
dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}/${hydra.job.override_dirname}
job:
name: ${mode} # name of logfile
chdir: false # keep current working direcotry unchanged
config:
override_dirname:
exclude_keys:
- TRAIN.checkpoint_path
- TRAIN.pretrained_model_path
- EVAL.pretrained_model_path
- mode
- output_dir
- log_freq
sweep:
# output directory for multirun
dir: ${hydra.run.dir}
subdir: ./

# general settings
mode: train # running mode: train/eval
seed: 42
output_dir: ${hydra:run.dir}
log_freq: 20

# set working condition
DL: 1.0 # lenth of the domain
cp_c: 1.0 # specific heat capacity of cold boundary
cp_h: 1.0 # specific heat capacity of hot boundary
cp_w: 1.0 # specific heat capacity of wall
v_h: 1.0 # flow rate of hot boundary
v_c: 1.0 # flow rate of cold boundary
alpha_h: 1.0 # surface efficiency*heat transfer coefficient*heat transfer area of hot boundary
alpha_c: 1.0 # surface efficiency*heat transfer coefficient*heat transfer area of cold boundary
L: 1.0 # flow length
M: 1.0 # heat transfer structural quality
T_hin: 10.0 # initial temperature of hot boundary
T_cin: 1.0 # initial temperature of cold boundary
T_win: 5.5 # initial temperature of wall
NTIME: 20 # number of time steps
NPOINT: 101 # number of points in the domain
NQM: 60 # Number of branch network samples

# model settings
MODEL:
heat_input_keys: ['qm_h']
cold_input_keys: ['qm_c']
trunk_input_keys: ["x",'t']
output_keys: ["T_h",'T_c','T_w']
heat_num_loc: 1
cold_num_loc: 1
num_features: 100
branch_num_layers: 9
trunk_num_layers: 6
branch_hidden_size: 256
trunk_hidden_size: 128
branch_activation: "swish"
trunk_activation: "swish"
use_bias: True

# training settings
TRAIN:
epochs: 20000
iters_per_epoch: 1
eval_during_train: true
eval_freq: 1000
learning_rate: 0.001
batch_size: 1000
weight:
left_sup_constraint:
T_h: 20
right_sup_constraint:
T_h: 20
interior_sup_constraint:
heat_boundary: 1
cold_boundary: 1
wall: 20
initial_sup_constraint:
T_h: 1
T_c: 1
T_w: 20

# evaluation settings
EVAL:
pretrained_model_path: null

# visualization settings
qm_h: 1
qm_c: 1
Loading

0 comments on commit fb1a380

Please sign in to comment.