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

UDF to Export Cell Number

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2018, 15:31
Default UDF to Export Cell Number
  #1
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
I have a simple UDF written (DEFINE_EXECUTE_AT_END) to write post-processing data to a text file. In the file, I would like to include the cell number from which the data comes from. Which UDF command/macro will provide the cell number?

Note, I'm using Fluent v182.

Thanks in advance!
M Ridzon
m_ridzon is offline   Reply With Quote

Old   December 12, 2018, 21:19
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may make your own variable "number" and write it

best regards
AlexanderZ is offline   Reply With Quote

Old   December 13, 2018, 09:10
Default
  #3
Member
 
Matt Ridzon
Join Date: Jun 2014
Posts: 91
Rep Power: 11
m_ridzon is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
you may make your own variable "number" and write it
I don't understand. The mesh cells are numbered. I want to know those numbers, not apply my own numbering scheme.
m_ridzon 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
decomposePar no field transfert Jeanp OpenFOAM Pre-Processing 3 June 18, 2022 12:01
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 08:14
Cluster ID's not contiguous in compute-nodes domain. ??? Shogan FLUENT 1 May 28, 2014 15:03


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