|
[Sponsors] |
October 2, 2002, 10:08 |
USER-DEFINED-MEMORY
|
#1 |
Guest
Posts: n/a
|
Dear all,
I have few questions about user-defined-memory. 1. How one can set some initial values, e.g. zero to the user defined memories. Can one use the cell_looping macros provided by Fluent? 2. How many memory locations are available in one user-defined memory block? Does the number of memory locations adjust to the domain , the data of which we shall store in user-defined memory, or is it fixed somehow? Greetings, Varghese |
|
October 4, 2002, 08:11 |
Re: USER-DEFINED-MEMORY
|
#2 |
Guest
Posts: n/a
|
1.
For memory 0, loop example : thread_loop_c (t,d) { begin_c_loop (c,t) { C_UDMI(c,t,0)=0.0; } end_c_loop (c,t) } 2. I don't know what you are meaning. Can you be clearer? |
|
October 4, 2002, 08:54 |
Re: USER-DEFINED-MEMORY
|
#3 |
Guest
Posts: n/a
|
Dear Alexandre,
I used the same in my udf, and found a parse error at this line. Then I used Domain *d; { d=Get_Domain(1); thread_loop_c (t,d) { begin_c_loop (c,t) { C_UDMI(c,t,0)=0.0; } end_c_loop (c,t) } The idea was to get a definition for the variable d in thread_loop_c(c,t). It also doesnot work. I donot know if there is another reason for the compilation error. The second question was about the size of memory allocated when we define a UDM. Can one make sure that it has enough size as to store the variables we define for all the control volumes in the domain we define it? Greetings Varghese |
|
October 8, 2002, 00:26 |
Re: USER-DEFINED-MEMORY
|
#4 |
Guest
Posts: n/a
|
On UDM is liek defining one scalar variable for your probelm - it will allocate memory for one value in every cell of your domain.
Check udf manual for looping macros etc . the above looks ok. Greg |
|
October 8, 2002, 03:49 |
Re: USER-DEFINED-MEMORY
|
#5 |
Guest
Posts: n/a
|
Thank you Greg!
Varghese |
|
November 4, 2002, 12:49 |
Re: USER-DEFINED-MEMORY
|
#6 |
Guest
Posts: n/a
|
Does anyone know if we can only store scalars in UDM? Is there any way to store vector in it, e.g. C_UDMI(c,t,i)[j], or do we have to define seperate UDMs for each component of the vector j. Thanks...
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trouble setting user scalar and user memory names | tstorm | FLUENT | 6 | November 23, 2022 04:58 |
How can I allocate user defined memory? | MASOUD | Fluent UDF and Scheme Programming | 1 | November 20, 2014 03:12 |
user defined sourcen term | xck1986 | CFX | 1 | July 8, 2010 09:35 |
user defined turbulence model | manuutin | STAR-CD | 5 | October 14, 2009 06:29 |
Gradient of a User defined Variable | Ramadas | CFX | 2 | August 21, 2007 10:19 |