File tree Expand file tree Collapse file tree 1 file changed +30
-75
lines changed
var/ramble/repos/builtin/base_applications/openfoam Expand file tree Collapse file tree 1 file changed +30
-75
lines changed Original file line number Diff line number Diff line change @@ -21,85 +21,34 @@ class Openfoam(ExecutableApplication):
2121
2222 tags ("cfd" )
2323
24- workload (
24+ motorbike_workloads = [
2525 "motorbike" ,
26- executables = [
27- "clean" ,
28- "get_inputs" ,
29- "configure_mesh" ,
30- "surfaceFeatures" ,
31- "blockMesh" ,
32- "decomposePar1" ,
33- "snappyHexMesh" ,
34- "configure_simplefoam" ,
35- "redistributePar" ,
36- "decomposePar2" ,
37- "patchSummary" ,
38- "potentialFoam" ,
39- "checkMesh" ,
40- "simpleFoam" ,
41- ],
42- )
43-
44- workload (
4526 "motorbike_20m" ,
46- executables = [
47- "clean" ,
48- "get_inputs" ,
49- "configure_mesh" ,
50- "surfaceFeatures" ,
51- "blockMesh" ,
52- "decomposePar1" ,
53- "snappyHexMesh" ,
54- "configure_simplefoam" ,
55- "redistributePar" ,
56- "decomposePar2" ,
57- "patchSummary" ,
58- "potentialFoam" ,
59- "checkMesh" ,
60- "simpleFoam" ,
61- ],
62- )
63-
64- workload (
6527 "motorbike_42m" ,
66- executables = [
67- "clean" ,
68- "get_inputs" ,
69- "configure_mesh" ,
70- "surfaceFeatures" ,
71- "blockMesh" ,
72- "decomposePar1" ,
73- "snappyHexMesh" ,
74- "configure_simplefoam" ,
75- "redistributePar" ,
76- "decomposePar2" ,
77- "patchSummary" ,
78- "potentialFoam" ,
79- "checkMesh" ,
80- "simpleFoam" ,
81- ],
82- )
83-
84- workload (
8528 "motorbike_100m" ,
86- executables = [
87- "clean" ,
88- "get_inputs" ,
89- "configure_mesh" ,
90- "surfaceFeatures" ,
91- "blockMesh" ,
92- "decomposePar1" ,
93- "snappyHexMesh" ,
94- "configure_simplefoam" ,
95- "redistributePar" ,
96- "decomposePar2" ,
97- "patchSummary" ,
98- "potentialFoam" ,
99- "checkMesh" ,
100- "simpleFoam" ,
101- ],
102- )
29+ "motorbike_200m" ,
30+ ]
31+
32+ for wl in motorbike_workloads :
33+ workload (
34+ wl ,
35+ executables = [
36+ "clean" ,
37+ "get_inputs" ,
38+ "configure_mesh" ,
39+ "surfaceFeatures" ,
40+ "blockMesh" ,
41+ "decomposePar1" ,
42+ "snappyHexMesh" ,
43+ "configure_simplefoam" ,
44+ "redistributePar" ,
45+ "decomposePar2" ,
46+ "patchSummary" ,
47+ "potentialFoam" ,
48+ "checkMesh" ,
49+ "simpleFoam" ,
50+ ],
51+ )
10352
10453 workload_variable (
10554 "input_path" ,
@@ -180,6 +129,12 @@ class Openfoam(ExecutableApplication):
180129 description = "Mesh size for simulation" ,
181130 workload = "motorbike_100m" ,
182131 )
132+ workload_variable (
133+ "mesh_size" ,
134+ default = "(226 96 96)" ,
135+ description = "Mesh size for simulation" ,
136+ workload = "motorbike_200m" ,
137+ )
183138 workload_variable (
184139 "max_local_cells" ,
185140 default = "100000" ,
You can’t perform that action at this time.
0 commit comments