|
[Sponsors] |
Fluent UDF - Identfying Unambiguously Mesh elements |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 1, 2017, 06:41 |
Fluent UDF - Identifying Unambiguously Mesh elements
|
#1 |
New Member
Emilio
Join Date: Jul 2017
Posts: 3
Rep Power: 9 |
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 14:52. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bad elements after generating unstructured volume mesh | max_beetle | Pointwise & Gridgen | 0 | October 24, 2017 02:52 |
Mesh motion UDF for Fluent? | snesmaeili | Fluent UDF and Scheme Programming | 0 | December 26, 2016 10:58 |
The fluent stopped and errors with "Emergency: received SIGHUP signal" | yuyuxuan | FLUENT | 0 | December 3, 2013 23:56 |
[Gmsh] 2D Mesh Generation Tutorial for GMSH | aeroslacker | OpenFOAM Meshing & Mesh Conversion | 12 | January 19, 2012 04:52 |
How to control Minximum mesh space? | hung | FLUENT | 7 | April 18, 2005 10:38 |