CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   a laminar case requests k! (https://www.cfd-online.com/Forums/openfoam/122310-laminar-case-requests-k.html)

immortality August 16, 2013 12:10

a laminar case requests k!
 
I have used :
Code:

simulationType  laminar;//RASModel;//
but rhoSimpleFoam solver complains about k! why?
Code:

[2] --> FOAM FATAL IO ERROR:
[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] cannot find file
[0]
[0] file: /home/ehsan/Desktop/HeatExchanger/processor0/0/k at line [1]
0.
[0]
[0]    From function regIOobject::readStream()
[0]    in file db/regIOobject/regIOobjectRead.C at line 73.
[0]
FOAM parallel run exiting
[0]
[1]
[1] --> FOAM FATAL IO ERROR:
[1] cannot find file
[1]
[1] file: /home/ehsan/Desktop/HeatExchanger/processor1/0/k at line 0--> Upgrading k to employ run-time selectable wall functions
[3]
.
[1]
[1]    From function regIOobject::readStream()
[1]    in file db/regIOobject/regIOobjectRead.C at line 73.
[1]
FOAM parallel run exiting
[3]
[3] --> FOAM FATAL IO ERROR:
[3] cannot find file
[3]
[1]
[3] file: /home/ehsan/Desktop/HeatExchanger/processor3/0/k at line 0.
[3]
[3]    From function regIOobject::readStream()
[3]    in file db/regIOobject/regIOobjectRead.C at line 73.
[3]
FOAM parallel run exiting
[3]
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
[2] cannot find file
[2]
[2] file: /home/ehsan/Desktop/HeatExchanger/processor2/0/k at line 0.
[2]
[2]    From function regIOobject::readStream()
[2]    in file db/regIOobject/regIOobjectRead.C at line 73.
[2]
FOAM parallel run exiting
[2]
--------------------------------------------------------------------------
mpirun has exited due to process rank 3 with PID 20838 on
node Ehsan-com exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
[Ehsan-com:20829] 3 more processes have sent help message help-mpi-api.txt / mpi-abort
[Ehsan-com:20829] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
Killing PID 20828
 PyFoam WARNING on line 232 of file /usr/local/lib/python2.7/dist-packages/PyFoam/Execution/FoamThread.py : Process 20828 was already dead
Getting LinuxMem: [Errno 2] No such file or directory: '/proc/20828/status'


wyldckat August 16, 2013 12:34

Hi Ehsan,

Don't you know that turbulence settings are usually defined in OpenFOAM on two files? ;)
Namely "constant/RASProperties" (or "constant/LESProperties") and "constant/turbulenceProperties"?

Best regards,
Bruno

wyldckat August 16, 2013 12:50

Since Ehsan sent me the case, the problems are:
  • The file "constant/RASProperties" did not use this setting:
    Code:

    RASModel        laminar;
    I know, it might seem weird, but the problem is that some solvers directly access the file "constant/RASProperties" and ignore "constant/turbulenceProperties", while others need this latter file.
  • After that, the problem was:
    Code:

    --> FOAM FATAL IO ERROR:
    keyword laplacian(alphaEff,h) is undefined in dictionary "/home/user/Desktop/Misc/HeatExchanger/system/fvSchemes.laplacianSchemes"

    Which is just a matter of editing the file "system/fvSchemes" and adding the entry "laplacian(alphaEff,h)" to "laplacianSchemes".


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