CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

change BC-type during calculation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 18, 2021, 08:26
Default change BC-type during calculation
  #1
New Member
 
Join Date: Jul 2019
Posts: 23
Rep Power: 7
ehecboy is on a distinguished road
Hello


I'm trying to change the BC with an execute command.



My command is:



define/boundary-condition/modify-zone/zone-type/outlet/wall


--> my outlet with the name "outlet" should be changed to a wall.


But I'm getting an error:


Invalid zone. zone id/name []
Error: CAR: invalid argument [1]: wrong type [not a pair]
Error Object: #f


Can someone help me?
ehecboy is offline   Reply With Quote

Old   March 18, 2021, 08:51
Default
  #2
New Member
 
Join Date: Jul 2019
Posts: 23
Rep Power: 7
ehecboy is on a distinguished road
Finally I got it:


define/boundary-condition/modify-zone/zone-type outlet wall


But I cant connect it with an if-condition:


(if(= 12 (rpgetvar 'flow-time)) (define/boundary-condition/modify-zone/zone-type outlet wall))


Error: eval: unbound variable
Error Object: define/boundary-condition/modify-zone/zone-type


ehecboy is offline   Reply With Quote

Reply

Tags
execute command


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
[Other] simulation of closing the gate using moving mesh simin_ds OpenFOAM Meshing & Mesh Conversion 8 April 12, 2019 06:49
Modified pimpleFoam solver to MRFPimpleFoam solver hiuluom OpenFOAM Programming & Development 12 June 14, 2015 22:22
SimpleFoam - instable simulation Specialist OpenFOAM Running, Solving & CFD 17 August 12, 2014 05:52
Divergent temperature in chtMultiRegion(Simple)Foam akrasemann OpenFOAM Running, Solving & CFD 13 March 24, 2014 03:54
interFoam/kOmegaSST tank filling with printStackError/Mules simpomann OpenFOAM Running, Solving & CFD 3 February 17, 2014 18:06


All times are GMT -4. The time now is 18:59.