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 Members List Search Today's Posts Mark Forums Read

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2022, 12: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, 02: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

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


All times are GMT -4. The time now is 22:43.