Tagged: fluent, scripting-journaling, udf-in-fluent
-
-
March 7, 2022 at 1:17 pm
mxmgr
SubscriberHi,
I'm looking for a solution to specify an unit parameter, when I'm working with Fluent from batch in a journal file .
First, I define the parameters process:
def par ip adv ui us "ux" 5.5
def para enable yes
Here, we've got an input parameter "ux", which describes a velocity. Thus, we can see in "Parameters & Customization" --> "Parameters" --> "Input Parameters", the parameter "ux" which takes value (5.5).
It's important to observe that no unit is specified in this parameter, which is a problem for the next command. When I want to apply this parameter in a boundary condition, with these commands :
def bc zt label-1 velocity-inlet
def velocity-inlet label-1 "ux"
thus, we've got these lines on Fluent's console :
Velocity Specification Method: Magnitude and Direction [no] yes
Reference Frame: Absolute [yes] yes
Use Input Parameter for Velocity Magnitude? [no] yes
Name of parameter ["parameter-2"] "ux"
ux value (in [m/s]) [0] 5.5
and this error appears :
Error: 'ux'is predefined expression. Please change name.
Error Object: #f
Fluent commands doesn't recognize the implemented parameters.
Do you have suggestion to fix this issue ?
Best regards,
mxmgr
March 8, 2022 at 2:16 pmRob
Ansys EmployeeIt's easier to define the parameter with the units, so "parameter-2" is 10 [m/s]
I'd also avoid using two letter labels as some are already taken by Fluent for field variables: pick a more distinctive label ie "inlet_param"
For the TUI commands it's also advisable to write them in long hand for journals as it's easier to then review what was written, and use the full syntax.
def bc zt label-1 velocity-inlet
/define/boundary-condition/zone-type label-1 velocity-inlet
Viewing 1 reply thread- You must be logged in to reply to this topic.
Ansys Innovation SpaceEarth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
Trending discussions- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
Top Contributors-
2524
-
2066
-
1279
-
1096
-
457
Top Rated Tags© 2023 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.
-