My simulation stops before last time step (endTime) rhoCentralFoam
Hi foamers,
I'm using rhoCentralFoam as solver in order to carry out a simulation of a discharge of air (air flowing through a small space). The simulation starts without problems but stops before the endTime. I don't understand why, because it is a transient simulation and it should run the time that I set. The only reason I can think is maybe occurs a complete discharge of air and the control volume does not have work fluid. What can I do? Thanks. |
Hi!
Include controlDict, log, error message, or something. Based on this description noone can help you. |
1 Attachment(s)
Sure simrego...
Thanks for your reply. Boundary conditions: p Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoUx, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoUy, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoE, Initial residual = 0, Final residual = 0, No Iterations 0 ExecutionTime = 19.7 s ClockTime = 34 s Mean and max Courant Numbers = 0.149261 0.407854 deltaT = 9.25e-08 Time = 0.00020091 diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoUx, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoUy, Initial residual = 0, Final residual = 0, No Iterations 0 diagonal: Solving for rhoE, Initial residual = 0, Final residual = 0, No Iterations 0 ExecutionTime = 19.72 s ClockTime = 34 s :~/OpenFOAM/OpenFOAM-v1912/proyectos/crevice/crevicesNeue$ Finally, the computational domain (top: inlet; bottom: outlet; and some walls with one side of symmetry) |
Hello did you notice that the number of iterations are zero. This happens normally if the initial condition of a fluid at rest is consistent with the applied boundary conditions.
Best Michael |
I'm not immediately sure why the simulation might stop (is there an error printed at all?), but zero iterations is not uncommon for a rhoCentralFoam case (when diagonal solvers are used -- you can check this by running e.g. the shockTube tutorial. There are some threads on this, e.g. https://www.cfd-online.com/Forums/op...cfoam-5-x.html) and is not necessarily a cause for alarm.
Caelan |
Hello,
I am facing the same issue although I noticed that the solution runs if you reduce the Courant number. In your controlDict, reduce the maxCo to 0.5 or 0.25 & then try. |
Interestingly I see no real error message. But your boundary conditions are weird.
1. Why do you set your temperature to 1K? Solving the energy equation that way is very troublesome. 2. Dont use fixedValue for p at the inlet and outlet, its very unstable. Use rather totalPressure at the inlet and fixedPressure at the outlet. 3. The stability limit of rhoCentralFoam is Co = 0.5. You should rather use Co = 0.3 or 0.4 with low order schemes or 0.1 and 0.2 for high order schemes. |
All times are GMT -4. The time now is 15:03. |