CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problem using large writeInterval values in Modified interPhaseChangeFoam (https://www.cfd-online.com/Forums/openfoam-solving/141581-problem-using-large-writeinterval-values-modified-interphasechangefoam.html)

vasava September 11, 2014 03:29

Problem using large writeInterval values in Modified interPhaseChangeFoam
 
I use openFoam 2.3.0. I was exploring possibilities of simulating evaporation-condensation phenomena with openFoam and I came across instructions by Martin Andersen (Link). It is of notice that these instructions are for OF2.0.x.

I modified and compiled interPhaseChangeFoam following these instructions without any problems.

For test example my deltaT is 1e-8. The problem is when I run the test case using a large
writeInterval value e.g. 0.0001 or 0.001 the case diverges with large Courant number error. But when I use a smaller value e.g. 1e-7 or 1e-8 it runs without any problem. This is bit annoying a I have to keep an eye on the hard disk space all the time and delete the additional time steps manually.

Attached are solver from Martin Andersen (OF 2.0.x, myInterPhaseChangeFoam), the test case and OF2.3.0 solver (evapCondFoam).

Any comments??

vasava September 11, 2014 06:51

I checked once again. While compiling I get three warnings:
Code:

/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H: In function ‘int main(int, char**)’:
/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H:17:6: warning: unused variable ‘alphaApplyPrevCorr’ [-Wunused-variable]
/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H:23:8: warning: unused variable ‘icAlpha’ [-Wunused-variable]
/opt/openfoam230/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]

Perhaps the problem has something to do with these errors. Any comments on that?

ARUN K RAJ January 27, 2015 00:24

Helo
 
I am facing a similar situation
/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H: In function ‘int main(int, char**)’:
/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H:17:6: warning: unused variable ‘alphaApplyPrevCorr’ [-Wunused-variable]
/opt/openfoam230/src/finiteVolume/lnInclude/alphaControls.H:23:8: warning: unused variable ‘icAlpha’ [-Wunused-variable]
/opt/openfoam230/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]


the same errors i do get while trying to compile the solver. Have u solved this issue?

vasava January 27, 2015 02:43

No. I could run the test case without any additional errors but I am not sure if the results are reliable. I havent tested or verified the solver or the solutions since then.

alexeym January 27, 2015 03:02

Hi,

As interPhaseChangeFoam uses PIMPLE algorithm, can you post your PIMPLE dictionary from fvSolution file? What convergence criterion do you utilize within time step?


All times are GMT -4. The time now is 05:05.