forked from OpenFOAM/OpenFOAM-2.3.x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: chtMultiRegionFoam solvers - added option to calculate using fro…
…zen flow
- Loading branch information
andy
committed
Oct 16, 2014
1 parent
f722953
commit ccc9593
Showing
6 changed files
with
52 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 15 additions & 7 deletions
22
...tions/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/fluid/solveFluid.H
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
// Pressure-velocity SIMPLE corrector | ||
|
||
p_rgh.storePrevIter(); | ||
rho.storePrevIter(); | ||
{ | ||
#include "UEqn.H" | ||
#include "EEqn.H" | ||
#include "pEqn.H" | ||
} | ||
if (frozenFlow) | ||
{ | ||
#include "EEqn.H" | ||
} | ||
else | ||
{ | ||
p_rgh.storePrevIter(); | ||
rho.storePrevIter(); | ||
|
||
#include "UEqn.H" | ||
#include "EEqn.H" | ||
#include "pEqn.H" | ||
|
||
turb.correct(); | ||
turb.correct(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,5 @@ | |
dimMass, | ||
initialMassFluid[i] | ||
); | ||
|
||
const bool frozenFlow = frozenFlowFluid[i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters