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

Lagrangian equation in parcel.C

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By zarox

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 7, 2014, 05:37
Default Lagrangian equation in parcel.C
  #1
New Member
 
Join Date: Sep 2014
Posts: 11
Rep Power: 12
Cluap is on a distinguished road
Hi everybody,

I'm using OpenFOAM 1.7 with dieselSpray, in order to model gasoline droplets in a turbulent air flow with an Euler approach for the carrier phase and a lagrangian appproach for the droplets.

When I look at the lagrangian equation in parcel.C, I see :

U() = (U() + (timeRatio*Ucorr)+ gcorr*dt)/(1.0 + timeRatio); (Eq 1)

where U() is the droplet velocity, Ucoor the velocity of the gas seen by the droplet and timeRatio=dt/tauMomentum whith tauMomentum the droplet relaxation time.

But this looks very different from any classical lagrangian equation which should be something like :

dUp/dt = (Ug - Up)/Tp + g (Eq 2)

where Up is the velocity of the droplet, Ug the velocity of the gas seen by the droplet ant Tp the droplet relaxation time.

Discretized it should be something like :

U() = (1 - timeRatio)*U() + (timeRatio*Ucorr) + gcorr*dt (Eq 3)


So why does OpenFoam use Eq 1 instead of Eq 3 ?

Any help would be very appreciated.

Thank you.
Cluap is offline   Reply With Quote

Old   February 19, 2015, 11:43
Default Lagrangian particle velocity integration
  #2
Member
 
Emeline Noel
Join Date: Dec 2013
Location: Paris
Posts: 31
Rep Power: 12
zarox is on a distinguished road
Hi Cluap,

Perhaps, you find the answer but I was asking my self the same question and found the solution so I would like to share with other and also to keep memories of the solution. Perhaps, it is obvious for personn who work in the lagrangian world.

First, I should say I was not aware of the tauMomentum so the Euler integration for parcel of openfoam was very strange for me. But I find that the drag force is can be express thanks to the tauMomentum :

tauMomentum = mp*|Uc-Up|/|Fd|

* Uc : carrier phase velocity
* Fd : Drag Force
* Up : particle velocity
* mp : mass of the particle

So,

dUp/dt = Fd/mp + Fg/mp (1)

Using tauMomentum : Tp

dUp/dt = (Ug - Up)/Tp + g (2)

From there, I think the key is to know that in (2) OpenFOAM use the particle velocity at t+dt

Briefly, taking 1/Tp = A

Up(t+dt) = Up(t) + A*dt*(Ug-Up(t+dt)) + Fg*dt

So,

Up(t+dt) = Up(t) + (A*dt*Ug+Fg*dt)/(1+A*dt)

A*dt = timeRatio

So you find the equation in OpenFOAM :

U() = (U() + (timeRatio*Ucorr)+ gcorr*dt)/(1.0 + timeRatio); (Eq 1)

May it can help someone!


Tchuss
zarox is offline   Reply With Quote

Reply

Tags
dieselspray, lagrangian, parcel, particle


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 flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
Some problem of "Qcriterion.mcr& yuyuxuan Tecplot 9 February 12, 2016 04:27
Derivation of Momentum Equation in Integral Form Demonwolf Main CFD Forum 2 October 29, 2009 20:53
Need help:about energy equation in CFX Stein CFX 4 July 2, 2009 23:31
Boundary conditions in a Poisson's equation? vincent Main CFD Forum 4 April 16, 1999 03:19


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