CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for multiples heterogenous reactions

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 18, 2021, 11:54
Default UDF for multiples heterogenous reactions
  #1
New Member
 
Jorge Rodríguez
Join Date: Oct 2021
Posts: 10
Rep Power: 4
JERC_UTFSM is on a distinguished road
Hello, I am currently working on a UDF for the heterogeneous reaction using it to describe a simple equilibrium model using the Antoine equation and vapor pressure. I am using the UDF of the Ansys Manual Book as a base for what I intended, but I am trying to incorporate a second component to my condensable mixture, being methanol and water.

By now, I am having trouble with how to filter by name the rate of the reaction on my UDF. I tried to use the same line I've seen in multiples volumetric reactions UDF which is...

Quote:
if (STREQ(rr->name, "net-reaction-1"))
But I am having this error when I try to compile...

Quote:
error: member reference base type 'real' (aka 'double') is not a structure or union
I am pretty sure the line I was using can't be used, so I am trying to find a way to filter by the name of the heterogeneous reaction but I am having trouble finding how to do it.

Also, I am having a few warnings which I am having trouble understanding...

Quote:
warning: incompatible redeclaration of library function 'strncasecmp' [-Wincompatible-library-redeclaration]
int strncasecmp (const char *, const char *, int);

warning: cast to 'void * __ptr32' from smaller integer type 'unsigned long' [-Wint-to-void-pointer-cast]
return((void * POINTER_32) (unsigned long) (ULONG_PTR) p);

clang-cl: warning: argument unused during compilation: '/Za' [-Wunused-command-line-argument]
Any kind of help is deeply appreciated.

PSAT_UDF_1.c
JERC_UTFSM is offline   Reply With Quote

 


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
does Hyperthreading affect the application of UDF? SJSW Fluent UDF and Scheme Programming 11 October 10, 2018 22:28
How are chemical reactions stored after parsing? DanielW OpenFOAM Programming & Development 3 June 7, 2018 14:39
udf for valve closing a pipe using dynamic mesh chem engineer Fluent UDF and Scheme Programming 2 May 13, 2017 09:39
Fluent Radiation/porous media Schmitt pierre-Louis FLUENT 26 September 1, 2016 10:29
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29


All times are GMT -4. The time now is 14:45.