|
[Sponsors] |
October 2, 2023, 08:57 |
Workbench Parameters in UDFs
|
#1 |
New Member
Marc
Join Date: Sep 2023
Posts: 11
Rep Power: 3 |
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? |
|
|
|
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 |