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

Retrieving stored variables

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 14, 2012, 15:33
Default Retrieving stored variables
  #1
Member
 
Join Date: Mar 2011
Posts: 50
Rep Power: 6
cdf_user is on a distinguished road
A few questions about storing and retrieving variables:
What is P_USER_REAL(p,0) used for?
If I have stored a number in C_UDMI(f,t,0), how do i access this memory location later on to compute some other formula

Ex: F = <UDMI number > * mass* a*....

How do I access the memory location so that the number stored in the memory location can be used in the sample formula above?

Any other general explanation regarding the use of user defined scalar variables is appreciated.
cdf_user is offline   Reply With Quote

Old   March 14, 2012, 23:03
Default
  #2
Senior Member
 
Ji Junjie
Join Date: Feb 2010
Location: Shanghai, China
Posts: 106
Rep Power: 7
gearboy is on a distinguished road
Quote:
Originally Posted by cdf_user View Post
A few questions about storing and retrieving variables:
What is P_USER_REAL(p,0) used for?
If I have stored a number in C_UDMI(f,t,0), how do i access this memory location later on to compute some other formula

Ex: F = <UDMI number > * mass* a*....

How do I access the memory location so that the number stored in the memory location can be used in the sample formula above?

Any other general explanation regarding the use of user defined scalar variables is appreciated.
P_USER_REAL is used to store user-defined information related to particle.
C_UDMI(f,t,0) stored value in UDMI-0 on face "f". So when you want to access it, you should first give the parameter "f", telling Fluent which face to access.
gearboy is offline   Reply With Quote

Old   March 14, 2012, 23:27
Default
  #3
Member
 
Join Date: Mar 2011
Posts: 50
Rep Power: 6
cdf_user is on a distinguished road
how many values can UDMI-0 store? 1 or 500?



<clarification of a typo in previous post for other people reading>

Actually it should be C_UDMI(c,t,0) since C_UDMI is use to access or store values of user defined memory in a "cell". So it would require the cell to access it


F_UDMI(f,t,0) is for faces.
cdf_user is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving the values stored in UDM Sri FLUENT 2 March 1, 2007 17:48
PHI file structure Eugene Phoenics 9 November 2, 2001 23:00
Global variables storage in CFX. Fabio Kasper CFX 1 October 6, 2000 08:21
stored variables in ground Dipak Phoenics 1 July 17, 2000 08:48
Saving variables on a user patch with physical coordinates Zoltan Turzo CFX 2 April 20, 2000 15:05


All times are GMT -4. The time now is 09:58.