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

Contours of custom surface rate (UDF and UDM)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2016, 12:30
Default Contours of custom surface rate (UDF and UDM)
  #1
New Member
 
Join Date: Nov 2011
Location: Argentina
Posts: 1
Rep Power: 0
cpassa is on a distinguished road
Hello everybody,

I want to plot contours of a custom surface reaction rate introduced through a UDF. I know it should be done using defined memory, F_UDMI. I have tried some modifications of the udf routine, still unseccessfully. Can anybody help me on this issue? Thanks!
Below is my UDF:

#include "udf.h"
/************************************************** *********
Custom surface reaction rate UDF
************************************************** **********/
/* CONSTANTS en MKS */
#define LP1 8.4e-5
#define KF 7.e+6
#define densi 1.19

/* Species numbers. Must match order in Fluent panel */
#define ACE 0
#define MET 1
#define NUM_SPECS 3

/* Superficial Reaction (kmol/(m2*s)) */
DEFINE_SR_RATE(my_rate,f,t,r,mw,yi,rr)
{
real ConACE = 1.;
real r1;
ConACE = densi*yi[ACE]/mw[ACE];
r1 =LP1*ConACE/(1.7+KF*ConACE);
*rr = r1;
}
cpassa is offline   Reply With Quote

Reply

Tags
contour plot, surface reaction udf, udf customize, udmi, user defined memory

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Segmentation violation louiza FLUENT 16 June 27, 2017 16:41
calculating cell edge length in 2D and call UDM into other udf code pibea Fluent UDF and Scheme Programming 0 November 30, 2014 06:27
Help! Delete the UDM codes in the UDF Messi Fluent UDF and Scheme Programming 2 January 28, 2014 10:01
Weird problem in my UDF aleisia Fluent UDF and Scheme Programming 1 June 29, 2011 14:17
Please check out my parallelized udf code aleisia Fluent UDF and Scheme Programming 0 June 10, 2011 17:16


All times are GMT -4. The time now is 19:48.