|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Join Date: Aug 2021
Posts: 65
Rep Power: 6 ![]() |
I have the following scheme script:
(do ((x 1 (- x 0.2))) ((< x -2)) (ti-menu-load-string (format #f "display/objects/edit velocity-contour surfaces-list (z=~a) ()" x)) (format #f "/display/objects/display velocity-contour") (set! x (* x 1000)) (ti-menu-load-string (format #f "/display/save-picture ./pictures/velocity-contour-z=~a" x)) (set! x (/ x 1000)) ) which breaks because after (z=~a) the () doesn't do anything. It continues thinking I'm entering a surface name, so the rest of the commands are entered as the string. I have spammed () everywhere, tried q, nothing works. Wtf is going on? |
|
|
|
|
|
|
|
|
#2 |
|
Member
Join Date: Aug 2021
Posts: 65
Rep Power: 6 ![]() |
||
|
|
|
|
|
|
|
#3 |
|
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,843
Rep Power: 68 ![]() ![]() ![]() |
The error is saying z=0 isn't a valid surface, not that () doesn't work in scheme
|
|
|
|
|
|
|
|
|
#4 | |
|
Member
Join Date: Aug 2021
Posts: 65
Rep Power: 6 ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#5 |
|
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,843
Rep Power: 68 ![]() ![]() ![]() |
So you have proved that the error was not () not working in scheme, great!
You are using a formatted string, and if you look, you actually printed what you interpreted as two scheme commands as one line |
|
|
|
|
|
|
|
|
#6 | |
|
Member
Join Date: Aug 2021
Posts: 65
Rep Power: 6 ![]() |
Quote:
|
||
|
|
|
||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FLUENT Scheme to get Contour names as a list | anan12345 | Fluent UDF and Scheme Programming | 1 | February 2, 2022 20:32 |
| can you tell me best gradient, pressure & momentum order selection in fluent | sanjiiv | FLUENT | 6 | February 14, 2020 07:07 |
| LimitedCubic scheme does not work | haoyuan | OpenFOAM | 0 | August 11, 2017 11:37 |
| friction forces icoFoam | ofslcm | OpenFOAM | 3 | April 7, 2012 11:57 |
| RP_Get_Real and the scheme list! | Kamal | FLUENT | 1 | December 2, 1999 22:53 |