Skip to content

Commit 217f5e1

Browse files
authored
Added DARhoPimpleFoam (#606)
* Removed an unused var for pimple. * Added DARhoPimple. Totals not accurate yet. * Always read oldTimes for volStates. * Read oldTime for intermediate states and fixed the total accuracy.
1 parent 695e280 commit 217f5e1

17 files changed

+1678
-116
lines changed

dafoam/pyDAFoam.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
1212
"""
1313

14-
__version__ = "3.1.1"
14+
__version__ = "3.1.2"
1515

1616
import subprocess
1717
import os
@@ -911,7 +911,7 @@ def _solverRegistry(self):
911911

912912
self.solverRegistry = {
913913
"Incompressible": ["DASimpleFoam", "DASimpleTFoam", "DAPisoFoam", "DAPimpleFoam", "DAPimpleDyMFoam"],
914-
"Compressible": ["DARhoSimpleFoam", "DARhoSimpleCFoam", "DATurboFoam"],
914+
"Compressible": ["DARhoSimpleFoam", "DARhoSimpleCFoam", "DATurboFoam", "DARhoPimpleFoam"],
915915
"Solid": ["DASolidDisplacementFoam", "DALaplacianFoam", "DAHeatTransferFoam", "DAScalarTransportFoam"],
916916
}
917917

@@ -2257,6 +2257,7 @@ def solveAdjointUnsteady(self):
22572257

22582258
# NOTE: this step is critical because we need to compute the residual for
22592259
# self.solverAD once to get the proper oldTime level for unsteady adjoint
2260+
self.solverAD.updateStateBoundaryConditions()
22602261
self.solverAD.calcPrimalResidualStatistics("calc".encode())
22612262

22622263
# call the internal design var function to update DASolver parameters

0 commit comments

Comments
 (0)