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

Saving array or matrix in UDM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 29, 2016, 19:13
Default Saving array or matrix in UDM
  #1
New Member
 
Join Date: Jan 2016
Posts: 3
Rep Power: 10
vucrusader is on a distinguished road
All,

For a user defined scalar function I wish to save cell center values of a given scalar at each iteration (similar to temperature, velocity etc. in fluent). To do so I believe that I have to use a user defined memory allocation. However, Fluent states that I am limited to 500 UDM variables.

If my discretization requires more than 500 cells, how do I save all of them?

Is the UDM variable simply a memory location (like a pointer in c) so that I could save an entire array or matrix in a single UDM variable or will I be able to save only one value (1) to a single UDM?

Regards,
vucrusader is offline   Reply With Quote

Old   January 31, 2016, 22:06
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 18
`e` is on a distinguished road
User-defined memory (UDM) is a real number value stored for each cell. For example, you could store the value of 2*T (temperature doubled) for every cell within one UDM. Have a read of the user-defined memory section in the UDF manual for examples and descriptions of the macros (F_UDMI, C_UDMI etc).
`e` is offline   Reply With Quote

Reply

Tags
array, matrix, udf, udm


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
Segmentation violation louiza FLUENT 16 June 27, 2017 15:41
Saving array or matrix in UDM vucrusader FLUENT 1 January 16, 2017 03:22
Sort Matrix Array in ANSYS Mechanical APDL esehov11 Structural Mechanics 0 January 9, 2016 10:02
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 19:43
OpenFOAM version 1.6 details lakeat OpenFOAM Running, Solving & CFD 42 August 26, 2009 21:47


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