CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Fluent how to access coordinates of vector

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By jdiab
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2022, 13:06
Default Fluent how to access coordinates of vector
  #1
New Member
 
Jad Diab
Join Date: Apr 2022
Posts: 14
Rep Power: 4
jdiab is on a distinguished road
Dear all,

I am trying to access the coordinates of a calculated vector in a UDF.

Basically, I am calculating the current density through a created UDS of the electric potential, by using vector commands (NV_VEC, NV_VS)

However, I need to use the 3d cartesian components of this current_density vector for further calculations,

would writing NV_VEC(current_density)[0] give access to the x component of the current density, and NV_VEC(current_density)[1] give acces to the y-component, etc. or no?

and if not, could someone please help me in accessing the cartesian components of the vector?

Thank you in advance
Mary-31 likes this.
jdiab is offline   Reply With Quote

Old   October 18, 2022, 03:55
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
current_density[0] for x component
current_density[1] for y component
Mary-31 likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
fluent, fluent - udf, udf, uds, vector


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
looking for a smart interface matlab fluent chary FLUENT 24 June 18, 2021 10:07
Displaying a uniform vector in ansys fluent output image Hong M.H FLUENT 0 April 27, 2018 01:09
Fluent calculating cylindrical coordinates Falldox FLUENT 1 January 31, 2017 11:10
working in cylindrical coordinates in fluent Randheer Yadav FLUENT 2 January 18, 2015 17:25
Remote Access to FLUENT Doug O'Brien FLUENT 0 December 20, 2004 03:00


All times are GMT -4. The time now is 20:34.