|
[Sponsors] |
Fluent change boundary condition type using Scheme syntax in journal file |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Mark Lytell
Join Date: Apr 2019
Location: Chicago area
Posts: 4
Rep Power: 7 ![]() |
I have a pressure-outlet BC called "outlet-postchill" that I would like to change to a wall from within a journal file after some amount of flow time. I created a couple variables for the name of the BC using:
(make-new-rpvar 'outlet_wtr "postchill" 'string) (make-new-rpvar 'outlet/water (string-append "outlet-" (%rpgetvar 'outlet_wtr)) 'string) Both of these together make the string "outlet-postchill" When I try the TUI command "/define/boundary-conditions/modify-zones zone-type (%rpgetvar 'outlet/water) wall" I get the following errors: Error: get-thread: invalid thread id (integer) or name (symbol) Error Object: 'outlet/water invalid command [wall] I would like to do this using Scheme, but I don't know the syntax. I tried "(define boundary-conditions modify-zones zone-type (%rpgetvar 'outlet/water) wall)" but that didn't work either. Can someone please help with the syntax for this? I have many of these operations to do at certain flow times? |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 ![]() ![]() |
(ti-menu-load-string (format #f "define boundary-conditions modify-zones zone-type ~a wall" (%rpgetvar 'outlet/water)))
__________________
best regards ****************************** press LIKE if this message was helpful |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Mark Lytell
Join Date: Apr 2019
Location: Chicago area
Posts: 4
Rep Power: 7 ![]() |
Thanks. Looks like I need to learn the Scheme language and how it works with Fluent.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 119
Rep Power: 10 ![]() |
Hi, did you find how to change the boundary conditions from outlet to wall?
I have to do this for some different bpundaries. Change the boundary conditions of each one in different types and the go back to the other. change outlet-wall-outlet-wall-outlet--- etc |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 ![]() ![]() |
you can control boundary conditions type using TUI commands
also, you can put TUI commands in journal file and execute it
__________________
best regards ****************************** press LIKE if this message was helpful |
|
![]() |
![]() |
![]() |
Tags |
fluent, scheme, scheme programming, tui |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 03:30 |
SparceImage v1.7.x Issue on MAC OS X | rcarmi | OpenFOAM Installation | 4 | August 14, 2014 06:42 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 11:44 |
Version 15 on Mac OS X | gschaider | OpenFOAM Installation | 113 | December 2, 2009 10:23 |