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/)
-   -   Reaction + DEFINE_PROFILE (https://www.cfd-online.com/Forums/fluent-udf/201725-reaction-define_profile.html)

CFDJonas May 9, 2018 04:56

Reaction + DEFINE_PROFILE
 
Hello everybody,

I have the following problem:

I have a surface reaction on my boundaries. That's working. But now I want to add another species and change it's mass fraction according to a simple equation. To do so, I started using the DEFINE_PROFILE macro and set the mass_fraction of this species on the corresponding boundary wall. But that means I had to turn off the reaction. However, the new species is not involved in this reaction and is neither my balancing component.

My workaround till now is to export the profiles on the wall and interior, load them into the case, and use the DEFINE_PROFILE macro. But obviously some interaction/data is lost an this solution using this method.

So now is my question is there any possible way to define the profile (i.e. mass fraction) of a component beside a surface reaction on the same boundary. I had thought about using the DEFINE_ADJUST/DEFINE_EXECUTE_AT_END and looping through the boundary faces setting F_YI. But when I activate the reaction the new component isn't considered anymore in this case. Another thing I thought about (but could not manage to implement yet) is to call the F_PROFILE within one of these macros. But I'm not sure which int i I would have to pass in this case.

Thanks in advance, CFDJonas!


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