|
[Sponsors] |
August 13, 2015, 12:57 |
interFoam {nOuterCorrections}
|
#1 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Hi FOAMERS;
I am using OpenFOAM 2.3.x and using interFOAM solver. Lately I found an interesting thing for which i am unable to find a solution and would appreciate if anyone can pass me a hint. I am using a static drop case in 2D, where an air bubble is present within a square domain. (fig1). I have the following boundary conditions for U, p_rgh and alpha. U {all sides of the wall fixedValue (0 0 0)} p_rgh {all sides with zeroGradient} and alpha {all sides with zeroGradient}. So, when i use the nOuterCorrector = 1{i.e. solving for PISO} i have a range bound computation for alpha between 0 and 1 and apart from spurious currents everything seems to be fine. But incase if i increase the nOuterCorrections > 1 {solving for PISO and PIMPLE}, I get alpha values that are above 1 and below 0 which seems quite interesting because if something was wrong it shall not work in the PISO correction too. Going back to the damBreak case i tried the same and it works over there. So, I am a bit clueless now where is the error in computation coming from. Any ideas please? Thanks and best wishes; Saideep |
|
August 14, 2015, 12:01 |
|
#2 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Hi Guys;
I am to revoke this thread and sorry for that!! Since a few days i have had a peculiar problem and would like to know if you can help me out. I am working with OF 2.3.x and using the interFoam solver to study and attempt to reduce the spurious currents considering a simple static drop problem. I use the following bc's: U {fixedValue (0 0 0)} on all faces of the domain; p_rgh {zeroGradient} on all faces of the domain; alpha.air {zeroGradient} also on all faces of the domain. So, basically there is nothing like an inflow/ outflow but only simple relaxation of the bubble. I would like to increase the accuracy of my model by having a value of 3 for "nOuterCorrections". The alpha value being computed is as follows: PIMPLE: iteration 1 smoothSolver: Solving for alpha.water, Initial residual = 0.0435804, Final residual = 1.49236e-10, No Iterations 4 Phase-1 volume fraction = 0.0399991 Min(alpha1) = -62.1788 Max(alpha1) = 162.964 MULES: Correcting alpha.water MULES: Correcting alpha.water Phase-1 volume fraction = 0.0399991 Min(alpha1) = -59.3845 Max(alpha1) = 147.927 DICPCG: Solving for p_rgh, Initial residual = 0.284426, Final residual = 0.0127196, No Iterations 3 time step continuity errors : sum local = 0.000808737, global = -1.64813e-06, cumulative = -1.70439 DICPCG: Solving for p_rgh, Initial residual = 0.0379612, Final residual = 0.0018768, No Iterations 17 time step continuity errors : sum local = 0.000222015, global = -3.05104e-06, cumulative = -1.70439 But if i use only 1 outercorrection it works perfectly. Also it works good if i reduce the surface tension very low {no idea why this happens, it is after all a constant value}. If this is the case then the damBreak case also shall not work but that works again. Using all same data from the damBreak and just changing my blockMeshDict and setFieldsDict data will compute wrong alpha as in red. Could you please let me know where is the error coming from? Thanks and best wishes; Saideep [ Moderator note: post moved from http://www.cfd-online.com/Forums/ope...interfoam.html ] Last edited by wyldckat; August 20, 2015 at 15:32. Reason: see "Moderator note:" |
|
August 20, 2015, 15:38 |
|
#3 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Saideep,
Since you asked me to look into this via PM, here's what I can figure out from your posts: Quote:
Beyond that, you didn't provide the complete configuration for the "fvSolution" file, which would possibly give more important details as to what might be wrong. In addition, this reminds me of two other cases:
Best regards, Bruno
__________________
|
||
August 21, 2015, 14:59 |
|
#4 |
Senior Member
Saideep
Join Date: Apr 2015
Location: INDIA
Posts: 203
Rep Power: 12 |
Thanks Bruno;
I will have a look at that!! Just a question. Yes, you mention the parasite currents get worse but why? In my view, i am solving a steady state case. Is it because i am advancing over time with larger time steps? Or is there any other reason? However i can think and also see that effect with the parasitic currents but still alpha shall be bounded right. My fvSolution data is attached below: Code:
solvers { "alpha.air.*" { nAlphaCorr 2; nAlphaSubCycles 1; cAlpha 1; CSK 0.5; CPC 0.01; MULESCorr yes; nLimiterIter 3; solver smoothSolver; smoother symGaussSeidel; tolerance 1e-8; relTol 0; } pcorr { solver PCG; preconditioner DIC; tolerance 1e-5; relTol 0; } p_rgh { solver PCG; preconditioner DIC; tolerance 1e-07; relTol 0.05; } p_rghFinal { $p_rgh; relTol 0; } U { solver smoothSolver; smoother symGaussSeidel; tolerance 1e-06; relTol 0; } } PIMPLE { momentumPredictor no; nOuterCorrectors 3; nCorrectors 3; nNonOrthogonalCorrectors 0; pRefCell 0; pRefValue 0; residualControl { U { tolerance 1e-5; relTol 0; } p { tolerance 5e-4; relTol 0; } } } relaxationFactors { fields { p_rgh 0.3; U 0.3; } equations { ".*" 1; } } Thanks a lot Bruno; Saideep Last edited by wyldckat; August 21, 2015 at 15:37. Reason: Added [CODE][/CODE] markers |
|
August 21, 2015, 17:28 |
|
#5 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Saideep,
Quote:
Quote:
Code:
find $FOAM_TUTORIALS -name "fvSolution" -type f | xargs grep "Final" Code:
relaxationFactors { fields { p 0.3; } equations { "(U|k|omega)" 0.7; "(U|k|omega)Final" 1.0; } } As for steady-state simulation: Wait... seriously? Why did you not mentioned that in your previous posts???? If you want steady-state multiphase flow, you should be using LTSinterFoam! After re-reading your 2 original posts again... I have my doubts you can do this with any version of interFoam. I suggest you study the thread I mentioned about parasitic currents and also read this thread: http://www.cfd-online.com/Forums/ope...lat-plate.html Best regards, Bruno
__________________
|
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
InterFoam stops after deltaT goes to 1e14 | francesco_b | OpenFOAM Running, Solving & CFD | 9 | July 25, 2020 07:36 |
interFoam vs. simpleFoam channel flow comparison | DanM | OpenFOAM Running, Solving & CFD | 12 | January 31, 2020 16:26 |
interFoam in parallel | gooya_kabir | OpenFOAM Running, Solving & CFD | 0 | December 9, 2013 06:09 |
Problem of InterFoam with LES SpalartAllmarasIDDES | keepfit | OpenFOAM | 3 | August 29, 2013 12:21 |
Open Channel Flow using InterFoam type solver | sxhdhi | OpenFOAM Running, Solving & CFD | 3 | May 5, 2009 22:58 |