cl126162 commited on
Commit
cf5ef67
·
verified ·
1 Parent(s): 1112c7b

Update TCFlarge_3D_Re207/environment_config.yaml

Browse files
TCFlarge_3D_Re207/environment_config.yaml CHANGED
@@ -1,112 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  simulation:
2
- CASENAME: tcf
3
- exeName: nek5000
4
- nzs: 1
5
- nxs: 1
6
- out_log: logfile
7
- host: localhost
8
- hostfile: ''
9
- compile_path: ../envs/cases/large_channel_noresize
10
- restart_folder: ../data/rs6_lc_noresize_new_reth515
11
  nproc: 512
12
- TOTCTRL: 98
13
- ndrl: 25
14
- znmf_avg: 1
15
  target_cfl: 2.0
16
  y_sensing: 15.0
17
- retau: 280.0
18
- num_nodes_srun: 4
19
- oversubscribe: false
20
- lx1: 8
21
- Lx: 6.28
 
 
 
 
22
  Ly: 1.0
23
  Lz: 3.14
24
  Nx: 10
25
- Ny: 8
26
  Nz: 9
 
 
 
 
 
27
  tmax: 100000.0
28
- stopAt: numSteps
29
  numSteps: 500000
30
- dt: -0.002
31
- timeStepper: bdf3
32
- variableDt: 'no'
33
- writeControl: timeStep
34
- writeInterval: 200000
35
- dealiasing: 'yes'
36
- filtering: none
37
  filterWeight: 0.01
38
  filterCutoffRatio: 0.9
39
- stressFormulation: 'no'
40
- variableProperties: 'no'
41
  p_residualTol: 1.0e-08
42
- p_residualProj: 'no'
43
  v_residualTol: 1.0e-08
44
- v_residualProj: 'no'
45
  density: 1.0
46
- viscosity: -4600
47
- advection: 'yes'
48
- PARFWRITE: 'no'
49
- PARFNAME: outparfile
 
 
50
  LOGLEVEL: 1
51
- WALLTIME: '23:45'
52
- READCHKPT: 'yes'
53
  CHKPFNUMBER: 1
54
  CHKPINTERVAL: 10000000
55
  AVSTEP: 10
56
- IOSTEP: 10000
57
- SMPSTEP: 25
58
- runner:
59
- RL_algorithm: TD3
60
- nb_interactions: 2510
61
- nb_episodes: 200
62
- nb_warmup_episodes: 1
63
- train_steps: 300
64
- ckpt_int: 1
65
- custom_policy: true
66
- policy_file: ../conf/default_ddpg_policy.yml
67
- learning_rate: 0.001
68
- batch_size: 2048
69
- n_epochs: 25
70
- buffer_size: 20000000
71
- rescale_actions: true
72
- target_kl: 0.02
73
- likhood_clipping: 0.5
74
- gamma: 0.99
75
- ent_coef: 0.0
76
- max_grad_norm: 0.5
77
- vf_coef: 0.5
78
- action_noise: 0.1
79
- gradient_steps: 64
80
- size_history: 10
81
- tau: 0.005
82
- learning_starts: 100
83
- policy_delay: 1
84
- target_policy_noise: 0.2
85
- target_noise_clip: 0.5
86
- seed: -5000
87
- custom_buffer: false
88
- keep_frac: 0.25
89
- buffer_mode: rotate
90
- random_init: -1
91
- agent_run_name: 401031
92
- load_agent: true
93
- rewrite_input_files: false
94
- evaluation: true
95
- rank: 6
96
- policy: rl_model_265658400_steps
97
- learnt_policy: true
98
- vars_record: true
99
- vars_record_freq: 1
100
- rew_mode: Homo
101
- normalize_input: utau
102
- ctrl_min_amp: -0.061
103
- ctrl_max_amp: 0.061
104
- ctrl_array_size: 1
105
- npl_state: 2
106
- u_tau: 0.061
107
- dUdy: 16.9
108
- logging:
109
- run_name: 401031
110
- group: null
111
- notes: null
112
- save_dir: ../runs
 
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+ # PettingZoo reproducible config for TCFmini_3D_Re180
4
+ # Intended to be used with prepare_workspace + mpirun from work_dir.
5
+
6
+ runner:
7
+ # RL/interaction settings
8
+ nb_interactions: 2500
9
+ nb_episodes: 100
10
+ nb_warmup_episodes: 1
11
+ train_steps: 300
12
+ gradient_steps: 64
13
+ ckpt_int: 5 # Save checkpoint every 5 episodes
14
+ RL_algorithm: "TD3"
15
+ rescale_actions: true
16
+ learning_rate: 1e-3
17
+ batch_size: 2048
18
+ buffer_size: 20_000_000
19
+ learning_starts: 100
20
+ tau: 0.005
21
+ policy_delay: 2
22
+ target_policy_noise: 0.2
23
+ target_noise_clip: 0.5
24
+ action_noise: 0.1 # 10% of the action space
25
+
26
+ # Reproducibility and environment coupling
27
+ seed: 20010603 # Fixed seed for reproducibility
28
+ random_init: 6
29
+ rank: 1
30
+ evaluation: false
31
+ normalize_input: "utau"
32
+ ctrl_min_amp: -0.063
33
+ ctrl_max_amp: 0.063
34
+ npl_state: 2
35
+ u_tau: 0.0630
36
+ dUdy: 13.10
37
+
38
  simulation:
39
+ CASENAME: "tcf"
40
+ solver_version: "v19"
41
+ exeName: "nek5000"
42
+ host: "localhost"
43
+ hostfile: ""
44
+ compile_path: "."
45
+ restart_folder: "restart_files"
46
+
47
+ # Core runtime configuration
48
  nproc: 512
49
+ TOTCTRL: 128 # Buffer size for MPI
50
+ ndrl: 13 # dt+ = 0.6
51
+ znmf_avg: 1
52
  target_cfl: 2.0
53
  y_sensing: 15.0
54
+ retau: 207.0
55
+ # --- We are not using body-force method in this case ---
56
+ ys_bdf: 0.0
57
+ amp_bdf: 0.0
58
+ ret_bdf: 0.0
59
+
60
+ # SIZE (mesh)
61
+ lx1: 8
62
+ Lx: 6.28
63
  Ly: 1.0
64
  Lz: 3.14
65
  Nx: 10
66
+ Ny: 9
67
  Nz: 9
68
+ # -- Size of the actuator patch --
69
+ nxs: 1
70
+ nzs: 1
71
+
72
+ # .par settings
73
  tmax: 100000.0
74
+ stopAt: "numSteps"
75
  numSteps: 500000
76
+ dt: -4.0e-03
77
+ timeStepper: "bdf3"
78
+ variableDt: "no"
79
+ writeControl: "timeStep"
80
+ writeInterval: 100000
81
+ dealiasing: "yes"
82
+ filtering: "none"
83
  filterWeight: 0.01
84
  filterCutoffRatio: 0.9
85
+ stressFormulation: "no"
86
+ variableProperties: "no"
87
  p_residualTol: 1.0e-08
88
+ p_residualProj: "no"
89
  v_residualTol: 1.0e-08
90
+ v_residualProj: "no"
91
  density: 1.0
92
+ viscosity: -3300 # Higher Reb
93
+ advection: "yes"
94
+
95
+ # Runtime parameters
96
+ PARFWRITE: "no"
97
+ PARFNAME: "outparfile"
98
  LOGLEVEL: 1
99
+ WALLTIME: "23:45"
100
+ READCHKPT: "yes"
101
  CHKPFNUMBER: 1
102
  CHKPINTERVAL: 10000000
103
  AVSTEP: 10
104
+ # During training we do not need write running statistics and time-series data
105
+ IOSTEP: 300000000
106
+ SMPSTEP: 1000