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

User Field Function

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2009, 05:20
Default User Field Function
  #1
New Member
 
Hannow
Join Date: Nov 2009
Posts: 6
Rep Power: 16
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, 05:43
Default
  #2
New Member
 
Join Date: Nov 2009
Posts: 5
Rep Power: 16
engrob is on a distinguished road
sqrt($$Position[1]^2+$$Position[2]^2)
engrob is offline   Reply With Quote

Old   November 24, 2009, 13:19
Default
  #3
New Member
 
Join Date: Nov 2009
Posts: 12
Rep Power: 16
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, 21:20
Default
  #4
New Member
 
Hannow
Join Date: Nov 2009
Posts: 6
Rep Power: 16
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59
solving passive scalar by user function in AVLFIRE huyp Main CFD Forum 0 September 4, 2008 11:21
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27
custom field function greg FLUENT 2 May 23, 2006 11:42


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