CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Error: UDf-scheme connectivity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2017, 10:07
Default Error: UDf-scheme connectivity
  #1
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
Hi all,

I started building a GUI for my collection of UDFs, but I'm running into trouble.
I designed the scheme file pretty much analogous to the example in the fluent manual, and that part seems to work. However, when I click OK to start the execute_from_GUI UDF, it gives me an error (UDF was properly compiled).

The error is: ERROR: rpgetvar: MetaUDF/SWITCH_WritePartData: undefined variable.

It seems the following line (and all similar lines after that) isn't working

Code:
if(RP_Get_Boolean("MetaUDF/SWITCH_WritePartData"))
However, the variable has been properly defined in the scheme file. Am I overlooking something to connect the two?
CeesH is offline   Reply With Quote

Old   August 25, 2017, 00:53
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Try using only lowercase letters for variables both in scheme file and UDF.
Code:
MetaUDF/SWITCH_WritePartData -> metaudf/switch_writepartdata
Hope it will help.

Best regards,
Zorin Alexander

Last edited by AlexanderZ; August 25, 2017 at 01:10. Reason: 1
AlexanderZ is offline   Reply With Quote

Old   August 25, 2017, 04:03
Default
  #3
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
It's solved, however the solution was... different.

Apperantly, the issue was not in the rp-variable. the parameter was still included as a definition macro, from previous versions. Of course trying to assign an rp-variable to a macro didn't work out too well.
CeesH 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
how to understand high resolution scheme and high order scheme iilw1314 Main CFD Forum 7 April 12, 2022 13:29
can you tell me best gradient, pressure & momentum order selection in fluent sanjiiv FLUENT 6 February 14, 2020 07:07
Scheme - UDF connectivity: RPgetvar not working CeesH Fluent Multiphase 0 August 24, 2017 08:10
Suitable scheme for node connectivity Simbelmynė Main CFD Forum 1 March 25, 2015 12:01
2nd order upwind scheme (Fluent and CFX) Far FLUENT 0 May 22, 2011 02:50


All times are GMT -4. The time now is 16:29.