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 Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cpassa

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;
}
chinu007 likes this.
cpassa is offline   Reply With Quote

Old   August 13, 2021, 03:32
Default
  #2
New Member
 
Vinay Chandrakar
Join Date: Jun 2019
Location: Mumbai
Posts: 10
Rep Power: 7
chinu007 is on a distinguished road
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
chinu007 is offline   Reply With Quote

Old   August 14, 2021, 14:25
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
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".
pakk is offline   Reply With Quote

Reply

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


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 16:01.