|
[Sponsors] |
March 20, 2020, 23:52 |
UDF node coordinates
|
#1 |
New Member
Rodrigo Villarreal
Join Date: Nov 2016
Posts: 29
Rep Power: 10 |
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? Regards, RVM |
|
March 21, 2020, 06:45 |
Boundary Condition and F_CENTROID
|
#2 |
Senior Member
|
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.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
April 10, 2020, 11:55 |
|
#3 |
New Member
Rodrigo Villarreal
Join Date: Nov 2016
Posts: 29
Rep Power: 10 |
Thank you very much for your answer. Now it is very clear to me how to apply the boundary condition properly.
|
|
April 10, 2020, 12:07 |
Good
|
#4 |
Senior Member
|
Nice to know that it is clear now.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
Tags |
boundary condition, fluent - udf, udf, udf code |
|
|
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 11:51 |
Node Data usage in UDF | TiagoFC | Fluent UDF and Scheme Programming | 4 | July 18, 2016 22:16 |
Trapped Particle coordinates UDF | Saidul | ANSYS | 1 | February 13, 2015 14:21 |
Trapped Particle coordinates UDF | Saidul | FLUENT | 0 | December 8, 2014 19:07 |
Trapped Particle coordinates UDF | Saidul | ANSYS | 0 | December 8, 2014 03:20 |