petebachant / waveFlapper-OpenFOAM

OpenFOAM case files for simulating a flap-style wavemaker.
Creative Commons Zero v1.0 Universal
5 stars 5 forks source link

running issue #4

Closed sdzahedi closed 4 years ago

sdzahedi commented 8 years ago

Hello Pete, I am facing this issue when I run the case. I use the command ./Allrun but after few seconds It exits and there is no result or time steps in the folder. Many thanks and I appreciate your consideration and advice...

sz@sz-Inspiron-560:~/Desktop/waveFlapper-OpenFOAM-master$ ./Allrun Running blockMesh on /home/sz/Desktop/waveFlapper-OpenFOAM-master Running snappyHexMesh on /home/sz/Desktop/waveFlapper-OpenFOAM-master Running setFields on /home/sz/Desktop/waveFlapper-OpenFOAM-master Running interDyMFoam on /home/sz/Desktop/waveFlapper-OpenFOAM-master sz@sz-Inspiron-560:~/Desktop/waveFlapper-OpenFOAM-master$

petebachant commented 8 years ago

Please post the end of log.interDyMFoam. I imagine the case is blowing up, like in #1. Also let me know what version of OpenFOAM you are running.

sdzahedi commented 8 years ago

--> FOAM FATAL IO ERROR: keyword div(((rho_nuEff)_dev2(T(grad(U))))) is undefined in dictionary "/home/sz/waveFlapper-OpenFOAM-master/system/fvSchemes.divSchemes"

file: /home/sz/waveFlapper-OpenFOAM-master/system/fvSchemes.divSchemes from line 30 to line 33.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 442.

FOAM exiting

sdzahedi commented 8 years ago

Hello Pete, I am using openfoam Version 3.0.1, released 15/12/15... parafoam 44. Thanks

petebachant commented 8 years ago

That error gives the clue on what to fix. For running with OpenFOAM 3 and above, in system/fvSchemes you will need to change the div scheme name

div(((rhonuEff)dev(T(grad(U)))))

to

div(((rhonuEff)dev2(T(grad(U)))))

Or you can leave both, which will allow running both 2.x and 3.x.

sdzahedi commented 8 years ago

I am getting the same error, after I have changed the div...

--> FOAM FATAL IO ERROR: keyword div(((rho_nuEff)_dev2(T(grad(U))))) is undefined in dictionary "/home/sz/waveFlapper-OpenFOAM-master/system/fvSchemes.divSchemes"

file: /home/sz/waveFlapper-OpenFOAM-master/system/fvSchemes.divSchemes from line 31 to line 37.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 442.

FOAM exiting

sdzahedi commented 8 years ago

this is what I have changed and added...

div(rhoPhi,U)  Gauss vanLeerV;
div(phi,alpha)  Gauss vanLeer;
div(phirb,alpha) Gauss vanLeer;
div(((rhonuEff)dev(T(grad(U)))));
div(((rhonuEff)dev2(T(grad(U)))));  
div((muEff*dev(T(grad(U))))) Gauss linear;
div((muEff*dev2(T(grad(U))))) Gauss linear;
petebachant commented 8 years ago

You need to specify the values for the keywords. Try:

div(rhoPhi,U)  Gauss vanLeerV;
div(phi,alpha)  Gauss vanLeer;
div(phirb,alpha) Gauss vanLeer;
div(((rhonuEff)dev2(T(grad(U))))) Gauss linear; // OpenFOAM 3.x
div((muEff*dev(T(grad(U))))) Gauss linear; // OpenFOAM 2.x
petebachant commented 4 years ago

Closing since this is now compatible with OpenFOAM 6 as of 16c9ea9.