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

Fluent change boundary condition type using Scheme syntax in journal file

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2019, 19:08
Default Fluent change boundary condition type using Scheme syntax in journal file
  #1
New Member
 
Mark Lytell
Join Date: Apr 2019
Location: Chicago area
Posts: 4
Rep Power: 2
lytemar is on a distinguished road
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?
lytemar is offline   Reply With Quote

Old   Yesterday, 00:09
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,001
Rep Power: 17
AlexanderZ will become famous soon enough
(ti-menu-load-string (format #f "define boundary-conditions modify-zones zone-type ~a wall" (%rpgetvar 'outlet/water)))
lytemar likes this.
__________________
best regards


******************************
press LIKE if this message helped you

How to ask questions:
https://www.cfd-online.com/Forums/site-help-feedback-discussions/175429-guide-how-ask-question-forums.html#post612025
AlexanderZ is offline   Reply With Quote

Old   Yesterday, 10:41
Default
  #3
New Member
 
Mark Lytell
Join Date: Apr 2019
Location: Chicago area
Posts: 4
Rep Power: 2
lytemar is on a distinguished road
Thanks. Looks like I need to learn the Scheme language and how it works with Fluent.
lytemar is offline   Reply With Quote

Reply

Tags
fluent, scheme, scheme programming, tui

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 11 November 1, 2016 07:43
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23


All times are GMT -4. The time now is 16:52.