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

Who can tell me what does the "0" represent for in the below sentence?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2020, 13:26
Default Who can tell me what does the "0" represent for in the below sentence?
  #1
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 10
hitzhwan is on a distinguished road
Who can tell me what does the "0" represent for in the below sentence?

There are three arguments to C_UDMI: c, thread, and i. c is the cell identifier, thread is a pointer to
the cell thread, and i is an integer index that identifies the memory location where data is to be stored.
An index i of 0 corresponds to user-defined memory location 0 (or User Memory 0).
hitzhwan is offline   Reply With Quote

Old   November 18, 2020, 16:23
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
0 is the number before 1.
It's just a number, nothing else. Fluent starts counting at zero, so the first UDM you add will get number 0.
pakk is offline   Reply With Quote

Old   November 18, 2020, 16:55
Default Hi, pakk, thank you so much for your help. I know it now. I have another question abo
  #3
Senior Member
 
Join Date: Dec 2017
Posts: 388
Rep Power: 10
hitzhwan is on a distinguished road
Quote:
Originally Posted by pakk View Post
0 is the number before 1.
It's just a number, nothing else. Fluent starts counting at zero, so the first UDM you add will get number 0.
Hi, pakk, thank you so much for your help. I know it now. I have another question about how to define the gradient of the volume fraction by udf codes in two-phase flow simulation ? I searched a lot, but I do not find it.
hitzhwan is offline   Reply With Quote

Reply

Tags
c_udmi


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
Serrated Fin Vs Straight Fin - CHT Problem - Results Making No Sense Andrew Norfolk CFX 13 September 27, 2016 15:39
Radiator Fin simulation with porous media Kadirgg FLUENT 1 July 31, 2013 12:02
The problem of inner iteration when calling the subroutine guoxj CFX 18 October 23, 2010 21:37
Fin inside supersonic flow Liol Calvert FLUENT 8 March 22, 2010 10:31
Straight fin of unform cross section Agovale46 FLUENT 0 September 30, 2009 09:52


All times are GMT -4. The time now is 17:24.