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

Compressibility in Multiphase Lattice Boltzmann Simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By arjun

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2017, 04:31
Default Compressibility in Multiphase Lattice Boltzmann Simulation
  #1
New Member
 
phil3741's Avatar
 
Phil
Join Date: Apr 2017
Posts: 5
Rep Power: 9
phil3741 is on a distinguished road
Hello,

I'm trying to simulate an oil-water mixture in a stirred tank using the Shan-Chen Lattice Boltzmann Method. I managed to implement it and get it running but the main issue is that the fluid is way to compressible. Now this may be irrelevant in some cases but in the stirred tank, the density of water on the top is then about 700 kg/m3 and 1300 kg/m3 at the bottom which is completely unphysical. Is this a systematic error in the Shan Chen Method and are there ways to overcome this or do I have to use an other method?


greets,
Phil
phil3741 is offline   Reply With Quote

Old   April 26, 2017, 04:53
Default
  #2
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
Try with smaller time steps and see if the problem persists.
arjun is offline   Reply With Quote

Old   April 26, 2017, 05:53
Default
  #3
New Member
 
phil3741's Avatar
 
Phil
Join Date: Apr 2017
Posts: 5
Rep Power: 9
phil3741 is on a distinguished road
Hi, yes the problem persists for small time steps and also after a lot of time steps. When initializing small oil drops with surrounding water, you can see the coalescence really nice, but there is some kind of shock wave going through the domain which I've also seen in youtube videos of shan chen simulations.
phil3741 is offline   Reply With Quote

Old   April 26, 2017, 09:20
Default
  #4
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
then you must be doing something wrong and it is very hard to tell from here.

Are you sure of your equilibrium function calculations?
arjun is offline   Reply With Quote

Old   April 27, 2017, 09:02
Default
  #5
New Member
 
phil3741's Avatar
 
Phil
Join Date: Apr 2017
Posts: 5
Rep Power: 9
phil3741 is on a distinguished road
The code seems to be implemented correctly. However the same behaviour is seen in this video "Immiscible Guy" on Youtube (https://www.youtube.com/watch?v=BQyC_j23IuM&t=37s)
There are grey and white areas that show the same fluctuations than in my simulations.

Is there a systematic error in Shan Chen Model and are there ways to overcome this? Somehow this issue is not adressed in publications.


greets
phil3741 is offline   Reply With Quote

Old   April 27, 2017, 09:49
Default
  #6
Senior Member
 
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34
arjun will become famous soon enougharjun will become famous soon enough
I never implemented Shan Chen model so i am trying to say based on standard LBM that i have implemented in past.

Here are few things to note:

Density is just sum of probablity density functions and these functions are what you solve for. From this a direct inference is that any error in density is direct result of error in probablity density function.

The way LBM equations are derived you can recover the navier stokes equation that you see other solvers solve. This means that given no descretization errors and no temporal marching errors your solution shall follow Navier Stokes and thus mass shall be conserved.

From these two what we can infer is that any error that you see is result of (a) time marching error or (b) spatial descretization error.

Usually LBM uses explicit Euler method so if code is properly implemented and given sufficiently fine grids time stepping is major source of error. And indeed a lot of literature is devoted to this area of LBM.

For this we look at results with smaller time steps and you cofirm that it does not change situation.

So last source of error seems to be spatial descretization. Based on your comment on that youtube video , it seems like error might be in how you deal with boundary. You are either losing some mass there or gaining some mass. (This could happen in LBM) So this is next area where I would focus and check whats going on. Note that error would convect from boundaries to interior (so observe how error evolve with time).
phil3741 likes this.
arjun is offline   Reply With Quote

Old   April 27, 2017, 10:28
Default
  #7
New Member
 
phil3741's Avatar
 
Phil
Join Date: Apr 2017
Posts: 5
Rep Power: 9
phil3741 is on a distinguished road
Thanks for your help. I now played around and set the conversion factor for time A LOT lower than before, by reducing the gravity in lattice units. Now the difference in density still decreases linearly to the top, but the difference is now just 1015 at bottom to 985 at the top, which would be acceptable for me.

I will do some research on how to set the conversion-factors/gravity correctly and verify this with droplet rising velocity and post it here, for now this seems to do the trick.

Thanks!
phil3741 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
Mass balance and overflow problems for Multiphase Inhomogeneous Simulation DarrenC CFX 5 January 28, 2016 22:41
Simulation multiphase airlift reactor with Eulerian multiphase model question???? dilok.kumyoo FLUENT 0 January 28, 2015 03:15
multiphase simulation floating point error vidhya Main CFD Forum 0 April 11, 2011 00:18
LATTICE BOLTZMANN SIMULATION niavarani Main CFD Forum 3 May 19, 2003 08:47


All times are GMT -4. The time now is 16:15.