CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Error when using pisoFoam to simulate turbulent flow inner a pipe (https://www.cfd-online.com/Forums/main/251084-error-when-using-pisofoam-simulate-turbulent-flow-inner-pipe.html)

antoniovalos July 25, 2023 12:37

Error when using pisoFoam to simulate turbulent flow inner a pipe
 
I was trying to reproduce a turbulent flow inner a pipe following the tutorial below:
https://www.youtube.com/watch?v=IJLROB28nXE

I tried many times, executing each individual step, but I always get an error. I can't find where is my error.

This was the error outputs using different versions of OpenFOAM:





Using .org distribution version 8 [i believe this was the version used by the tutorial's author]
================================================== Start of error message=========================================== =======
--> FOAM FATAL IO ERROR:
keyword version is undefined in dictionary "/mnt/c/Users/Dell/Desktop/OpenFOAM/SIM_000/SIM/cavity/system/controlDict"

file: /mnt/c/Users/Dell/Desktop/OpenFOAM/SIM_000/SIM/cavity/system/controlDict from line 10 to line 13.

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

FOAM exiting
================================================== End of error message=========================================== =======





Using .org distribution version 10
================================================== Start of error message=========================================== =======
#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::GaussSeidelSmoother::smooth(Foam::word const&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::Field<double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, unsigned char, int) at ??:?
#4 Foam::GaussSeidelSmoother::smooth(Foam::Field<doub le>&, Foam::Field<double> const&, unsigned char, int) const at ??:?
#5 Foam::smoothSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) at ??:?
#7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/OpenFOAM/dotorg/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pisoFoam"
#8 Foam::fvMatrix<double>::solve() in "/OpenFOAM/dotorg/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pisoFoam"
#9 Foam::SolverPerformance<double> Foam::solve<double>(Foam::tmp<Foam::fvMatrix<doubl e> > const&) at ??:?
#10 Foam::RASModels::kEpsilon<Foam::incompressibleMome ntumTransportModel>::correct() at ??:?
#11 ? in "/OpenFOAM/dotorg/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pisoFoam"
#12 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#13 ? in "/OpenFOAM/dotorg/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pisoFoam"
Floating point exception
================================================== End of error message=========================================== =======





Using .com distribution version v2212
================================================== Start of error message=========================================== =======
--> FOAM FATAL IO ERROR: (openfoam-2212)
Unexpected '}' while reading dictionary entry

file: system/controlDict at line 50.

From static bool Foam::entry::New(Foam::dictionary&, Foam::Istream&, Foam::entry::inputMode, int)
in file db/dictionary/entry/entryIO.C at line 156.

FOAM exiting
================================================== End of error message=========================================== =======





Using .org distribution dev version
================================================== Start of error message=========================================== =======
--> FOAM FATAL IO ERROR:
keyword PIMPLE is undefined in dictionary "/mnt/c/Users/Dell/Desktop/OpenFOAM/SIM_000/SIM/cavity/system/fvSolution"

file: /mnt/c/Users/Dell/Desktop/OpenFOAM/SIM_000/SIM/cavity/system/fvSolution from line 21 to line 48.

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

FOAM exiting
================================================== End of error message=========================================== =======

LuckyTran July 25, 2023 20:02

None of these errors are the same and hardly any of them occur at the same location. You don't have an (one) error, you have a ton of them.

1. You don't have a valid header in your controlDict
2. You had a floating point error in the solver
3. A wild bracket appeared
4. Your fvSolution is missing a dict for PIMPLE which would not occur if you ran pisoFOAM. Which means either you did not actually see this error or you are not using pisoFOAM.


I recommend you to follow tobi's tutorials or at least take a more methodical approach to your learning. And for your own benefit, stick to one version. I assure you there are no meaningful changes in OpenFOAM between versions that would prevent you from doing a pipe flow problem even if you go all the way back to OpenFOAM 1.x.x

antoniovalos July 26, 2023 11:09

Ignore the other versions error, considering only this error using .org distribution version 10 (the one I am really using)
================================================== Start of error message=========================================== =======
#0 Foam::error:printStack(Foam::Ostream&) at ??:?
#1 Foam::sigFpe::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::GaussSeidelSmoother::smooth(Foam::word const&, Foam::Field<double>&, Foam::lduMatrix const&, Foam::Field<double> const&, Foam::FieldField<Foam::Field, double> const&, Foam::UPtrList<Foam::lduInterfaceField const> const&, unsigned char, int) at ??:?
#4 Foam::GaussSeidelSmoother::smooth(Foam::Field<doub le>&, Foam::Field<double> const&, unsigned char, int) const at ??:?
#5 Foam::smoothSolver::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const at ??:?
#6 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) at ??:?
#7 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/OpenFOAM/dotorg/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pisoFoam"
#8 Foam::fvMatrix<double>::solve() in "/OpenFOAM/dotorg/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pisoFoam"
#9 Foam::SolverPerformance<double> Foam::solve<double>(Foam::tmp<Foam::fvMatrix<doubl e> > const&) at ??:?
#10 Foam::RASModels::kEpsilon<Foam::incompressibleMome ntumTransportModel>::correct() at ??:?
#11 ? in "/OpenFOAM/dotorg/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pisoFoam"
#12 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#13 ? in "/OpenFOAM/dotorg/OpenFOAM-10/platforms/linux64GccDPInt32Opt/bin/pisoFoam"
Floating point exception
================================================== End of error message=========================================== =======

I don't know where to start to diagnose where is my error. Which parameters are missing in my model, and which ones are parametrized.

The error message does not mention any of the model parameters files.


All times are GMT -4. The time now is 14:20.