Skip to content

Commit

Permalink
Added DARhoPimpleFoam (#606)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
friedenhe authored Mar 21, 2024
1 parent 695e280 commit 217f5e1
Show file tree
Hide file tree
Showing 17 changed files with 1,678 additions and 116 deletions.
5 changes: 3 additions & 2 deletions dafoam/pyDAFoam.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""

__version__ = "3.1.1"
__version__ = "3.1.2"

import subprocess
import os
Expand Down Expand Up @@ -911,7 +911,7 @@ def _solverRegistry(self):

self.solverRegistry = {
"Incompressible": ["DASimpleFoam", "DASimpleTFoam", "DAPisoFoam", "DAPimpleFoam", "DAPimpleDyMFoam"],
"Compressible": ["DARhoSimpleFoam", "DARhoSimpleCFoam", "DATurboFoam"],
"Compressible": ["DARhoSimpleFoam", "DARhoSimpleCFoam", "DATurboFoam", "DARhoPimpleFoam"],
"Solid": ["DASolidDisplacementFoam", "DALaplacianFoam", "DAHeatTransferFoam", "DAScalarTransportFoam"],
}

Expand Down Expand Up @@ -2257,6 +2257,7 @@ def solveAdjointUnsteady(self):

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

# call the internal design var function to update DASolver parameters
Expand Down
Loading

0 comments on commit 217f5e1

Please sign in to comment.