|
[Sponsors] |
How to use Fluent Scheme to change the boundary condition defined by UDF |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 4, 2020, 13:07 |
How to use Fluent Scheme to change the boundary condition defined by UDF
|
#1 |
New Member
Ge
Join Date: Feb 2020
Posts: 8
Rep Power: 6 |
Hi all,
I know there are some discussion on how to use Fluent Scheme to change boundary condition and I followed their instructions and made it work. Now the only question I have is if I define the boundary condition using UDF (DEFINE_PROFILE()) then what the format of the scheme should be? The scheme file I wrote is as the following (define (changeboundary) (cond ((and (>= (rpgetvar 'flow-time) 0.001) (<= (rpgetvar 'flow-time) 0.002)) (ti-menu-load-string "define/boundary-conditions/zone-type 10 wall")) (else (ti-menu-load-string "define/boundary-conditions/zone-type 10 mass-flow-inlet") (ti-menu-load-string "define/boundary-conditions mass-flow-inlet 10 mass_flow y")) ) ) where "mass_flow" is my UDF name. I tried several times by executing the scheme file at each time step but it looks like Fluent did not recognize the UDF I used to define the boundary. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fluent change boundary condition type using Scheme syntax in journal file | lytemar | Fluent UDF and Scheme Programming | 4 | April 28, 2022 03:13 |
Error - Solar absorber - Solar Thermal Radiation | MichaelK | CFX | 12 | September 1, 2016 06:15 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
Problem in setting Boundary Condition | Madhatter92 | CFX | 12 | January 12, 2016 05:39 |
asking for Boundary condition in FLUENT | Destry | FLUENT | 0 | July 27, 2010 01:55 |