|
[Sponsors] |
January 7, 2019, 03:30 |
Using rhoPimpleFoam efficiently
|
#1 |
Member
Join Date: Dec 2012
Posts: 33
Rep Power: 14 |
Hi everyone,
I'm looking to solve a problem using rhoPimpleFoam (OF 2.4) but it looks like the solution can be obtained a little more efficiently. The problem at hand is a 2D rectangular section with a fixed mass flow rate at the inflow and a fixed static pressure at the outlet. I put in a forcing term in the UEqn.H and off my solver goes. It takes 40000 (2000 time loops and 20 pimple corrector loops) iterations to get to a good enough solution. I would like to reduce this because the solution is steady-state and that many iterations doesn't sound right (This is only a test case and the actual problem will be 3D and unsteady). I'm using the laminar model with sensible enthalpy. Here's a snapshot of the thermo properties: Code:
thermoType { type hePsiThermo; mixture pureMixture; transport sutherland; thermo hConst; equationOfState perfectGas; specie specie; energy sensibleEnthalpy; } Here's the 0 folder with the boundary conditions (the variable values are non-dimensionalised, Cp, As, Ts, molWeight were changed to match the non-dimensionalisation): p: Code:
internalField uniform 10.26; //p = rho*T/gamma*M^2 boundaryField { inlet { type waveTransmissive; gamma 1.4; } outlet { type fixedValue; value uniform 10.26; } top { type cyclic; } bottom { type cyclic; } front { type empty; } back { type empty; } } Code:
internalField uniform (1 0 0); boundaryField { inlet { type flowRateInletVelocity; rho rho; rhoInlet 1; massFlowRate constant 0.2; } outlet { type waveTransmissive; gamma 1.4; } top { type cyclic; } bottom { type cyclic; } front { type empty; } back { type empty; } } Code:
internalField uniform 1; boundaryField { inlet { type fixedValue; value $internalField; } outlet { type waveTransmissive; gamma 1.4; } top { type cyclic; } bottom { type cyclic; } front { type empty; } back { type empty; } } Code:
PIMPLE { nOuterCorrectors 20; nCorrectors 2; nNonOrthogonalCorrectors 0; momentumPredictor yes; rhoMin rhoMin [ 1 -3 0 0 0 ] 0; rhoMax rhoMax [ 1 -3 0 0 0 ] 2; pRefCell 0; pRefValue 10.26; } Thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with efficiently exporting data | nick.l.thomas | CFX | 3 | November 28, 2018 17:52 |
How can I data from a surface monitor into excel most efficiently? | willisk15 | FLUENT | 0 | December 15, 2017 19:25 |
Is there a way to order nodes in a mesh to efficiently compute sparse matrices? | HectorRedal | Main CFD Forum | 12 | December 8, 2017 05:17 |