1+ Flow equations = "NS"
2+ mesh file name = "MESH/cyl_circ.msh"
3+ Polynomial order = 3
4+ Number of time steps = 50
5+ Output Interval = 1
6+ Convergence tolerance = 1.d-10
7+ mach number = 0.2
8+ Reynolds number = 200.0
9+ AOA theta = 0.0
10+ AOA phi = 0.0
11+ solution file name = "RESULTS/Cylinder_Re200_test.hsol"
12+ save gradients with solution = .false.
13+ restart = .false.
14+ restart file name = "RESULTS/Cylinder_Re200_test.hsol"
15+ riemann solver = roe
16+
17+ simulation type = time-accurate
18+ final time = 1.0d0
19+ time integration = explicit
20+ explicit method = RK3
21+
22+ adaptive dt = .true.
23+ dt = 5.d-4
24+ dt adaptation step = 5.d-3
25+ minimum dt = 1.d-5
26+ maximum dt = 1.d-2
27+
28+ #define boundary cylinder
29+ type = NoSlipWall
30+ #end
31+
32+ #define boundary left__right
33+ type = FreeSlipWall
34+ #end
35+
36+ #define boundary inlet
37+ type = Inflow
38+ #end
39+
40+ #define boundary outlet
41+ type = Outflow
42+ #end
43+
44+ !-Adaptation-----------------------------------
45+ save sensor with solution = .true.
46+
47+ #define p-adaptation
48+ adaptation type = RL
49+ agent file = policy_padaptation/p_adaptation_policy
50+ tolerance = 5d-3
51+ Nmax = [6, 6, 6]
52+ Nmin = [2, 2, 2]
53+ adjust nz = .FALSE.
54+ restart files = .FALSE.
55+ order across faces = N*2/3
56+ mode = iteration
57+ interval = 1000
58+ threshold = 5 !Values higher than 100 leads to never adapting
59+ error estimation = .true.
60+ error type = avg
61+ error variable = u
62+ #end
63+ !---------------------------------------------
64+
65+ #define surface monitor 1
66+ Name = cyl-drag
67+ Marker = cylinder
68+ Variable = drag
69+ Direction = [1.0,0.0,0.0]
70+ Reference surface = 1.0
71+ #end
72+
73+ #define surface monitor 2
74+ Name = cyl-lift
75+ Marker = cylinder
76+ Variable = lift
77+ Direction = [0.0,1.0,0.0]
78+ Reference surface = 1.0
79+ #end
80+
81+ #define volume monitor 1
82+ Name = sensor
83+ Variable = sensor range
84+ #end
0 commit comments