Ansys Learning Forum › Forums › Discuss Simulation › Fluids › Named Expression Syntax for TUI Script › Reply To: Named Expression Syntax for TUI Script
October 30, 2021 at 1:27 am
robR_CFD
Subscriber
Hey Rob
Thanks for the response. Not exactly what I am looking for.... I've been building TUI scripts for a while, just never had the need to handle named-expressions to cater for this sort of variability.
I did some trawling last night and found knowledge resource #2060231.
It has an example....
Answer:
You can use TUI commands within an ANSYS Fluent Journal File, e.g. to change the expression "uprof":
Line 1: /define/named-expressions/edit "uprof" def "x / 1.0 [m]*2.0 [m s^-1]"
so, when I get a chance to play later it looks like what I have been missing is to have the "def" switch and enclose the statement in quotes.
Once I get my research project finished I'm thinking I'll create a TUI tips and hacks page to bridge the gaps on the magic.... Cheers
I did some trawling last night and found knowledge resource #2060231.
It has an example....
Answer:
You can use TUI commands within an ANSYS Fluent Journal File, e.g. to change the expression "uprof":
Line 1: /define/named-expressions/edit "uprof" def "x / 1.0 [m]*2.0 [m s^-1]"
so, when I get a chance to play later it looks like what I have been missing is to have the "def" switch and enclose the statement in quotes.
Once I get my research project finished I'm thinking I'll create a TUI tips and hacks page to bridge the gaps on the magic.... Cheers