February 11, 2025, 06:23
|
Setting a user-defined wall function in the TUI
|
#1
|
New Member
Join Date: Feb 2025
Posts: 1
Rep Power: 0
|
Hi everyone!
I would like to ask for your help with setting a user-defined wall function through TUI commands in FLUENT (version 2023 R1).
I have a UDF that compiles without errors and contains a custom wall function using the DEFINE_WALL_FUNCTIONS macro. While I can set this to be used with the k-epsilon models from the GUI manually (Models>Viscous>Near-Wall Treatment>User-Defined Wall Functions), I cannot seem to do it in the TUI. If I try the command "define/models/viscous/near-wall-treatment/user-defined-wall-functions? y", I get the following error message:
Warning: User-Defined Wall Functions require UDF for Law-of-the-Wall.
Resetting near-wall treatment to default (Standard Wall Function)...
Error: api-set-var: the object is invalid
Error Object: ()
Again, I would like to emphasize that the UDF compiles with no errors, I can set the wall function through the GUI manually and it functions as expected. The issue seems to be exclusive to the TUI. Even though this technically works, I have to run a large number of simulations and would like to automate the process using journal files.
|
|
|