interFoam Error with multiphase flow

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

kix
Posts: 2
Joined: Sat Dec 22, 2018 8:38 am

interFoam Error with multiphase flow

Postby kix » Sat Dec 22, 2018 3:11 pm

Hi,

I tried some example in cfdof workbench but it has error with multiphase (air-water) flow model.
I made the model "filling of tank" simililar to https://forum.freecadweb.org/viewtopic. ... 47#p194045
The model is attached.
  • blueCFD-core: installed via freeCAD
  • The calc. conditions are set in cfdof workbench only. I don't edit the openFoam files directly.
  • Mesh/walls seems no problem since the solver runs in single phase flow.
  • Boundary conditions: Inlet= velocity, Outlet= pressure
Can anyone tell me how to fix?

Happy holidays!

log.interFoam:

Code: Select all

Create time

Create mesh for time = 0


PIMPLE: no residual control data found. Calculations will employ 3 corrector loops

Reading field p_rgh

Reading field U

Reading/calculating face flux field phi

Reading transportProperties

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Selecting laminar stress model Stokes

Reading g

Reading hRef
Calculating field g.h

No MRF models present

No finite volume options present

GAMG:  Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG:  Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0
GAMG:  Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = 0, global = 0, cumulative = 0
Courant Number mean: 0 max: 0

Starting time loop

Courant Number mean: 0 max: 0
Interface Courant Number mean: 0 max: 0
deltaT = 0.0011904762
Time = 0.00119048

PIMPLE: iteration 1


--> FOAM FATAL ERROR: 
Only Euler and CrankNicolson ddt schemes are supported

    From function int main(int, char**)
    in file ../VoF/alphaEqn.H at line 49.

FOAM exiting

Code: Select all

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15449 (Git)
Build type: Release
Branch: master
Hash: 47a38eceb395887d5cce220ff882f525ca06c4b7
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Attachments
testCFD2.FCStd
(26.12 KiB) Downloaded 18 times
thschrader
Posts: 1382
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: interFoam Error with multiphase flow

Postby thschrader » Sun Dec 23, 2018 12:11 am

same issue here
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15399 (Git)
Build type: Release
Branch: master
Hash: 9683abfc36c3e9e94b9175428ec9491b869a6b97
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Germany (de_DE)
thschrader
Posts: 1382
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: interFoam Error with multiphase flow

Postby thschrader » Sun Dec 23, 2018 8:29 am

There is an issue when writing the case.
fvSchemes-dict, line 20 ddtSchemes: default should be Euler.
@kix: after writing the case, edit fvSchemes dict. Solver runs.
kix
Posts: 2
Joined: Sat Dec 22, 2018 8:38 am

Re: interFoam Error with multiphase flow

Postby kix » Sun Dec 23, 2018 9:15 am

Hi thschrader,

Thank you for the quick response!
I also confirmed the solver runs with the modification :D
I should learn more about openfoam...
User avatar
oliveroxtoby
Posts: 233
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: interFoam Error with multiphase flow

Postby oliveroxtoby » Sun Dec 23, 2018 11:18 am

kix wrote:
Sat Dec 22, 2018 3:11 pm
Hi,

I tried some example in cfdof workbench but it has error with multiphase (air-water) flow model.
I made the model "filling of tank" simililar to https://forum.freecadweb.org/viewtopic. ... 47#p194045
The model is attached.
  • blueCFD-core: installed via freeCAD
  • The calc. conditions are set in cfdof workbench only. I don't edit the openFoam files directly.
  • Mesh/walls seems no problem since the solver runs in single phase flow.
  • Boundary conditions: Inlet= velocity, Outlet= pressure
Can anyone tell me how to fix?
Sorry about that - fixed the bug. Please update your workbench.