CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CONVERGE (https://www.cfd-online.com/Forums/converge/)
-   -   G-Equation UDF (https://www.cfd-online.com/Forums/converge/241021-g-equation-udf.html)

MatFras February 5, 2022 02:37

G-Equation UDF
 
1 Attachment(s)
Hi,
I have a g-equation's udf that I didn't write.

In this udf we want to know the egr values, considering CO2 and H2O. There's a variable, called "egr_frac_custom" that do this.

I need to read that variable and "egr_fraction". I'm using also the UDF post.
When I try to run the simulation, the logout file report this error: "Detected a field variable that is deprecated. UDF is referenceing unknow FIELD variable: EGR_FRAC_CUSTOM. EGR_FRAC_CUSTOM is being set to NULL".

Inside post.in there are both variables. The UDFs are for Converge 3.0.18, and I'm using that version.

How can I solve this error and "export" both the values of egr_frac_custom and egr_fraction with post.c?


Down below I attach all files inside a zip archive.

Thank you.

ksrivast February 7, 2022 15:06

Hello Matteo,

"egr_frac_custom" is not a variable that CONVERGE provides. Its definition is missing from your UDFs. Use the "CONVERGE_variable_register" API routines to register the variable, then the UDFs to assign values to it, which can then be used for your post.c routines.

I would recommend contacting the person who wrote these UDFs for clarification on how to define this custom variable.

Sincerely,


All times are GMT -4. The time now is 06:12.