|
[Sponsors] |
[swak4Foam] how to calculate droplet velocity? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 14, 2013, 05:57 |
how to calculate droplet velocity?
|
#1 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
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 |
|
October 14, 2013, 08:37 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
October 14, 2013, 09:19 |
|
#3 | |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
my openFoam is 2.2.1 my swak4Foam is 0.2.4 |
||
October 14, 2013, 10:19 |
|
#4 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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
__________________
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 |
|
October 14, 2013, 10:53 |
|
#5 |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
||
October 14, 2013, 11:08 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Anyway: which documentation/presentation (there is a number of that linked from the swak-page on the Wiki) have you already read?
__________________
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 |
||
October 14, 2013, 11:15 |
|
#7 | |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
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. |
||
October 14, 2013, 11:50 |
|
#8 | |
Member
sajad
Join Date: Aug 2013
Posts: 70
Rep Power: 12 |
Quote:
I think Im understanding. I addition this code to controlDict |
||
October 14, 2013, 17:25 |
|
#9 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
|
|
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 |