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

volume fraction gradient

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2012, 12:42
Default volume fraction gradient
  #1
Member
 
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16
Gitesh P is on a distinguished road
Hello,

Can any one suggest how to get the volume fraction gradient to calculate interfacial area ?

I mean if I have a dispersed phase volume fraction 'alpha'. And I want to calculate the '|grad(alpha)|' field then how I can get the values in OF/paraFoam ?

With regards,
GP
Gitesh P is offline   Reply With Quote

Old   November 8, 2012, 09:51
Default
  #2
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 17
kmooney is on a distinguished road
If you want to be able to see the alpha gradient field during post processing something like this might work for you:

Code:
if(runTime.write())
{
    const volVectorField& gradAlpha = fvc::grad(alpha);
    gradAlpha.write();
}
Cheers!
kmooney is offline   Reply With Quote

Old   November 9, 2012, 03:14
Default
  #3
Member
 
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16
Gitesh P is on a distinguished road
Hello,

Thank you for that.

Yes now I am able to get the gradients of alpha.

How about absolute value of it. I mean I need to calculate absolute value of gradient of alpha.

Is there any utility where I can direct find those values ?

With regards,
GP
Gitesh P is offline   Reply With Quote

Old   November 9, 2012, 09:42
Default
  #4
Member
 
Duong A. Hoang
Join Date: Apr 2009
Location: Delft, Netherlands
Posts: 93
Rep Power: 17
duongquaphim is on a distinguished road
Send a message via Yahoo to duongquaphim
instead of const volVectorField& gradAlpha = fvc::grad(alpha); use const volScalarField& gradAlpha = mag(fvc::grad(alpha));
duongquaphim is offline   Reply With Quote

Old   November 12, 2012, 08:04
Default
  #5
Member
 
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16
Gitesh P is on a distinguished road
Hello,

Can you say me where I include/write this line? I mean in which directory/file.

With regards,
GP
Gitesh P is offline   Reply With Quote

Old   November 12, 2012, 09:32
Default
  #6
Member
 
Duong A. Hoang
Join Date: Apr 2009
Location: Delft, Netherlands
Posts: 93
Rep Power: 17
duongquaphim is on a distinguished road
Send a message via Yahoo to duongquaphim
you can just put the above code in interFoam.C for instance and compile. The outputs should be exported into time folders in the same way of U, p or alpha1 fields.

Duong
duongquaphim is offline   Reply With Quote

Old   November 13, 2012, 07:43
Default
  #7
Member
 
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16
Gitesh P is on a distinguished road
Hello again,

You mean I need to put these lines some where at the end in interFoam.C file ?

With regards,
GP
Gitesh P is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
gradient of species mass fraction zhou FLUENT 1 March 14, 2020 07:55
VOF Volume fraction in Velocity inlet aruelle FLUENT 1 March 18, 2010 11:53
volume fraction, Mass fraction and Bulk Mass flow Dr.jones CFX 1 January 25, 2006 04:32
C_VOF_G for Volume fraction gradient Fred FLUENT 3 January 10, 2005 05:04


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