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

swak4Foam & Radial velocity

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

Like Tree2Likes
  • 2 Post By gschaider

Reply
 
LinkBack Thread Tools Display Modes
Old   September 27, 2013, 11:09
Default swak4Foam & Radial velocity
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Iran - Tehran
Posts: 185
Rep Power: 4
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: 3,840
Rep Power: 38
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: Iran - Tehran
Posts: 185
Rep Power: 4
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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4Foam: problem with a parabolic velocity profile Claudio87 OpenFOAM Pre-Processing 5 May 29, 2014 09:30
tangential, axial and radial velocity in swirling Al-Hashimi FLUENT 1 June 23, 2013 10:30
Axial, Radial, Tangental velocity in FLUENT post Barri FLUENT 2 March 6, 2008 20:29
Radial Position and Axial Velocity Graph Sal FLUENT 2 August 1, 2007 09:29
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 05:13


All times are GMT -4. The time now is 01:35.