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

[swak4Foam] and Radial velocity

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 27, 2013, 11:09
Default and Radial velocity
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 14
sasanghomi is on a distinguished road
Hi foamers

I have two questions about swak4Foam :

1) I want to calculate radial velocity in an engine . Can I do this action by using swak4Foam? How? which type ? Can you write an example here?

2) How can I calculate an expression according to variables ? for example I want to use probe and I want to have sqrt(2*k/3) in a specific point versus time { k is turbulent energy }.How can I do that?

I appreciate any help,
Thanks and best regards,
Sasan.
sasanghomi is offline   Reply With Quote

Old   September 27, 2013, 15:08
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 sasanghomi View Post
Hi foamers

I have two questions about swak4Foam :

1) I want to calculate radial velocity in an engine . Can I do this action by using swak4Foam? How? which type ? Can you write an example here?
I've got to hand you back this question: can you be more specific? Do you want a new field, an average or what? You want it during the run or afterwards? And what is your definition of "radial velocity"?

Anyway: if you can write that definition as an expression on a piece of paper then you can calculate it in swak (probably in terms of velocity, position and the axis). Only thing you need to know is that & is the inner product of two vectors and ^ is the cross product (but you were probably aware of that if you looked at the Wiki-page and the incomplete reference guide http://openfoamwiki.net/images/d/db/...mReference.pdf)

Quote:
Originally Posted by sasanghomi View Post
2) How can I calculate an expression according to variables ? for example I want to use probe and I want to have sqrt(2*k/3) in a specific point versus time { k is turbulent energy }.How can I do that?
That'd be a swakExpression-function object with valueType "set". There are examples for that in the Examples-folder of the distro and something like that is for instance explained in the presentation from the 6th workshop (linked from the Wiki-page)

Please have a look at the mentioned presentation and the reference guide before asking further. I only have a limited amount of time for supporting these things and every time I answer questions that are already documented I have less time to complete the actual documentation.
Mojtaba.a and sasanghomi like 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   September 28, 2013, 05:44
Default
  #3
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 14
sasanghomi is on a distinguished road
Dear Bernhard ,

Thank you very much for your reply and I am sorry for asking simple question.
I appreciate your help and your attention.
I have another question . Can you help me?
I want to calculate engine swirl :

w=\frac{\int (\vec{r}\times \vec{v})dV}{\int \vec{r}^{2}dV}

That : {v= velocity & V=volume & r = position & Rs=swirl ratio &N=rpm}

R_{s}=\frac{w_{z}}{2\pi N}

I want to calculate Rs. Can I calculate Rs by using swak4Foam? I think swak doesn't have integration.Also I don't know how can I use r vector in swak !!! Can you guide me?


Best regards
Sasan.
sasanghomi 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
Simulation of radial gas turbine, Inlet velocity components dmaz CFX 17 May 19, 2019 09:45
Syntax error detected in the expression while calculating radial velocity sylvanus CFX 1 October 15, 2015 02:21
Plotting Radial Velocity and Tangential Velocity in CFD Post ashtonJ CFX 5 July 13, 2015 02:49
Radial velocity and tangential velocity on centrifugal fan, johnnyp FLUENT 2 May 24, 2013 07:10
Variables Definition in CFX Solver 5.6 R P CFX 2 October 26, 2004 02:13


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