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

How to use Fluent Scheme to change the boundary condition defined by UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2020, 13:07
Default 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
heke402 is on a distinguished road
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.
heke402 is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 21:31.