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

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

interFoam Error with multiphase flow

Post by kix »

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 111 times
thschrader
Veteran
Posts: 3122
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: interFoam Error with multiphase flow

Post by thschrader »

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
Veteran
Posts: 3122
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: interFoam Error with multiphase flow

Post by thschrader »

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

Post by kix »

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: 805
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: interFoam Error with multiphase flow

Post by oliveroxtoby »

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.
Please provide all the information requested in this post before reporting problems with CfdOF.
ReneSci
Posts: 23
Joined: Thu Aug 18, 2022 4:30 pm

Re: interFoam Error with multiphase flow

Post by ReneSci »

Thanks for the valuable info. However, cfdOF still seems to write "backward" instead of "Euler"
Is this by purpose ?
-------------------
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


ddtSchemes
{
default backward;
}

------------------------------------------------------------------------


Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.2.29177 +426 (Git)
Build type: Release
Branch: (HEAD detached from 0.20.2)
Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: Danish/Denmark (da_DK)
Installed mods: 
  * A2plus 0.4.60k
  * ArchTextures
  * Assembly3 0.11.4
  * Assembly4 0.12.7
  * CfdOF 1.21.8
  * Defeaturing 1.2.0
  * Dracula 0.0.4
  * ExtremeProDark 2.7.8
  * IconThemes
  * InventorLoader 1.3.0
  * lattice2 1.0.0
  * Manipulator 1.5.0
  * MeshRemodel 1.8919.0
  * parts_library
  * Plot 2022.4.17
  * QuickMeasure 2022.10.28
  * sheetmetal 0.2.63
  * workfeature
User avatar
oliveroxtoby
Posts: 805
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: interFoam Error with multiphase flow

Post by oliveroxtoby »

ReneSci wrote: Tue Apr 18, 2023 11:29 am Thanks for the valuable info. However, cfdOF still seems to write "backward" instead of "Euler"
Is this by purpose ?
No. A mistake when adding DES/LES schemes. Should be fixed now.
Post Reply