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

User Field Function

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 24, 2009, 04:20
Default User Field Function
  #1
New Member
 
Hannow
Join Date: Nov 2009
Posts: 6
Rep Power: 6
hannow is on a distinguished road
Hi all,

I want to create a new user field function that calculate the velocity magnitude of only two components which are j and k. The problem is that i don't know how to write the function definition. Specifically, I don't know the funtion names of the two velocity component j and k. If anybody knows the tips, please let me know.

Thank you all.

Hannow
hannow is offline   Reply With Quote

Old   November 24, 2009, 04:43
Default
  #2
New Member
 
Join Date: Nov 2009
Posts: 5
Rep Power: 6
engrob is on a distinguished road
sqrt($$Position[1]^2+$$Position[2]^2)
engrob is offline   Reply With Quote

Old   November 24, 2009, 12:19
Default
  #3
New Member
 
Join Date: Nov 2009
Posts: 12
Rep Power: 6
Arconis is on a distinguished road
Quote:
Originally Posted by engrob View Post
sqrt($$Position[1]^2+$$Position[2]^2)
I think exponents must be defined like this:

sqrt(pow($$Position[1],2)+pow($$Position[2],2))
Arconis is offline   Reply With Quote

Old   November 24, 2009, 20:20
Default
  #4
New Member
 
Hannow
Join Date: Nov 2009
Posts: 6
Rep Power: 6
hannow is on a distinguished road
The one I was looking for is this:

sqrt(pow($$Velocity[1],2)+pow($$Velocity[2],2))

Thank you all for the tip, really appreaciate it :-)
hannow 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
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59
solving passive scalar by user function in AVLFIRE huyp Main CFD Forum 0 September 4, 2008 10:21
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 06:27
custom field function greg FLUENT 2 May 23, 2006 10:42


All times are GMT -4. The time now is 11:23.