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

Create named expression with TUI

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LoGaL

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2021, 04:46
Default Create named expression with TUI
  #1
New Member
 
Join Date: May 2019
Location: I'm a Queenslander
Posts: 28
Rep Power: 7
RobR_CFD is on a distinguished road
Hi Fluent Friends,
I would like to create a named expression to control inlet velocity using TUI for a script for submitting case setup to HPC.
I can find the text command:

define/named-expression/add

but I cant find guidance on the syntax to form the expression.

I would like to say vary velocity with height in the y axis direction,
eg V = F(y-coord)

Anyone got a handle on this?

Thanks
RobR_CFD is offline   Reply With Quote

Old   October 29, 2021, 15:25
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
y-position is what you're looking for. Would be nice if you told us what is the function to help you with the rest...


But honestly it's way easier and intuitive to do this in the interactive GUI on a dummy case and then copy-paste it into your script for the grid.
LuckyTran is offline   Reply With Quote

Old   October 29, 2021, 22:34
Default
  #3
New Member
 
Join Date: May 2019
Location: I'm a Queenslander
Posts: 28
Rep Power: 7
RobR_CFD is on a distinguished road
Hey LuckyTran,
It seems everyone wants to jump to what they think I'm asking instead of taking the time to simply answer the basic question....
The equation is irrelevant.
The question is how about how the equation is written - eg is it in quotes, is it in square brackets, does it need curly brackets, does it need some other switch after the "add" command to make it work.
If I could get a simple answer out of that without being belittled by geniuses out there would be more helpful.
If I wanted and had the time to try trial and error endlessly on some expensive software that has poor documentation, I wouldn't bother with an online forum which is proving just as much time wasting.
RobR_CFD is offline   Reply With Quote

Old   October 30, 2021, 08:42
Default
  #4
Senior Member
 
Lorenzo Galieti
Join Date: Mar 2018
Posts: 375
Rep Power: 12
LoGaL is on a distinguished road
your skill in writing fluent equations with the TUI rivals your politeness I see
RobR_CFD likes this.
LoGaL is offline   Reply With Quote

Old   October 30, 2021, 15:49
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The only thing I have assumed is that you have not actually attempted anything. Because if you did, you would have found out...

that Fluent accepts strings in double quotes "", single quotes '' and with nothing embedded at all as long as the actual expression is in a valid syntax. And a simple carriage return (i.e. nothing) would be enough to end the command. Let's say you had the belief that Fluent wanted you to put it in square brackets. And you had attempted this. Then you would be asking us why that particular expression did not work, instead of monologue about how

So, like I have said already. This would be much easier if you just did it once using the GUI to see what a valid expression looks like. Indeed the actual equation is irrelevant. My answer tells you exactly how to get the expression. Fluent will give you the expression! You do not need to do any thinking at all. The answer is right in front of you, and yet you preach here about how we are not helping. You already have the solution to the preposed question you are asking.

I am glad to waste your time even further if you would like. I too, am an adept keyboard warrior.
LuckyTran is offline   Reply With Quote

Old   October 31, 2021, 17:38
Default
  #6
New Member
 
Join Date: May 2019
Location: I'm a Queenslander
Posts: 28
Rep Power: 7
RobR_CFD is on a distinguished road
you could also have said nicely to put "def" in front of the quotes keyboard warrior. At least you didn't ask if I'd bothered to plug the PC in like most desktop support. You obviously have way too much time on your hands to bother with above saga.
RobR_CFD is offline   Reply With Quote

Reply

Tags
named-expression, tui


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
[ANSYS Meshing] Edit and create named selections of an imported PLOT3D MEsh aero_cfd ANSYS Meshing & Geometry 0 December 14, 2016 07:30
[GAMBIT] How to plot S pipe mariam.sara ANSYS Meshing & Geometry 36 November 7, 2013 16:22
Error in recompiling the solver m.maneshi OpenFOAM Running, Solving & CFD 0 August 28, 2010 15:14
Actuator disk model audrich FLUENT 0 September 21, 2009 08:06
Where's the singularity/mesh flaw? audrich FLUENT 3 August 4, 2009 02:07


All times are GMT -4. The time now is 15:01.