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

Divergence problem related to interMixingFoam

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 5, 2016, 04:38
Default Divergence problem related to interMixingFoam
  #1
New Member
 
weicent
Join Date: Aug 2016
Posts: 13
Rep Power: 9
weicent is on a distinguished road
Hi Foamers,

I am doing a simulation related to 3 incompressible fluids (ethanol, water and air), two of them are misible, from the Openfoam User Guide, I used interMixingFoam, my concentration is on the mixing process of water and ethanol. The physical process is firstly put the ethanol and water in a cup that have a inlet hole in the bottom, and then pump air into the cup from the bottom to help the mixing process (the geometry of the cup is shown in attatched pictures, the second picture shows that the ethanol is initially at the center of the water), the air is pumped into the cup within a specified time interval (which means the pressure at inlet is a time-dependent variable, and the inlet velocity should be calculated via this inlet pressure).

At the first time, I create the cup geometry by blockMeshDict and setup the varying pressure by uniformTotalPressure (I'm not familiar about this boundary condition, before this I have attempt timeVaryingTotalPressure, timeVaryingUniformFixedValue, timeVaryingMappedFixedValue and uniformFixedValue but all failed, the Openfoam returns an error indicate that there is no such a BC for the former two, I used Openfoam 2.3.1, for the latter two, I don't know how to use them since I didn't found a clear tutorial), after I start the simulation, it diverges at the begining and I don't know how to fix this problem.

After that, I tried to change the time-dependent boundary condition since I dont't familiar about it, I modified the inlet pressure to a fixed value and restart the simulation, but the diverge problem still exist. I have tried refine the mesh, decrease (or increase) the Courant number, decrease the deltaT value but all failed.

Then I have changed the geometry of the cup to a simple cylinder, and the simulation converges in the first 0.06s but diverges after that (under the fixed inlet pressure BC).

I have attatched the zip files of my simulation code (include varying pressure and fixed pressure) , could anyone help me to check my case file? I don't where is the problem, and if possible, could you help me to check if my time-dependent pressure BC is correct? Any suggestion will be appreaciated!

Best,

weicent
Attached Images
File Type: jpg forum 1.jpg (20.1 KB, 73 views)
File Type: png forum 2.png (23.1 KB, 59 views)
Attached Files
File Type: zip ethanolWater_fixedValue.zip (11.7 KB, 18 views)
File Type: zip ethanolWater_timeDependent.zip (10.7 KB, 11 views)
weicent is offline   Reply With Quote

 

Tags
diverge, intermixingfoam, multiphase flow, openfoam 2.3.1, time-dependent


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem of calculating divergence due to wrong boundary vaule of finite area mesh lzhou OpenFOAM Programming & Development 2 June 18, 2015 05:10
divergence problem santu Main CFD Forum 0 October 31, 2014 00:58
Divergence detected in pressure correction term problem calculation lm_laxman FLUENT 0 September 23, 2014 00:28
Multiphase phase (gas-solid) flow using Eulerian-Granular medel ( divergence problem) jessie FLUENT 3 May 29, 2014 11:05
[ANSYS Meshing] Inflation - Airfoil Meshing - Divergence problem dalecooper ANSYS Meshing & Geometry 0 July 19, 2013 07:04


All times are GMT -4. The time now is 09:20.