Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added DARhoPimpleFoam #606

Merged
merged 4 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading