|
[Sponsors] |
February 5, 2022, 03:37 |
G-Equation UDF
|
#1 |
New Member
Matteo
Join Date: Jan 2022
Posts: 3
Rep Power: 4 |
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. |
|
February 7, 2022, 16:06 |
|
#2 |
Senior Member
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 9 |
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, |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent do not use my velocity field(by UDF) to solve energy equation | tangleiplus | Fluent UDF and Scheme Programming | 6 | January 21, 2019 22:28 |
Domain Reference Pressure and mass flow inlet boundary | AdidaKK | CFX | 75 | August 20, 2018 06:37 |
write code UDF Fluent solve kinetic reaction rate equation palm oil | zirkov | FLUENT | 0 | February 13, 2017 11:16 |
Definition of energy equation using UDF | aestas | Fluent UDF and Scheme Programming | 15 | April 28, 2015 04:33 |
solve an implicit equation in UDF | Rui_27 | Fluent UDF and Scheme Programming | 0 | September 8, 2014 11:12 |