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/)
-   -   "nan" problem (https://www.cfd-online.com/Forums/openfoam-solving/172542-nan-problem.html)

foamiste June 10, 2016 05:53

1 Attachment(s)
This is my gemoetry, I am setting all boundaries as walls except the liquid level whitch is defined as symmetryPlane. For 0:
p_rgh: fixedFluxPressure ($internaField)
U: fixedValue ($internalField)
T: fixedValue ($internalField)
alpha: zerogradient

rdbisme June 13, 2016 11:34

Quote:

Originally Posted by foamiste (Post 604263)
This is my gemoetry, I am setting all boundaries as walls except the liquid level whitch is defined as symmetryPlane. For 0:
p_rgh: fixedFluxPressure ($internaField)
U: fixedValue ($internalField)
T: fixedValue ($internalField)
alpha: zerogradient

Ok. I'm sorry I'm out of easy ideas since I'm not very expert about MRF and stirred vessels. Hope someone could help more! :(

foadsf January 25, 2018 08:20

similar probelem
 
2 Attachment(s)
hello guys, I have also asked this question on reddit and openfoam google group

I kinda have a same issue as the OP so I post here too.
I'm following this tutorial for compressible fluid. except my geometry is little bit different:
https://www.cfd-online.com/Forums/at...1&d=1516886274

But when I try to solve it with sonicFoam I get the error below:

Code:


Time = 0.002

Courant Number mean: 62.7429 max: 120
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
smoothSolver:  Solving for Ux, Initial residual = 0.738285, Final residual = 0.357953, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = 0.0131426, Final residual = 4.93472e-018, No Iterations 1
smoothSolver:  Solving for e, Initial residual = 1, Final residual = nan, No Iterations 1000
smoothSolver:  Solving for p, Initial residual = nan, Final residual = nan, No Iterations 1000
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = nan, global = nan, cumulative = nan
PIMPLE: iteration 2
smoothSolver:  Solving for Ux, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver:  Solving for e, Initial residual = nan, Final residual = nan, No Iterations 1000


--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 0 the word 'nan'

file: C:/Users/.../20180124/system/data.solverPerformance.e at line 0.

    From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
    in file lnInclude/Scalar.C at line 93.

FOAM exiting

I would appreciate if you could help me know what is the problem and how I can solve it

rdbisme January 25, 2018 09:43

Quote:

Originally Posted by foadsf (Post 679352)
hello guys, I have also asked this question on reddit and openfoam google group

I kinda have a same issue as the OP so I post here too.
I'm following this tutorial for compressible fluid. except my geometry is little bit different:
https://www.cfd-online.com/Forums/at...1&d=1516886274

But when I try to solve it with sonicFoam I get the error below:

Code:


Time = 0.002

Courant Number mean: 62.7429 max: 120
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
PIMPLE: iteration 1
smoothSolver:  Solving for Ux, Initial residual = 0.738285, Final residual = 0.357953, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = 0.0131426, Final residual = 4.93472e-018, No Iterations 1
smoothSolver:  Solving for e, Initial residual = 1, Final residual = nan, No Iterations 1000
smoothSolver:  Solving for p, Initial residual = nan, Final residual = nan, No Iterations 1000
diagonal:  Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = nan, global = nan, cumulative = nan
PIMPLE: iteration 2
smoothSolver:  Solving for Ux, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver:  Solving for Uy, Initial residual = nan, Final residual = nan, No Iterations 1000
smoothSolver:  Solving for e, Initial residual = nan, Final residual = nan, No Iterations 1000


--> FOAM FATAL IO ERROR:
wrong token type - expected Scalar, found on line 0 the word 'nan'

file: C:/Users/.../20180124/system/data.solverPerformance.e at line 0.

    From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::doubleScalar&)
    in file lnInclude/Scalar.C at line 93.

FOAM exiting

I would appreciate if you could help me know what is the problem and how I can solve it

I'm sorry, I'm not very familiar with the sonicFoam solver. When NaN are generated it generally it means that something is going deeply wrong.

What I did not get at the beginning is that both of you are using a Windows version of OpenFOAM. Did you try on Linux? Or maybe use a docker image.

foadsf January 25, 2018 12:17

I solved the issue and you may see more info here in the OpenFOAM google group. There was actually nothing wrong with my code/model. it was just the model not converging due to the a very high input velocity. At least this was my issue. I'm not sure about the OP though!

rdbisme January 25, 2018 12:28

Quote:

Originally Posted by foadsf (Post 679402)
I solved the issue and you may see more info here in the OpenFOAM google group. There was actually nothing wrong with my code/model. it was just the model not converging due to the a very high input velocity. At least this was my issue. I'm not sure about the OP though!

Always check BCs... :)

foadsf January 25, 2018 12:29

Quote:

Originally Posted by tidusuper91 (Post 679406)
Always check BCs... :)

sure. novice here :)


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