|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Hannow
Join Date: Nov 2009
Posts: 6
Rep Power: 5 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Nov 2009
Posts: 5
Rep Power: 5 ![]() |
sqrt($$Position[1]^2+$$Position[2]^2)
|
|
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Nov 2009
Posts: 12
Rep Power: 5 ![]() |
||
|
|
|
|
|
|
|
#4 |
|
New Member
Hannow
Join Date: Nov 2009
Posts: 6
Rep Power: 5 ![]() |
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 :-) |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |