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

UDF: face number

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2013, 06:32
Default UDF: face number
  #1
New Member
 
huhanyu
Join Date: Sep 2013
Posts: 1
Rep Power: 0
lion2013 is on a distinguished road
hello:

i want to find out how the face numbers are ordered for my mesh with udf. fistly,i must get the face ID/numberwith udf,

Has anyone gotten this work? and the udf?

lion2013 is offline   Reply With Quote

Old   October 23, 2013, 12:14
Default
  #2
New Member
 
hadi
Join Date: May 2013
Posts: 10
Rep Power: 13
h.iraji is on a distinguished road
Fluent help
( // UDF Manual // 7. Parallel Considerations // 7.5. Macros for Parallel UDFs //)

7.5.6.*Cell and Face Partition ID Macros
In general, cells and faces have a partition ID that is numbered from 0 to n-1, where n is the number of compute nodes. The partition IDs of cells and faces are stored in the variables C_PART and F_PART, respectively. C_PART(c,tc) stores the integer partition ID of a cell and F_PART(f,tf) stores the integer partition ID of a face.
Note that myid can be used in conjunction with the partition ID, since the partition ID of an exterior cell is the ID of the neighboring compute node.

7.5.6.2.*Face Partition IDs
For interior faces and boundary zone faces, the partition ID is the same as the compute node ID. The partition ID of a partition boundary face, however, can be either the same as the compute node, or it can be the ID of the adjacent node, depending on what values F_PART is filled with (Figure*7.14:*Partition Ids for Cells and Faces in a Compute Node). Recall that an exterior cell of a compute node has only partition boundary faces; the other faces of the cell belong to the adjacent compute node. Therefore, depending on the computation you want to do with your UDF, you may want to fill the partition boundary face with the same partition ID as the compute node (using Fill_Face_Part_With_Same) or with different IDs (using Fill_Face_Part_With_Different). Face partition IDs will need to be filled before you can access them with the F_PART macro. There is rarely a need for face partition IDs in parallel UDFs.

**Note that a face ID or cell ID by itself does not uniquely identify the face or cell. A thread pointer is always required along with the ID to identify the thread to which the face (or cell) belongs.
h.iraji is offline   Reply With Quote

Reply

Tags
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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 18:22
AMI speed performance danny123 OpenFOAM 21 October 24, 2020 05:13
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
Courant number blowing up, non-orthogonal mesh? odellar OpenFOAM Running, Solving & CFD 5 October 22, 2013 20:50
[Commercial meshers] Converting meshes that includes interfaces ham OpenFOAM Meshing & Mesh Conversion 29 January 8, 2007 09:58


All times are GMT -4. The time now is 03:30.