|
[Sponsors] |
Contours of custom surface rate (UDF and UDM) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 5, 2016, 11:30 |
Contours of custom surface rate (UDF and UDM)
|
#1 |
New Member
Join Date: Nov 2011
Location: Argentina
Posts: 1
Rep Power: 0 |
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; } |
|
Tags |
contour plot, surface reaction udf, udf customize, udmi, user defined memory |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Segmentation violation | louiza | FLUENT | 16 | June 27, 2017 15:41 |
calculating cell edge length in 2D and call UDM into other udf code | pibea | Fluent UDF and Scheme Programming | 0 | November 30, 2014 05:27 |
Help! Delete the UDM codes in the UDF | Messi | Fluent UDF and Scheme Programming | 2 | January 28, 2014 09:01 |
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 |