Write UDF to add a sink term for PEM fuel cell design
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 15:46.|