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

Input Parameters in Fluent Standalone

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2018, 13:10
Default Input Parameters in Fluent Standalone
  #1
Member
 
ishan
Join Date: Oct 2017
Posts: 78
Rep Power: 9
ishan_ae is on a distinguished road
Hello,

I have always wondered what is the use of input parameter when Fluent stand alone( with no connection to Workbench) is used. It has the option of defining a parameter that can be done easily.
However, how do you actually control the parameter value especially if you want to loop over that I/P parameter over multiple values ?
Is there any way one can acess this defined parameter value in TUI ?

For example, let's say that I want to see the effect of inlet flow velocities on a pipe of certain length. To ideally do this, I will define velocity inlet parameter in Fluent(standalone) and enter multiple values so Fluent solves for each individual value. How would I go forward with this ?

One idea(rather a complicated one) is to acess the name of the defined I/P parameter. Once the name of the parameter or its ID has been acessed, it's value an be looped using a 'do' loop in Scheme.
Something like this:-

Code:
 

(do ((parameter start_value ( + parameter increment_value))) ((> x end_value))

(ti-menu-load-string ( format #f "set the parameter value" x)) ; HOW WOULD YOU THE SET THE VALUE 

(ti-menu-load-string (format #f"solve/iterate 10")) ;SOLVE THE SOLUTION WITH THE NEW PARAMETER VALUE

)
Also, I am using Fluent 17.0
ishan_ae is offline   Reply With Quote

Old   April 11, 2018, 16:55
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
In standalone Fluent, it's better to use the TUI commands rather that use the WB scripting language.

If you insist on using parameters you would update a parameter by using:
Code:
/define/parameters/edit "nameofParameter" newValue
The parameter option just gives you a convenient variable to assign as a BC. Really you could just edit the BC's manually in a Fluent .jou and not deal with any parameters. For example this would set the inlet velocity magnitude on a boundary called myInlet to 10 m/s.

Code:
/define/boundary-conditions velocity-inlet myInlet () vmag no 10
Please don't copy and paste this into your .jou because chances are, your case setup is different than mine and needs different inputs. I highly recommend to get familiar with entering text commands in to the Fluent interface. But you can see the commands to update a parameter and change a BC is not very different and doing either requires you to learn how to use the TUI.
lytemar likes this.

Last edited by LuckyTran; April 13, 2018 at 17:36.
LuckyTran is offline   Reply With Quote

Old   April 12, 2018, 09:39
Default
  #3
Member
 
ishan
Join Date: Oct 2017
Posts: 78
Rep Power: 9
ishan_ae is on a distinguished road
Yes. I was thinking the same. A while later I realized that there would not be much of a difference if I looped the BC settings or the parameter values. I will go with looping the parameters since that seems a much striaghtforward way to do. Also, the command for editing the I/P parameters is not long.
ishan_ae is offline   Reply With Quote

Reply

Tags
fluent, parametic study, scheme programming


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
Getting different values for defined input parameters in fluent Sagar7 FLUENT 0 August 29, 2017 14:04
why are the input velocities in profile changed in the fluent after iteration? dhurba FLUENT 0 August 30, 2016 23:12
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
Parameters and Fluent in Ansys 12 Edu-R ANSYS 4 March 21, 2014 11:57
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 23:56


All times are GMT -4. The time now is 23:49.