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

Modify UDM name

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2020, 13:06
Default Modify UDM name
  #1
New Member
 
Pedro M Balsalobre
Join Date: May 2020
Posts: 2
Rep Power: 0
pedromarti95 is on a distinguished road
Hi,


I am trying to set the name of my user defined memory to visualize it in postprocessing, i am using Set_User_Memory_Name function, but i always obtain the error: function "Set_User_Memory_Name" not found (pc=299).
I tried adding sg_udms.h, udm.h and sg.h libraries, but is the same.
My code is something like:
.
.
.
C_UDMI(cell,thread,0) = q;
Set_User_Memory_Name(0,"pop");
.
.
.
I also tried the Set_User_Memory_Name function in a DEFINEONDEMAND udf, but i have the same results.


Thanks if you can help,
Regards.


PMB
pedromarti95 is offline   Reply With Quote

Old   May 16, 2020, 16:13
Default UDM name
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Are you interpreting the code or compiling it?
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   May 16, 2020, 16:35
Default
  #3
New Member
 
Pedro M Balsalobre
Join Date: May 2020
Posts: 2
Rep Power: 0
pedromarti95 is on a distinguished road
i am interpreting the code, should i compile it?
pedromarti95 is offline   Reply With Quote

Old   May 18, 2020, 03:05
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
I recommend to put the line you are using in DEFINE_EXECUTE_ON_LOADING macro

Code:
DEFINE_EXECUTE_ON_LOADING(any_name_here, libname)
{
  Set_User_Memory_Name(0,"pop");
}
compile UDF

sometimes you should reload compiled library to make changes in UDM names
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   May 18, 2020, 04:25
Default Compilation
  #5
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
Setting of UDM or UDS names and units require compilation. And also note that names can be set only once. If you want to change names, you have to close Fluent session and start a new one.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Reply

Tags
set_user_memory_name, 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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 06:09
Segmentation violation louiza FLUENT 16 June 27, 2017 15:41
Help! Delete the UDM codes in the UDF Messi Fluent UDF and Scheme Programming 2 January 28, 2014 09:01
Udm nasser FLUENT 0 April 7, 2013 09:19
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


All times are GMT -4. The time now is 16:50.