How to give names to udf memory?
In the contour plots C_UDMI(c,t,1) shows contours of user defined memory 1.
But I need this macro should display contours of velocity, temperature volume fraction etc.. How to give name to this macro? Any help would be appreciated |
Use the "Set_User_Memory_Name" function with the following format (read the section in the user's guide on User-Defined Memory for details).
Code:
void Set_User_Memory_Name(int i,char *name); |
Thank you.
Can you help me to solve this? Code:
#include "udf.h" |
That's not how you call functions in C. The format I posted above was of the function declaration. Try the following code to call the function:
Code:
Set_User_Memory_Name(0, "temp_ratio"); Code:
C_UDMI(c,t,temp_ratio)= C_UDMI(c,t,0); |
I replaced but didn't work.. Can you modify?
Code:
#include "udf.h" |
You still have the following line in your code...
Code:
void Set_User_Memory_Name(int i,char *temp_ratio); |
Code:
void Set_User_Memory_Name(int i,char *temp_ratio); |
Does the code do what you want it to do?
If so, it is ok. |
Thank you
Yes. This is the only code.. Here I need to change inlet conditions, temperature values etc.. Code:
#include "udf.h" |
Quote:
Do you want to know if it compiles? Try it. Do you want to know if it does what you want it to do? I don't know, because I don't know what you want it to do. And what do you mean with "declare function as mentioned in the Manual"? Which part of the manual are you referring to? I only have one remark. One thing your code does, is set the name "temp_ratio" to UDM0 many times, where one time is enough. You don't have to put that in the loop, so you can make your code more efficient by putting that line somewhere else. |
Thank you. I just needed the name of that udm-0 in the contour menu. I got it thank you very much.
|
I have one more doubt. Can this udm be read in CFX post?
|
UDM values can be visualised in CFD-Post. Ensure you have saved these values via File > Data File Quantities...
|
Quote:
|
Hi,
Have you read this udm in techplot? |
All times are GMT -4. The time now is 02:32. |