# funkySetFiekds - linear velocity distribution

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

 January 31, 2014, 05:14 funkySetFiekds - linear velocity distribution #1 Senior Member   Join Date: Jan 2014 Posts: 138 Rep Power: 5 Hi, I need to set for my case the internal field to a linear Velocity distribution from 0 to 1. How can I apply this with funkySetFields? I am not sure how to formulate the expression itself Thanks for all

January 31, 2014, 06:26
#2
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,020
Rep Power: 43
Quote:
 Originally Posted by hxaxtma Hi, I need to set for my case the internal field to a linear Velocity distribution from 0 to 1. How can I apply this with funkySetFields? I am not sure how to formulate the expression itself Thanks for all
"linear distribution" in what sense (in space?). Write down the equation and you're halfway there (but your question is a bit to vague to properly help you)
__________________
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

 January 31, 2014, 08:29 #3 Senior Member   Join Date: Jan 2014 Posts: 138 Rep Power: 5 sorry for lack of information: I think I am almost there, the vel. distribution should be in space this is my code: Code: `funykSetFields -case . -field U - expression 'pos().z/max(pos().z)*vector(1,0,0)' -time 0 -keepPatches` No I get my linear profile. Is there a more elegant way to set up the expression?

January 31, 2014, 19:51
#4
Assistant Moderator

Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,020
Rep Power: 43
Quote:
 Originally Posted by hxaxtma sorry for lack of information: I think I am almost there, the vel. distribution should be in space this is my code: Code: `funykSetFields -case . -field U - expression 'pos().z/max(pos().z)*vector(1,0,0)' -time 0 -keepPatches` No I get my linear profile. Is there a more elegant way to set up the expression?
Not more elegant, but more accurate : I'd suggest "interpolateToCell(max(pts().x))" if you want the profile to 'end' at the boundary of the geometry not at the center of the uppermost cell
__________________
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

 February 2, 2014, 11:35 #5 Senior Member   Join Date: Jan 2014 Posts: 138 Rep Power: 5 Thanks Gschaider, Thread is closed

 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 docinger OpenFOAM Running, Solving & CFD 3 September 21, 2013 15:21 hydraulics Main CFD Forum 0 December 25, 2012 04:25 beastieboys FLUENT 0 March 3, 2010 02:55 cfd123 FLOW-3D 3 February 17, 2010 10:44 Matthieu FLUENT 0 January 24, 2008 11:48

All times are GMT -4. The time now is 22:50.