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

Udmi

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2023, 05:36
Default Udmi
  #1
New Member
 
HRSD
Join Date: Jul 2023
Posts: 11
Rep Power: 3
HRSD is on a distinguished road
Hi Dears,
i wrote a UDF which can see in below, in this UDF, after calculating, UDMI value not saved and is zero. please help me for solving this problem.
thank.

begin_c_loop(c,t)
{
inst_tabs = C_T(c,t);
inst_rdot = aprexp * exp((-acte) / (ugc * inst_tabs));
inst_mdot = frho * burn_area * inst_rdot;
C_PROFILE(c,t,i) = inst_mdot;
sum_inst_tabs += inst_tabs;
C_UDMI(c,t,0) = inst_rdot;
}
end_c_loop(c,t)
HRSD is offline   Reply With Quote

Old   July 28, 2023, 01:20
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
if each variable here is defined well no problems should exist
Code:
inst_rdot = aprexp * exp((-acte) / (ugc * inst_tabs));
__________________
best regards


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

Old   July 28, 2023, 08:37
Default Udmi
  #3
New Member
 
HRSD
Join Date: Jul 2023
Posts: 11
Rep Power: 3
HRSD is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
if each variable here is defined well no problems should exist
Code:
inst_rdot = aprexp * exp((-acte) / (ugc * inst_tabs));
thanks for your reply, each variable here is defined well and this udf used to define macro and inst_rdot value write in console in right amount, but value in UDMI is zero.
thank you.
HRSD is offline   Reply With Quote

Old   July 28, 2023, 10:54
Default
  #4
Member
 
Odisha
Join Date: Jan 2020
Posts: 59
Rep Power: 6
Siba11 is on a distinguished road
You have to allocate a memory location inside ansys fluent before you can call C_UDMI macro. See if this helps.
Siba11 is offline   Reply With Quote

Old   July 28, 2023, 13:41
Default
  #5
New Member
 
HRSD
Join Date: Jul 2023
Posts: 11
Rep Power: 3
HRSD is on a distinguished road
Quote:
Originally Posted by Siba11 View Post
You have to allocate a memory location inside ansys fluent before you can call C_UDMI macro. See if this helps.
Hi,
yes, i allocate a memory location inside ansys fluent before compiling udf, but don't save anything.
thank you.
HRSD is offline   Reply With Quote

Reply


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
UDMI and DEFINE_EXECUTE_AT_END MsRuby Fluent UDF and Scheme Programming 2 July 2, 2018 03:43
Running out of UDMI, what can in use to replace it ? Sdvk Fluent UDF and Scheme Programming 0 May 23, 2014 14:16
problems with UDMI... !!! Nady FLUENT 0 May 16, 2007 03:38
Problem with Dissipation rate storage in UDMI Sam FLUENT 0 January 26, 2006 06:19
UDMI error when memorizing Dissipation of TKE Lohen FLUENT 0 June 23, 2005 10:59


All times are GMT -4. The time now is 18:09.