|September 20, 2013, 10:55||
udf for chemical reduction scheme
Join Date: Jul 2009
Posts: 124Rep Power: 8
I am trying to use a reduced scheme mechanism in Fluent. My problem for the moment is to understand if Fluent reads my UDF or not.
The udf is a DEFINE_NET_REACTION_RATE and it is calling a subroutine written in Fortran.
The UDF (rate_driver.c) :
DEFINE_NET_REACTION_RATE(boivin_4_steps, c, t, particle, p, temp, yi, rr, jac)
ckwyp_( n, p, temp, yi, rr );
The ckwyp subroutine (boivin_4_steps.f):
subroutine ckwyp(P, T, Y, WDOT)
IMPLICIT DOUBLE PRECISION (A-H, O-Z), INTEGER (I-N)
DIMENSION Y(*), WDOT(*)
DIMENSION XM(IREAC), RF(IREAC), RB(IREAC), W(IREAC), WT(KK)
DATA WT/2.016, 1.008, 31.999, 18.015, 34.015, 28.013/
So my question is : are my variables correctly declared? I'm a bit confused with C/Fortran...Written like this, does the DEFINE_REACTION_NET_RATE really calls the ckwyp subroutine?
When compiling and loading the UDF, I have no problem (I've build the libudf directories (src, lnamd64, 2ddp ...), then put the correct makefile.udf and makefile.udf2 in the good directories....then compiled the fortran program with g77 ... then command make "FLUENT_ARCH"=lnamd64 ....no problem and no errors with that. But when my case runs in Fluent, I don't know if it really takes the UDF into account: my flame stops burning after 100 iterations...
Any advice would be really nice !!!
Thanks a lot
|fortran, reducted scheme, udf|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Communication between UDF and Scheme||3DmaniacSLDWRKS||Fluent UDF and Scheme Programming||0||August 16, 2011 12:54|
|2nd order upwind scheme (Fluent and CFX)||Far||FLUENT||0||May 22, 2011 01:50|
|How to combine UDF and Scheme?||ali hemmati||Fluent UDF and Scheme Programming||3||March 19, 2011 15:45|
|how to understand high resolution scheme and high order scheme||iilw1314||Main CFD Forum||3||September 30, 2010 10:43|
|Implementation of QUICK scheme||Romuald Skoda||Main CFD Forum||10||August 3, 2010 12:23|