Boundary Conditions in rhoSimplecFoam
1 Attachment(s)
Hello friends,
I am trying to make a turbulent flow simulation with using rhoSimplecFoam ver. OpenFOAM-2.1.0. When I run my case after 12 iteration I get an error message. After spending lots of time and many attempts I decided to open a tread in forum. Could someone help me where is the mistake in my boundary conditions? If someone corrects my BCs, that tread can be an example for other foamers. Inlet P : totalPressure U : pressureDirectedInletVelocity T : fixedValue k : fixedValue mut : fixedValue epsilon : compressible::turbulentMixingLengthDissipationRate Inlet alphat : fixedValue Outlet P : fixedValue U : zeroGradient T : fixedValue k :zeroGradient mut : zeroGradient epsilon : fixedValue alphat : fixedValue FixedWalls P : zeroGradient U : fixedValue (0 0 0) T : zeroGradient k : compressible::kqRWallFunction mut : mutkWallFunction epsilon : compressible::epsilonWallFunction alphat : alphatWallFunction Left cyclic Right cyclic I do not know exact outlet pressure. But I can make a good guess for it. My velocities are low and at the outlet they must be slower than the inlet. I can guess it from the formula of total pressure. Thanks in advance! Regards Gökhan |
Hi Gökha,
I don't if I could help but what kind of error did you get? Pierre. |
Hi Pierre,
I played with the relaxation factors and now I am able to run the simulation but results are not like what I expected. Thats why I changed boundaries again like the following lines; for the velocity -- used fixedValue at the inlet, zeroGradient at the outlet. for the pressure -- used zeroGradient at inlet, total pressure at the outlet. With lower relaxation values. It works fine and convergence is fast. But I have a small doubt regarding rho. It seems to be constant. Now trying to understand rho file. |
Hi,
check the 0/fvsolution file. There is the possibility to enter a rhoMin and rhoMax value. Have you set them to a realistic value for your case? SIMPLE { nNonOrthogonalCorrectors 0; rhoMin rhoMin [1 -3 0 0 0] 0.8; rhoMax rhoMax [1 -3 0 0 0] 1.4; transonic yes; |
Hi samsi,
you solved my problem. Somehow, I used values 0.1 and 1 which are out of my density range. Now I changed the interval and I am able to see that rho is not constant anymore. Thanks! |
Hi samsi,
can you explain the "transonic yes"? Thank you |
Hello,
sorry i can't give you an explanation for this... maybe someone else can do this... ? |
Hi,
i am not sure if its actuall but the transonic option is a switch in the equation of the pEqn.H file: if transonic true; Code:
{ Code:
phi = fvc::interpolate(rho*U) & mesh.Sf(); Code:
if (!simple.transonic()) |
regarding BC's of rhoSimplecFoam
1 Attachment(s)
helo ,
i am trying to simulate cold flow in my case using rhoSimplecFoam . my case is having 2 inlets , upper wall (fixed ), outlet and axis of symmetry . after running the case following error and as per my knowledge it is due to the BC's . So can anybody plz have a look on my BC's and tell me whr i am doin wrong . thanks in advance :) Code:
Time = 44 |
All times are GMT -4. The time now is 12:27. |