|
[Sponsors] |
rho residual always zero, why? sonicFoam, OF 5.x |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 23, 2018, 12:08 |
rho residual always zero, why? sonicFoam, OF 5.x
|
#1 |
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8 |
Hello,
As the title clearly says, when I run my case, I noticed that the density residual is always zero irrespective of the iterations, from start till end. That clearly means density is not changing. I find that weird, especially when this is compressible flow and am expecting shock(supersonic) which is seen in paraview. Code:
PIMPLE: iteration 10 DILUPBiCG: Solving for Ux, Initial residual = 1.87677e-14, Final residual = 1.87677e-14, No Iterations 0 DILUPBiCG: Solving for Uy, Initial residual = 5.61674e-14, Final residual = 5.61674e-14, No Iterations 0 DILUPBiCG: Solving for Uz, Initial residual = 2.02128e-06, Final residual = 1.9697e-10, No Iterations 1 DILUPBiCG: Solving for e, Initial residual = 5.28336e-10, Final residual = 5.28336e-10, No Iterations 0 DILUPBiCG: Solving for p, Initial residual = 6.99711e-15, Final residual = 6.99711e-15, No Iterations 0 DILUPBiCG: Solving for p, Initial residual = 6.99711e-15, Final residual = 6.99711e-15, No Iterations 0 DILUPBiCG: Solving for p, Initial residual = 6.99711e-15, Final residual = 6.99711e-15, No Iterations 0 diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 time step continuity errors : sum local = 1.3329e-13, global = 9.97659e-14, cumulative = 0.00178268 DILUPBiCG: Solving for p, Initial residual = 6.99712e-15, Final residual = 6.99712e-15, No Iterations 0 DILUPBiCG: Solving for p, Initial residual = 6.99712e-15, Final residual = 6.99712e-15, No Iterations 0 DILUPBiCG: Solving for p, Initial residual = 6.99712e-15, Final residual = 6.99712e-15, No Iterations 0 diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 time step continuity errors : sum local = 1.3329e-13, global = 9.97659e-14, cumulative = 0.00178268 DILUPBiCG: Solving for p, Initial residual = 6.99712e-15, Final residual = 6.99712e-15, No Iterations 0 DILUPBiCG: Solving for p, Initial residual = 6.99712e-15, Final residual = 6.99712e-15, No Iterations 0 DILUPBiCG: Solving for p, Initial residual = 6.99712e-15, Final residual = 6.99712e-15, No Iterations 0 diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0 time step continuity errors : sum local = 1.3329e-13, global = 9.97659e-14, cumulative = 0.00178268 DILUPBiCG: Solving for epsilon, Initial residual = 9.92238e-05, Final residual = 1.60427e-11, No Iterations 2 DILUPBiCG: Solving for k, Initial residual = 7.98564e-05, Final residual = 3.05053e-11, No Iterations 2 ExecutionTime = 87132.1 s ClockTime = 91714 s |
|
March 26, 2018, 02:35 |
|
#2 |
Senior Member
|
Hi,
Did you check your results to actually see if the density is changing? As you are using the diagonal solver, the residual will be zero, since you have only terms on the diagonal of the matrix that you are solving for. So all cells are uncoupled which means you just solve the equation of state within each cell. Therefore there you just solve the simple ax=b within each cell. Hope this helps, Tom |
|
March 26, 2018, 10:01 |
|
#3 | ||
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8 |
Quote:
Quote:
I came across this thread here: How to get density-field for compressible flow? But it seems to be tool old. I am using OF 5.x |
|||
March 26, 2018, 10:40 |
|
#4 |
Senior Member
|
Hi,
Not tested, but this may work: Code:
writeObjects1 { type writeObjects; libs ("libutilityFunctionObjects.so"); objects (rho); writeOption autoWrite; } Source code guide Regards, Tom |
|
March 26, 2018, 10:55 |
|
#5 | |
Senior Member
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8 |
Quote:
I was actually looking up any post-processing utility but didn't find any so far. Thanks a lot. |
||
Tags |
density, openfoam 5.x, residual, rho, sonicfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Segmentation fault when using reactingFOAM for Fluids | Tommy Floessner | OpenFOAM Running, Solving & CFD | 4 | April 22, 2018 12:30 |
chtMultiRegionSimpleFoam turbulent case | Aditya Patil | OpenFOAM Running, Solving & CFD | 6 | April 24, 2017 22:13 |
simpleFoam error - "Floating point exception" | mbcx4jc2 | OpenFOAM Running, Solving & CFD | 12 | August 4, 2015 02:20 |
calculation stops after few time steps | sivakumar | OpenFOAM Running, Solving & CFD | 7 | March 17, 2013 06:37 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 05:24 |