CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Contours of custom surface rate (UDF and UDM)

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

LinkBack Thread Tools Display Modes
Old   July 5, 2016, 11:30
Default Contours of custom surface rate (UDF and UDM)
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
************************************************** **********/
#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)) */
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


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

Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Segmentation violation louiza FLUENT 15 January 9, 2014 13:57
Weird problem in my UDF aleisia Fluent UDF and Scheme Programming 1 June 29, 2011 13:17
Please check out my parallelized udf code aleisia Fluent UDF and Scheme Programming 0 June 10, 2011 16:16

All times are GMT -4. The time now is 07:11.