Skip to content

Commit fef2538

Browse files
committed
Updated the betaFI names in test scripts.
1 parent 8fe8d1c commit fef2538

3 files changed

+6
-6
lines changed

tests/runTests_DAPimpleFoam.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"active": True,
6464
"modelType": "neuralNetwork",
6565
"inputNames": ["VoS", "PoD", "chiSA", "pGradStream", "PSoSS", "SCurv", "UOrth"],
66-
"outputName": "betaFI",
66+
"outputName": "betaFINuTilda",
6767
"hiddenLayerNeurons": [5, 5],
6868
"inputShift": [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
6969
"inputScale": [1.0, 0.00001, 0.01, 1.0, 1.0, 1.0, 1.0],

tests/runTests_DAPimpleFoamField.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"phi": 1.0,
123123
},
124124
"designVar": {
125-
"beta": {"designVarType": "Field", "fieldName": "betaFI", "fieldType": "scalar"},
125+
"beta": {"designVarType": "Field", "fieldName": "betaFINuTilda", "fieldType": "scalar"},
126126
},
127127
}
128128

@@ -154,11 +154,11 @@
154154

155155
def betaFieldInversion(val, geo):
156156
for idxI, v in enumerate(val):
157-
DASolver.setFieldValue4GlobalCellI(b"betaFI", v, idxI)
158-
DASolver.updateBoundaryConditions(b"betaFI", b"scalar")
157+
DASolver.setFieldValue4GlobalCellI(b"betaFINuTilda", v, idxI)
158+
DASolver.updateBoundaryConditions(b"betaFINuTilda", b"scalar")
159159

160160

161-
beta0 = DASolver.getOFField("betaFI", "scalar", False)
161+
beta0 = DASolver.getOFField("betaFINuTilda", "scalar", False)
162162
DVGeo.addGlobalDV("beta", value=beta0, func=betaFieldInversion, lower=1e-5, upper=10.0, scale=1.0)
163163

164164
# =============================================================================

tests/runTests_DARhoSimpleFoamFIML.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"active": True,
6363
"modelType": "neuralNetwork",
6464
"inputNames": ["KoU2", "ReWall", "CoP", "TauoK"],
65-
"outputName": "betaFI",
65+
"outputName": "betaFIOmega",
6666
"hiddenLayerNeurons": [10, 10],
6767
"inputShift": [0.0, 0.0, 0.0, 0.0],
6868
"inputScale": [1.0, 1.0, 0.0001, 1.0],

0 commit comments

Comments
 (0)