CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > CONVERGE

G-Equation UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2022, 02:37
Default G-Equation UDF
  #1
New Member
 
Matteo
Join Date: Jan 2022
Posts: 3
Rep Power: 4
MatFras is on a distinguished road
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.
Attached Files
File Type: zip udf.zip (30.3 KB, 6 views)
MatFras is offline   Reply With Quote

Old   February 7, 2022, 15:06
Default
  #2
Senior Member
 
ksrivast's Avatar
 
Kislaya Srivastava
Join Date: Sep 2017
Location: Convergent Science, Northville MI
Posts: 165
Rep Power: 8
ksrivast is on a distinguished road
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,
__________________
Kislaya Srivastava
Principal Research Engineer | Applications
CONVERGECFD
ksrivast is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 21:28
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 05:37
write code UDF Fluent solve kinetic reaction rate equation palm oil zirkov FLUENT 0 February 13, 2017 10:16
Definition of energy equation using UDF aestas Fluent UDF and Scheme Programming 15 April 28, 2015 03:33
solve an implicit equation in UDF Rui_27 Fluent UDF and Scheme Programming 0 September 8, 2014 10:12


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