|
[Sponsors] |
Contours of custom surface rate (UDF and UDM) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 5, 2016, 12: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; } |
|
August 13, 2021, 03:32 |
|
#2 |
New Member
Vinay Chandrakar
Join Date: Jun 2019
Location: Mumbai
Posts: 10
Rep Power: 7 |
Hi Cpassa,
Did you resolve this issue. If yes then I would like to know how you had done done it. Looking for your quick response. Thanks in advance |
|
August 14, 2021, 14:25 |
|
#3 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Cpassa said how to do it: use a UDM. Unfortunately, their UDF does not use any UDM, so we don't know what they tried, and how they failed.
I suggest you do it better: add a UDM to this code, compile it, use it, and share your result (or where it went wrong). It's much easier to help if we can see where it went wrong.
__________________
"The UDF library you are trying to load (libudf) is not compiled for parallel use on the current platform" is NOT the error after compiling. It is the error after loading. To see compiler errors, look at your screen after you click "build". |
|
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 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 |