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

Fluent udf give zero instead of coordinate location

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vinerm

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 2, 2020, 03:35
Default Fluent udf give zero instead of coordinate location
  #1
Member
 
Join Date: Feb 2019
Posts: 65
Rep Power: 7
cfdnewb123 is on a distinguished road
I am working on DEFINE_TURBULENT_PROFILE. However, x[ND_ND] doesn't seems to work for me as it gives me zero. When I try monitoring its output (e.g. Message("x=%g and y=%g \n", x[0], x[1]) on Fluent's console, I saw this instead - x=0 and y=0.

Basically it just keeps showing me zero. Even when I try "Message("x=%g and y=%g \n", x[0], 2);" but it shows 0 instead of 2! When I try outputting other output like S, the message doesn't show 0.

Is x[ND_ND] ONLY for the "DEFINE_PROFILE" udf? Does it works for others like mine case?
cfdnewb123 is offline   Reply With Quote

 

Tags
ansys, fluent, udf


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
Passing udf value to fluent durg Fluent UDF and Scheme Programming 2 February 11, 2019 12:55
Fluent do not use my velocity field(by UDF) to solve energy equation tangleiplus Fluent UDF and Scheme Programming 6 January 21, 2019 21:28
Fluent Boundary Condition with UDF amitjoshi FLUENT 0 November 16, 2018 02:21
Integrating data from UDF to Fluent say2017 FLUENT 0 October 20, 2017 13:50
Beginner help, coordinate udf with output file nb92 Fluent UDF and Scheme Programming 0 March 20, 2014 04:16


All times are GMT -4. The time now is 19:38.