CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > CFD Freelancers

Problem in oil/water phase segregation in Openfoam/Interfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2024, 05:36
Default Problem in oil/water phase segregation in Openfoam/Interfoam
  #1
New Member
 
Sandeep Raheja
Join Date: Apr 2024
Location: Abu Dhabi
Posts: 3
Rep Power: 2
sraheja is on a distinguished road
Hello everyone,
This is for a short term project for which I am willing to pay.
I am a newbie to CFD and Openfoam. I am currently working on a multiphase simulation in OpenFOAM using the `interFoam` solver to model the segregation of oil and water in a still atmospheric tank without any inlet/outlet flows. The tank dimensions are 4m x 2m with a height of 1m, and it is initially filled with an oil-water mixture where oil comprises 50% of the total volume. Despite setting up the simulation to observe the phases separating over time, I have not seen any segregation between oil and water, as the oil should float to the top due to its lower density.

Here are some details of my setup:
- Solver: interFoam
- Initial Condition: Uniform distribution of alpha.oil = 0.5 across the domain.
- Boundary Conditions: Walls are set to noSlip, and the top is a free-slip boundary at atmospheric pressure.
- Mesh: Structured mesh with 20 cells/m resolution.

I have tried to check the physical properties, boundary conditions, and numerical schemes, but the phases remain mixed without clear separation. Gravity is also applied in the constant/g file in the negative Z direction.

I also tried another simple case of a still-settling tank, but this tank had an altered initial condition: lighter oil was at the bottom and heavier water was at the top. The simulation ran for some time, showing oil moving to the top and water to the bottom, but it became slow after 14 seconds of physical time while working on an adjustable time step as it struggled to maintain a courant number.

I seek insights or suggestions that might help diagnose and resolve this issue. My next goal is to add inlet/outlet nozzles and a weir plate for a realistic storage tank, which I will model after fixing such a simple scheme. The paid project would involve estimating effective settling periods and attainable oil water separation efficiencies in some typical configurations.

Could there be an issue with my solver settings and BCs, or how the initial conditions are applied?

I am attaching the complete case setup files along with the blockmesh dictionary. Any advice on adjustments to the setup or further diagnostic steps would be greatly appreciated! I can discuss further payment terms and conditions with those willing to mentor on such problems using opensource tools like OpenFoam/Gmsh and Salome.

regards
Attached Files
File Type: zip case.zip (6.5 KB, 2 views)
sraheja is offline   Reply With Quote

Old   April 29, 2024, 10:44
Default RE:
  #2
New Member
 
Join Date: Sep 2020
Posts: 18
Rep Power: 5
PrasantKaredla is on a distinguished road
Hello,

I am looking into your case.

It seems like the initial condition for oil may be the issue. You must set the initial fields for oil using the setFields utility. you said lighter oil was at the bottom. Do you know to what extent oil was settled at the bottom initially? out of 1m height?

You can reach out to me at prasant.karedla@gmail.com. I have good exposure to multiphase simulations using OpenFOAM.

Best Regards,
Prasant K

Last edited by PrasantKaredla; April 29, 2024 at 12:34.
PrasantKaredla is offline   Reply With Quote

Old   April 30, 2024, 05:31
Default
  #3
New Member
 
Sandeep Raheja
Join Date: Apr 2024
Location: Abu Dhabi
Posts: 3
Rep Power: 2
sraheja is on a distinguished road
There were two cases which I have tried to simulate:

case-1 : The whole tank is filled with oil water mixture with alpha=0.5. I have now used setFields as suggested but there is no change in the simulation results. there is no segregation happening at all. The setFields dict is as below:
Code:
defaultFieldValues
(
    volScalarFieldValue alpha.oil 0.5
);

regions
(
    boxToCell
    {
        box (0 0 0) (4 2 1); // fully filled with oil with alpha 0.5
        fieldValues
        (
            volScalarFieldValue alpha.oil 0.5
        );
    }
);

// ************************************************************************* //
case-2:
In this case the bottom half of the tank was filled with oil (upto 0.5 m height). setFields was used here also. The simulation runs. I also increased oil viscosity this time,this surprisingly helped convergence allowed larger timesteps. Final result after 200s is still weird. Oil is more at the end. (result attached)
Attached Files
File Type: docx snaps.docx (23.5 KB, 3 views)
sraheja is offline   Reply With Quote

Reply

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
alphaEqn.H in twoPhaseEulerFoam cheng1988sjtu OpenFOAM Bugs 15 May 1, 2016 16:12
[swak4Foam] mass conservation of solid phase violated when using groovyBC with twoPhaseEulerFoam xpqiu OpenFOAM Community Contributions 8 June 17, 2015 02:08
Problem with Schnerr-Sauer cavitation model combining air phase??? dinhanh FLUENT 2 June 1, 2015 16:38
Three phase problem in Trickle bed omar.rahul Main CFD Forum 0 April 6, 2015 00:23
Problem with phase separation in t-junction estenmark FLUENT 2 June 3, 2014 20:18


All times are GMT -4. The time now is 04:49.