|
[Sponsors] |
January 29, 2016, 20:13 |
Saving array or matrix in UDM
|
#1 |
New Member
Join Date: Jan 2016
Posts: 3
Rep Power: 10 |
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, |
|
January 31, 2016, 23:06 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
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).
|
|
Tags |
array, matrix, udf, udm |
|
|
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 |
[OpenFOAM.org] 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 |