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

 September 27, 2013, 11:09 swak4Foam & Radial velocity #1 Senior Member   Sasan Ghomi Join Date: Sep 2012 Location: Iran - Tehran Posts: 185 Rep Power: 7 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.

September 27, 2013, 15:08
#2
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,016
Rep Power: 43
Quote:
 Originally Posted by sasanghomi 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 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.
__________________
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

 September 28, 2013, 05:44 #3 Senior Member   Sasan Ghomi Join Date: Sep 2012 Location: Iran - Tehran Posts: 185 Rep Power: 7 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 : That : {v= velocity & V=volume & r = position & Rs=swirl ratio &N=rpm} 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.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Claudio87 OpenFOAM Pre-Processing 5 May 29, 2014 09:30 Al-Hashimi FLUENT 1 June 23, 2013 10:30 Barri FLUENT 2 March 6, 2008 21:29 Sal FLUENT 2 August 1, 2007 09:29 chong chee nan FLUENT 0 December 29, 2001 06:13

All times are GMT -4. The time now is 18:06.