CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF node coordinates

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2020, 22:52
Lightbulb UDF node coordinates
New Member
Rodrigo Villarreal
Join Date: Nov 2016
Posts: 1
Rep Power: 0
rodrigovime is on a distinguished road
Hi everybody,

I wrote some DEFINE_PROFILE scripts to implement boundary conditions, and they seemed to work fine, but then I realize that all of those conditions are imposed in the face centroid coordinate using the F_CENTROID macro.
Is there a way to impose boundary conditions using the nodal coordinates? If so, which Fluent macro should I use?

rodrigovime is offline   Reply With Quote

Old   March 21, 2020, 05:45
Default Boundary Condition and F_CENTROID
Senior Member
vinerm's Avatar
Join Date: Jun 2009
Location: Nederland
Posts: 1,305
Blog Entries: 1
Rep Power: 21
vinerm is on a distinguished road
Boundary condition is always applied at the centers of the faces. If you want to change that, you will have to write your own solver. The inbuilt solver expects boundary values at the face centers.

F_CENTROID does not apply a profile, it only returns the coordinates of the center of a face. F_PROFILE applies the profile. You can also apply the profile at cell center but not at the nodes. There is no calculations done at the nodes, except during mesh deformation or for the calculation of gradients when node-based gradient is selected. If you want to apply the profile based on the positions of the nodes, then you can just fetch the coordinates of the nodes, calculate the values for the profile based on these coordinates, and apply the profile. However, the value will always be applied at the face center.

PM to be used if and only if you do not want something to be shared on the Forum
vinerm is offline   Reply With Quote


boundary condition, fluent - udf, udf, udf code

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
Abysmal performance of 64 cores opteron based workstation for CFD Fauster Hardware 8 June 4, 2018 10:51
Node Data usage in UDF TiagoFC Fluent UDF and Scheme Programming 4 July 18, 2016 21:16
Trapped Particle coordinates UDF Saidul ANSYS 1 February 13, 2015 13:21
Trapped Particle coordinates UDF Saidul FLUENT 0 December 8, 2014 18:07
Trapped Particle coordinates UDF Saidul ANSYS 0 December 8, 2014 02:20

All times are GMT -4. The time now is 00:37.