|
[Sponsors] |
residual control with PISO or NonOrthogonality |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 29, 2015, 09:18 |
residual control with PISO or NonOrthogonality
|
#1 |
Senior Member
Daniel Witte
Join Date: Nov 2011
Posts: 148
Rep Power: 14 |
Hello,
I want to change the implementation of residual control in OpenFoam somewhat (interDymFoam is used). Right now, if you add additional PISO loops or Nonorthogonal corrections, the abstol is taken from the last iteration. I want to change this that it takes always the value of corrPISO == 1 (for 0 there is no pressure equation) and NonOrthogonalCorr == 0. In order to do this, I thought to add an object in pimpleControlI.H: Code:
inline bool Foam::pimpleControl::firstPISONOC() const { return ((corrPISO_ == 1) && (corrNonOrtho_ == 0)); } Code:
residualControl_[fieldI].initialabstol Code:
public: struct fieldData { wordRe name; scalar absTol; scalar relTol; scalar initialResidual; }; Thanks for the support. Regards, Daniel |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 02:20 |
Unstabil Simulation with chtMultiRegionFoam | mbay101 | OpenFOAM Running, Solving & CFD | 13 | December 28, 2013 13:12 |
pimpleFoam: turbulence->correct(); is not executed when using residualControl | hfs | OpenFOAM Running, Solving & CFD | 3 | October 29, 2013 08:35 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 06:37 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 05:24 |