CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

buoyantSimpleFoam and watertank

Register Blogs Community New Posts Updated Threads Search

Like Tree25Likes

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 29, 2013, 16:05
Default buoyantSimpleFoam and watertank
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear Foamers,

I am working (since 2 weeks) on a very simple simulation.

What I want to simulate:

Something like that: http://www.wiga-energietechnik.de/bi...mage/lwsp2.gif


What I did:

- I meshed the whole geometry with a corse and very fine mesh
- I build polynoms for water thermodynamics (30°C-70°C)
- I changed the thermodynamics for water
- Simulation is LAMINAR

- Inlet 4e-5 m³/s

- At the inlet I have a very simple pipe installation but the solver blow up every time so I just set an Inlet + Outlet (thats all - see pictures).

Now my problem:

Every BC I set make problems.

I am not 100% sure how I should set the p_rgh BC for inlet/outlet/wall.

p is calculated.


For U and T its clear.

The solver is working just for 1 or none iterations.
If I set of the gravity the simulation is working.

It seems that the solver is calculating my water with a compressibility because after the first time step I get extrem huge velocity fields in the big domain.


I tried a lot of BC for U + p_rgh - fixed at the outlet - pressureInletOutletVelocty etc.

Does someone can give me a hint how to set these BC right?

Relaxationfactors are decreased to 0.1.
linearUpwind + limitedLinear schemes are used etc...


Interesting fact:

without gravitation the simulation is working.
With gravitation the mass flux cant be calculated:
Code:
--> FOAM FATAL ERROR: 
Continuity error cannot be removed by adjusting the outflow.
Please check the velocity boundary conditions and/or run potentialFoam to initialise the outflow.
Total flux              : 102320
Specified mass inflow   : 0.29563
Specified mass outflow  : 0.151702
Adjustable mass outflow : 0
For gravity I have to set the outlet p_rgh to fixedValue that I can calculate the first timestep but after that the solver blow up again. A picture of p, p_rgh and U is included in the attachment.

The error message:
Code:
Time = 2

DILUPBiCG:  Solving for Ux, Initial residual = 0.733571, Final residual = 0.0031127, No Iterations 7
DILUPBiCG:  Solving for Uy, Initial residual = 0.623405, Final residual = 0.000739902, No Iterations 8
DILUPBiCG:  Solving for Uz, Initial residual = 0.701814, Final residual = 0.0023944, No Iterations 7
DILUPBiCG:  Solving for h, Initial residual = 1, Final residual = 0.00132406, No Iterations 2


--> FOAM FATAL ERROR: 
Maximum number of iterations exceeded

    From function thermo<Thermo, Type>::T(scalar f, scalar T0, scalar (thermo<Thermo, Type>::*F)(const scalar) const, scalar (thermo<Thermo, Type>::*dFdT)(const scalar) const, scalar (thermo<Thermo, Type>::*limit)(const scalar) const) const
    in file /home/shorty/OpenFOAM/OpenFOAM-2.2.x/src/thermophysicalModels/specie/lnInclude/thermoI.H at line 76.

FOAM aborting
Compared with the velocity field its clear why its blow up but I can not fix it.


Any suggestions would be appreciated.

Regards Tobi
Attached Images
File Type: jpg picture.jpg (12.9 KB, 329 views)
File Type: jpg U.jpg (12.9 KB, 276 views)
File Type: jpg P.jpg (16.4 KB, 317 views)
Tobi is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:55.