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/)
-   -   porousSimpleFoam - keyword wallDist undefined (https://www.cfd-online.com/Forums/openfoam-solving/172177-poroussimplefoam-keyword-walldist-undefined.html)

anon_j May 25, 2016 09:20

porousSimpleFoam - keyword wallDist undefined
 
Hi everyone,

I am working on a model with a porous net, which should be simulated using the porousSimpleFoam solver.

When trying to run it, simulation stops shortly after having started and displays following error message:

Code:

Selecting incompressible transport model Newtonian
Selecting turbulence model type RAS
Selecting RAS turbulence model kOmegaSST
[3]
[3]
[3] --> FOAM FATAL IO ERROR:
[3] keyword wallDist is undefined in dictionary "/home/nicolas/OpenFOAM/nicolas-3.0.1/run/sim_multipor_mapped_test1/processor3/system/fvSchemes"
[3]
[3] file: /home/nicolas/OpenFOAM/nicolas-3.0.1/run/sim_multipor_mapped_test1/processor3/system/fvSchemes at line 0.
[3]
[3]    From function dictionary::subDict(const word& keyword) const
[3]    in file db/dictionary/dictionary.C at line 648.
[3]
FOAM parallel run exiting
[3]

I do not see where in fvSchemes wallDist is needed... Does anyone have experience using this solver?

Thanks in advance

tomf May 27, 2016 04:27

Hi,

This needs to be added to the end of fvSchemes.

Code:

wallDist
{
    method meshWave;
}

Next time if you are in doubt, look at one of the tutorials:
Code:

grep -r wallDist $FOAM_TUTORIALS
to find examples.

Regards,
Tom

anon_j May 27, 2016 09:46

It works, thanks a lot!

I was adapting a case made with v2.3.0 to work in v3.0.1, that's probably why this little detail slipped...

student666 December 24, 2016 21:19

Hi,

why this keyword now is necessary?

Thanks

tomf January 4, 2017 11:04

I am not 100% sure, but I believe the change was due to the method not being hardcoded anymore in the most recent versions of OpenFOAM. These kind of changes happen between major version changes and are usually described in release notes.

neginmondegari October 31, 2019 06:42

Create time

Create mesh for time = 0


PIMPLE: No convergence criteria found


PIMPLE: Operating solver in PISO mode

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 RAS
Selecting RAS turbulence model kOmegaSST


--> FOAM FATAL IO ERROR:
keyword wallDist is undefined in dictionary "/home/negin/Desktop/article/article/system/fvSchemes"

file: /home/negin/Desktop/article/article/system/fvSchemes from line 20 to line 55.

From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const
in file db/dictionary/dictionary.C at line 701.

FOAM exiting
what does walldist mean and the best value for walldist is what?


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