CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Customized User Field Function - Vector (https://www.cfd-online.com/Forums/star-ccm/70851-customized-user-field-function-vector.html)

hannow December 8, 2009 03:22

Customized User Field Function - Vector
 
Hi all,

I want to create new user field function which is a velocity vector that has two components instead of three, j and k. Can it be done in STAR-CCM+? If so, how? or how the function definition should be written?

Thank you!

Hannow

CFDENGR December 10, 2009 07:25

Hannow,

You can define a new field function as you described. Right click on the field functions tab under the tools menu and select new -> user defined field function. Now you can define it however you would like. The code is simple:

For velocity, you typically have 3 components, we will say i,j,k. The i-component is $$Velocity[0], j-component is $$Velocity[1], and k-component is $$Velocity[2]. You can use these and any mathematical operators however you would like to create your desired field functions. Look in the manual for user defined field functions for a more complete description of how to define them.


All times are GMT -4. The time now is 21:30.