CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Write UDF to add a sink term for PEM fuel cell design (https://www.cfd-online.com/Forums/fluent-udf/98633-write-udf-add-sink-term-pem-fuel-cell-design.html)

kitrax March 15, 2012 04:56

Write UDF to add a sink term for PEM fuel cell design
 
Hi,

I am currently working on a UDF to write the hydrogen consumption term as a sink for my model.

I have a 3-D geometry and have to define an area of one of the faces. I have to write the UDF such that it automatically reads the dimensions from fluent input rather than hardcoding the dimensions into the UDF (this is to allow for variations in dimensions)

I also wanted to know what marco I should use for defining a sink term

I was thinking DEFINE_NET_REACTION_RATE but I have seen some people use the DEFINE_SOURCE macro.

Any help would be greatly appreciated.


All times are GMT -4. The time now is 07:30.