TAGGED: named-expressions, tui
-
-
October 29, 2021 at 8:26 amrobR_CFDSubscriber
Hello Amazing Fluent Friends,
I use TUI scripts to set up cases for runs on a remote HPC.
I would like to be able to use a named expression to control the flow velocity at the inlet.
For example, varying the velocity with the Y-Axis coordinate - say velocity = "some constant" * Y-coord
I have found the command:
define/named-expression/add
but I do not understand how to form the actual expression in the next step.
Hopefully there is someone out there who can help!
Thanks
Rob
October 29, 2021 at 11:14 amRobForum ModeratorBuild a simple case locally and use that to experiment. Can you set up a model locally using the GUI and then send it to the cluster? TUI scripts are incredibly powerful but do require a higher level of experience to use well.
October 30, 2021 at 1:27 amrobR_CFDSubscriberHey 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
November 1, 2021 at 2:11 pmRobForum ModeratorSounds good, thank you. We'll check it, and it'll give me something else to prod the back end team with for a solutions/publications section.
November 2, 2021 at 4:13 amrobR_CFDSubscriberHey rob def did the trick.
a few examples in the back of the tui manual would be helpful!
November 9, 2021 at 1:29 pmRobForum ModeratorThere is a short lecture on the ALH too - I wrote it!
Viewing 5 reply threads- The topic ‘Named Expression Syntax for TUI Script’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- How do I get my hands on Ansys Rocky DEM
- Non-Intersected faces found for matching interface periodic-walls
- Fluent fails with Intel MPI protocol on 2 nodes
- Unburnt Hydrocarbons contour in ANSYS FORTE for sector mesh
- Help: About the expression of turbulent viscosity in Realizable k-e model
- Cyclone (Stairmand) simulation using RSM
- Mass Conservation Issue in Methane Pyrolysis Shock Tube Simulation
- Script Error
- Facing trouble regarding setting up boundary conditions for SOEC Modeling
- convergence issue for transonic flow
Top Contributors-
1602
-
602
-
599
-
591
-
366
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-