CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] how to calculate droplet velocity?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2013, 05:57
Default how to calculate droplet velocity?
  #1
Member
 
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12
seju is on a distinguished road
Dear foamer
I want use this code for calculate droplet velocity but I dont kwon any thing.I dont know I must how use it?
its:

downAverage
{
type swakExpression;
valueType internalField;
variables (
"downDirection=vector(0,-1,0);"
//select the downwards direction
"thres=0.5;"//which cells to keep
"liquidVol=sum(alpha1>thres ? vol() : 0);"
//calculates the volume of the drop
"downVel=alpha1>thres ? (U & downDirection) : 0;"
//a & b:inner vector product. Keep the y component of U. );
expression "downVel*vol()/liquidVol" //vol():vol of the cell
accumulations ( sum ); verbose true;
}


please help me. I dont know any thing about use swak4Foam,I just found this code in wiki.
http://www.openfoamwiki.net/index.ph...ropletVelocity
seju is offline   Reply With Quote

Old   October 14, 2013, 08:37
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by seju View Post
Dear foamer
I want use this code for calculate droplet velocity but I dont kwon any thing.I dont know I must how use it?
its:

downAverage
{
type swakExpression;
valueType internalField;
variables (
"downDirection=vector(0,-1,0);"
//select the downwards direction
"thres=0.5;"//which cells to keep
"liquidVol=sum(alpha1>thres ? vol() : 0);"
//calculates the volume of the drop
"downVel=alpha1>thres ? (U & downDirection) : 0;"
//a & b:inner vector product. Keep the y component of U. );
expression "downVel*vol()/liquidVol" //vol():vol of the cell
accumulations ( sum ); verbose true;
}


please help me. I dont know any thing about use swak4Foam,I just found this code in wiki.
http://www.openfoamwiki.net/index.ph...ropletVelocity
The way you ask that question there is no way to answer it

a) be more specific about "don't do anything". Crashes? PRints nothing? Only prints zeros?
b) which version of OF and swak are you using
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 14, 2013, 09:19
Default
  #3
Member
 
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12
seju is on a distinguished road
Quote:
Originally Posted by gschaider View Post
The way you ask that question there is no way to answer it

a) be more specific about "don't do anything". Crashes? PRints nothing? Only prints zeros?
b) which version of OF and swak are you using
I want calculate the velocity of droplet .
my openFoam is 2.2.1
my swak4Foam is 0.2.4
seju is offline   Reply With Quote

Old   October 14, 2013, 10:19
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by seju View Post
I want calculate the velocity of droplet .
That was quite obvious. What is not obvious is what problem you have. See a) in my last posting
Quote:
Originally Posted by seju View Post
my openFoam is 2.2.1
my swak4Foam is 0.2.4
OK. These are quite up-to-date versions
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 14, 2013, 10:53
Default
  #5
Member
 
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12
seju is on a distinguished road
Quote:
Originally Posted by gschaider View Post
That was quite obvious. What is not obvious is what problem you have. See a) in my last posting

OK. These are quite up-to-date versions
my problem its " I dont know how use this code??" I didnt work by swak4Foam before
seju is offline   Reply With Quote

Old   October 14, 2013, 11:08
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by seju View Post
my problem its " I dont know how use this code??" I didnt work by swak4Foam before
Well. The title "Problem in swak4Foam" suggested that the problem is in swak ...

Anyway: which documentation/presentation (there is a number of that linked from the swak-page on the Wiki) have you already read?
seju likes this.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 14, 2013, 11:15
Default
  #7
Member
 
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12
seju is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Well. The title "Problem in swak4Foam" suggested that the problem is in swak ...

Anyway: which documentation/presentation (there is a number of that linked from the swak-page on the Wiki) have you already read?
I dont have any documentation/presentation. I so sorry
Im a new user in openFoam
I want use interFoam and simulation droplet or bubble.
I simulated it but i dont know how I calculate velocity bubble or droplet.
seju is offline   Reply With Quote

Old   October 14, 2013, 11:50
Default
  #8
Member
 
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12
seju is on a distinguished road
Quote:
Originally Posted by seju View Post
I dont have any documentation/presentation. I so sorry
Im a new user in openFoam
I want use interFoam and simulation droplet or bubble.
I simulated it but i dont know how I calculate velocity bubble or droplet.

I think Im understanding. I addition this code to controlDict
seju is offline   Reply With Quote

Old   October 14, 2013, 17:25
Default
  #9
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by seju View Post
I dont have any documentation/presentation. I so sorry
Im a new user in openFoam
I want use interFoam and simulation droplet or bubble.
I simulated it but i dont know how I calculate velocity bubble or droplet.
Please have a look at http://openfoamwiki.net/index.php/Contrib/swak4Foam (especially "Further Information"). Asking vague question without even basic research basically says "my time is so much more valuable than yours" and this does not inspire goodwill in others
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
how to calculate water average velocity in free surface models hmasenger CFX 22 October 30, 2019 19:28
Difficulty in calculating angular velocity of Savonius turbine simulation alfaruk CFX 14 March 17, 2017 06:08
calculate mean velocity components in all cells after some time steps behest FLUENT 3 September 15, 2013 19:26
Calculate velocity components from shear stress Arnoldinho OpenFOAM Running, Solving & CFD 0 August 29, 2011 12:07
Calculate velocity inflow on a 2D surface in 3D quarkz Main CFD Forum 2 May 10, 2009 05:07


All times are GMT -4. The time now is 03:38.