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

Workbench Parameters in UDFs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2023, 08:57
Default Workbench Parameters in UDFs
  #1
New Member
 
Marc
Join Date: Sep 2023
Posts: 11
Rep Power: 3
alphaNOVA is on a distinguished road
Hi, im using a UDF to gradually rise the pressure of a bc from a start value to an end value. Start and End value are parameters in Workbench.
In oder to get them into the UDF i go to input parameters - use in scheme - and set the following command for both the start and the end parameter (of workbench): (lambda (param) (rpsetvar 'pstart param))

This works fine when i set it up and then press update - but when i change the design point (upstream mesh changes, pstart and pend stays the same) it does not work anymore (looks like the values dont get passed into the udf anymore resulting in the pressure being zero). (Solution monitoring also tells me it could not find pstart and pend (so the variables the udf tried RP_Get_Real) - i just dont have a clue why it doesnt find them anymore when it worked in the previous run before i switched design points

Anyone having an idea what i did wrong or a tip what to look out for when using UDFs with WOrkbench parameters?
alphaNOVA 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
[Workbench] Changing Spaceclaim Scripting Parameters with Workbench konahowler ANSYS Meshing & Geometry 0 May 28, 2020 04:25
Pro/E to ANSYS Parameterization Guide Trues ANSYS 4 April 18, 2018 06:52
Interepreted Vs. Compiled UDFs Antonis Fluent UDF and Scheme Programming 10 March 22, 2018 12:15
CFX problems I got in Workbench Anna Tian CFX 13 July 3, 2017 02:49
workbench fails to update parameters madans CFX 0 March 6, 2016 13:48


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