CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Saving array or matrix in UDM

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

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

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?

vucrusader is offline   Reply With Quote

Old   January 31, 2016, 23:06
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 16
`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


array, matrix, udf, udm

Thread Tools Search this Thread
Search this Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation violation louiza FLUENT 16 June 27, 2017 16:41
Saving array or matrix in UDM vucrusader FLUENT 1 January 16, 2017 04:22
Sort Matrix Array in ANSYS Mechanical APDL esehov11 Structural Mechanics 0 January 9, 2016 11:02
[] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
OpenFOAM version 1.6 details lakeat OpenFOAM Running, Solving & CFD 42 August 26, 2009 22:47

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