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

Fluent UDF - Identfying Unambiguously Mesh elements

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2017, 05:41
Default Fluent UDF - Identifying Unambiguously Mesh elements
  #1
New Member
 
Emilio
Join Date: Jul 2017
Posts: 3
Rep Power: 8
SanFer is on a distinguished road
Hi all!

This is probably a question many UDFs developers have posed themselves.

When accessing to mesh-related variables or attempting to modify them (dynamic mesh, etc.) is recurrent to use the strategy of storing the data, i.e., the Cartesian coordinates of a collection of nodes, and then change or access them in subsequent runs. For doing this, it is necessary some information to access unambiguously this data, such as ID numbers.

I can share the information I know so far:

- Node structures (Node *v) have to fields, ID (v->id) and INDEX (v->idx), that identify each node. Nevertheless, I am not sure if it is possible to access the node pointer directly from this ID number. In serial, it does not seem to work.

- Node structures can be accessed by knowing the thread (Thread *tf), face global index (fave_t f) and node local index (int n) : v = F_NODE(f,tf,n). This works great in serial, but in parallel the face numbering changes, so every node renames their interior faces. f = 635 in serial becomes f= 45 in its compute node (this can be checked using if PRINCIPAL_FACE_P(f,tf)).

So, does anybody here know some way, function or data stored elsewhere that can be used to avoid this ambiguity? I am sure it will be really helpful.

Thank you !

Emilio

Last edited by SanFer; December 1, 2017 at 13:52.
SanFer is offline   Reply With Quote

Reply


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
Bad elements after generating unstructured volume mesh max_beetle Pointwise & Gridgen 0 October 24, 2017 01:52
Mesh motion UDF for Fluent? snesmaeili Fluent UDF and Scheme Programming 0 December 26, 2016 09:58
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 22:56
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38


All times are GMT -4. The time now is 02:31.