-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsu2_validation_schema.json
More file actions
176 lines (170 loc) · 5.63 KB
/
su2_validation_schema.json
File metadata and controls
176 lines (170 loc) · 5.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://su2code.github.io/schemas/su2-validation.schema.json",
"title": "SU2 Cross-Parameter Validation Schema",
"description": "Permissive schema capturing key cross-parameter rules from CConfig.cpp. Unknown keys are allowed.",
"type": "object",
"additionalProperties": true,
"properties": {
"SOLVER": {
"type": "string",
"enum": [
"EULER", "INC_EULER",
"NAVIER_STOKES", "INC_NAVIER_STOKES",
"RANS", "INC_RANS",
"FEM_EULER", "FEM_NAVIER_STOKES"
]
},
"VISCOSITY_MODEL": {
"type": "string",
"enum": ["CONSTANT", "CONSTANT_VISCOSITY", "SUTHERLAND", "POLYNOMIAL", "FLAMELET"]
},
"CONDUCTIVITY_MODEL": {
"type": "string",
"enum": ["CONSTANT", "CONSTANT_CONDUCTIVITY", "CONSTANT_PRANDTL", "POLYNOMIAL", "FLAMELET"]
},
"TURBULENT_CONDUCTIVITY_MODEL": {
"type": "string",
"enum": ["CONSTANT_PRANDTL", "CONSTANT_PRANDTL_TURB", "NONE"]
},
"KIND_TURB_MODEL": {
"type": "string",
"enum": ["NONE", "NO_TURB_MODEL", "SA", "SST", "KW", "IMPLICIT_LES", "SMAGORINSKY", "WALE", "VREMAN"]
},
"KIND_TRANS_MODEL": {
"type": "string",
"enum": ["NONE", "NO_TRANS_MODEL", "LM"]
},
"INC_DENSITY_MODEL": {
"type": "string",
"enum": ["CONSTANT", "VARIABLE", "BOUSSINESQ", "CONSTANT_DENSITY"]
},
"INC_ENERGY_EQUATION": {
"oneOf": [
{ "type": "boolean" },
{ "type": "string", "enum": ["YES", "NO", "TRUE", "FALSE", "ON", "OFF"] }
]
},
"ENERGY_EQUATION": {
"oneOf": [
{ "type": "boolean" },
{ "type": "string", "enum": ["YES", "NO", "TRUE", "FALSE", "ON", "OFF"] }
]
},
"AXISYMMETRIC": {
"oneOf": [
{ "type": "boolean" },
{ "type": "string", "enum": ["YES", "NO", "TRUE", "FALSE"] }
]
},
"MARKER_HEATFLUX": { "type": "array" },
"MARKER_ISOTHERMAL": { "type": "array" },
"MARKER_EULER": { "type": "array" },
"MARKER_INLET": { "type": "array" },
"INC_INLET_TYPE": { "type": "array", "items": { "type": "string" } },
"OUTPUT_FILES": {
"type": "array",
"items": {
"type": "string",
"enum": [
"RESTART", "RESTART_ASCII",
"PARAVIEW", "PARAVIEW_BINARY", "PARAVIEW_MULTIBLOCK",
"TECPLOT", "TECPLOT_BINARY",
"SURFACE_PARAVIEW", "SURFACE_PARAVIEW_BINARY",
"SURFACE_TECPLOT", "SURFACE_TECPLOT_BINARY",
"STL", "STL_BINARY", "CSV"
]
}
},
"MOTION_ORIGIN": {
"type": "array",
"items": { "type": "number" },
"minItems": 2,
"maxItems": 3
},
"BODY_FORCE_VECTOR": {
"type": "array",
"items": { "type": "number" },
"minItems": 3,
"maxItems": 3
},
"SA_OPTIONS": { "oneOf": [ { "type": "string" }, { "type": "array" } ] },
"SST_OPTIONS": { "oneOf": [ { "type": "string" }, { "type": "array" } ] },
"LM_OPTIONS": { "oneOf": [ { "type": "string" }, { "type": "array" } ] }
},
"allOf": [
{
"title": "INC_EULER requires constant density and no energy equation",
"if": {
"properties": { "SOLVER": { "const": "INC_EULER" } },
"required": ["SOLVER"]
},
"then": {
"allOf": [
{ "properties": { "INC_DENSITY_MODEL": { "const": "CONSTANT" } }, "required": ["INC_DENSITY_MODEL"] },
{
"anyOf": [
{ "properties": { "INC_ENERGY_EQUATION": { "type": "boolean", "const": false } }, "required": ["INC_ENERGY_EQUATION"] },
{ "properties": { "INC_ENERGY_EQUATION": { "type": "string", "enum": ["NO", "FALSE", "OFF"] } }, "required": ["INC_ENERGY_EQUATION"] }
]
}
]
}
},
{
"title": "RANS solvers require a turbulence model",
"if": {
"properties": { "SOLVER": { "enum": ["RANS", "INC_RANS"] } },
"required": ["SOLVER"]
},
"then": {
"properties": { "KIND_TURB_MODEL": { "not": { "enum": ["NONE", "NO_TURB_MODEL", ""] } } },
"required": ["KIND_TURB_MODEL"]
}
},
{
"title": "Transition model requires active turbulence model",
"if": {
"properties": { "KIND_TRANS_MODEL": { "enum": ["LM"] } },
"required": ["KIND_TRANS_MODEL"]
},
"then": {
"properties": { "KIND_TURB_MODEL": { "not": { "enum": ["NONE", "NO_TURB_MODEL"] } } },
"required": ["KIND_TURB_MODEL"]
}
},
{
"title": "Euler solvers incompatible with heat/temperature markers",
"if": {
"properties": { "SOLVER": { "enum": ["EULER", "INC_EULER", "FEM_EULER"] } },
"required": ["SOLVER"]
},
"then": {
"properties": {
"MARKER_HEATFLUX": { "maxItems": 0 },
"MARKER_ISOTHERMAL": { "maxItems": 0 }
}
}
},
{
"title": "LM transition model not compatible with axisymmetric flows",
"if": {
"properties": {
"AXISYMMETRIC": { "oneOf": [ { "type": "boolean", "const": true }, { "type": "string", "enum": ["YES", "TRUE"] } ] }
},
"required": ["AXISYMMETRIC"]
},
"then": { "properties": { "KIND_TRANS_MODEL": { "not": { "const": "LM" } } } }
},
{
"title": "Incompressible inlet type presence when inlets exist",
"if": {
"allOf": [
{ "properties": { "SOLVER": { "enum": ["INC_EULER", "INC_NAVIER_STOKES", "INC_RANS"] } }, "required": ["SOLVER"] },
{ "properties": { "MARKER_INLET": { "type": "array", "minItems": 1 } }, "required": ["MARKER_INLET"] }
]
},
"then": { "required": ["INC_INLET_TYPE"] }
}
]
}