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

Update TCFmini_3D_Re180/environment_config.yaml

Browse files
TCFmini_3D_Re180/environment_config.yaml CHANGED
@@ -1,69 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  simulation:
2
- CASENAME: phill
3
- nzs: 1
4
- nxs: 1
5
- host: localhost
6
- hostfile: ''
7
- compile_path: ../../hydrogym/nek/envs/mini_channel_oc
8
- restart_folder: ./restart_files
9
- nproc: 16
 
 
10
  TOTCTRL: 220
11
  ndrl: 1
12
  znmf_avg: 0
13
  target_cfl: 2.0
14
  y_sensing: 15.0
15
- retau: 180.0
16
- ys_bdf: 20.0
17
- amp_bdf: 5.0
18
- ret_bdf: 207.0
19
- num_nodes_srun: 4
20
- oversubscribe: false
21
- lx1: 6
 
22
  Lx: 2.67
23
  Ly: 1.0
24
  Lz: 0.8
25
- Nx: 4
26
- Ny: 16
27
- Nz: 4
 
 
 
 
 
28
  tmax: 100000.0
29
- stopAt: numSteps
30
  numSteps: 500000
31
- dt: -0.01
32
- timeStepper: bdf3
33
- variableDt: 'no'
34
- writeControl: timeStep
35
  writeInterval: 100000
36
- dealiasing: 'yes'
37
- filtering: none
38
  filterWeight: 0.01
39
  filterCutoffRatio: 0.9
40
- stressFormulation: 'no'
41
- variableProperties: 'no'
42
  p_residualTol: 1.0e-08
43
- p_residualProj: 'no'
44
  v_residualTol: 1.0e-08
45
- v_residualProj: 'no'
46
  density: 1.0
47
- viscosity: -2800
48
- advection: 'yes'
49
- PARFWRITE: 'no'
50
- PARFNAME: outparfile
 
 
51
  LOGLEVEL: 1
52
- WALLTIME: '23:45'
53
- READCHKPT: 'yes'
54
  CHKPFNUMBER: 1
 
55
  CHKPINTERVAL: 10000000
56
  AVSTEP: 10
57
  IOSTEP: 300000000
58
- SMPSTEP: 23
59
- runner:
60
- nb_interactions: 2500
61
- rank: 1
62
- rescale_actions: false
63
- normalize_input: None
64
- ctrl_min_amp: -1.0
65
- ctrl_max_amp: 1.0
66
- ctrl_array_size: 1
67
- npl_state: 2
68
- u_tau: 0.0638
69
- dUdy: 12.4271
 
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 # Number of interactions within one episode
9
+ nb_episodes: 100
10
+ nb_warmup_episodes: 1
11
+ train_steps: 300 # Interval of training steps within one episode
12
+ gradient_steps: 64 # Interval of gradient steps within one episode
13
+ ckpt_int: 5 # Save checkpoint every 5 episodes
14
+ RL_algorithm: "TD3"
15
+ rescale_actions: true # Rescale actions to the range [-1, 1] then scale by u_tau
16
+ learning_rate: 1e-3
17
+ batch_size: 256 # Batch size for training
18
+ buffer_size: 1000000 # Buffer size for experience replay
19
+ learning_starts: 100
20
+ tau: 0.005
21
+ # --- For TD3 algorithm ---
22
+ policy_delay: 2
23
+ target_policy_noise: 0.0
24
+ target_noise_clip: 0.0
25
+ action_noise: 0.1 # 10% of the action space
26
+
27
+ # Reproducibility and environment coupling
28
+ seed: 1998
29
+ random_init: 6
30
+ rank: 1
31
+ evaluation: false
32
+ normalize_input: "utau"
33
+ ctrl_min_amp: -0.06388353
34
+ ctrl_max_amp: 0.06388353
35
+ npl_state: 2
36
+ u_tau: 0.06388353
37
+ dUdy: 12.4271
38
+
39
  simulation:
40
+ CASENAME: "phill"
41
+ solver_version: "v19"
42
+ exeName: "nek5000"
43
+ host: "localhost"
44
+ hostfile: ""
45
+ compile_path: "."
46
+ restart_folder: "restart_files"
47
+
48
+ # Core runtime configuration
49
+ nproc: 10
50
  TOTCTRL: 220
51
  ndrl: 1
52
  znmf_avg: 0
53
  target_cfl: 2.0
54
  y_sensing: 15.0
55
+ retau: 180.0 # Friction Reynolds number
56
+ ys_bdf: 0.0 # Body-force method is not used in this case
57
+ amp_bdf: 0.0 # Body-force method is not used in this case
58
+ ret_bdf: 0.0 # Body-force method is not used in this case
59
+
60
+ # SIZE (mesh)
61
+ lx1: 6 # Polynomial order of GLL basis functions
62
+ # -- Size of the domain --
63
  Lx: 2.67
64
  Ly: 1.0
65
  Lz: 0.8
66
+ Nx: 4 # Number of spectral elements in the x-direction
67
+ Ny: 16 # Number of spectral elements in the y-direction
68
+ Nz: 4 # Number of spectral elements in the z-direction
69
+ # -- Size of the actuator patch --
70
+ nxs: 1
71
+ nzs: 1
72
+
73
+ # .par settings
74
  tmax: 100000.0
75
+ stopAt: "numSteps"
76
  numSteps: 500000
77
+ dt: -0.01 # Time step size (negative value means time step)
78
+ timeStepper: "bdf3"
79
+ variableDt: "no"
80
+ writeControl: "timeStep"
81
  writeInterval: 100000
82
+ dealiasing: "yes"
83
+ filtering: "none"
84
  filterWeight: 0.01
85
  filterCutoffRatio: 0.9
86
+ stressFormulation: "no"
87
+ variableProperties: "no"
88
  p_residualTol: 1.0e-08
89
+ p_residualProj: "no"
90
  v_residualTol: 1.0e-08
91
+ v_residualProj: "no"
92
  density: 1.0
93
+ viscosity: -2800 # Reb
94
+ advection: "yes"
95
+
96
+ # Runtime parameters
97
+ PARFWRITE: "no"
98
+ PARFNAME: "outparfile"
99
  LOGLEVEL: 1
100
+ WALLTIME: "23:45"
101
+ READCHKPT: "yes" # Read checkpoint file from the fully-developed flow field
102
  CHKPFNUMBER: 1
103
+ # --- We are not using checkpointing in this case ---
104
  CHKPINTERVAL: 10000000
105
  AVSTEP: 10
106
  IOSTEP: 300000000
107
+ # --- We are not using SMP in this case ---
108
+ SMPSTEP: 23