|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: May 2021
Posts: 2
Rep Power: 0 ![]() |
Hello,
I recently wrote a quick script (attached below) to generate a number of lines across my domain. However, when I read this script in Fluent, the do loop is evaluated indefinitely - beyond the specified range. I've run the code in a scheme IDE and it works as I expect it to, so I think the error is due to Fluent's implementation of the code. I was hoping someone could give me some insight into this matter and a few related questions: 1. When the loop was running, I tried to interrupt it with "ctrl+c" as suggested, but this did not work. Is there an updated way to pause a process through the Fluent terminal? 2. Does anyone have any suggestions on how to output the, say z-velocity, along each line into a single file? Thank you very much! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 35 ![]() ![]() |
Code:
(do ((n 0 (+ n 1))) ((> n N)) (begin (define x (+ x0 (* n dx))) (Ti-menu-load-string (format #f "surface/line-surface l=~ah=~a ~a ~a ~a ~a ~a ~a" x z x y0 z x y1 z)) ) ) (Ti-menu-load-string (format #f "surface/line-surface l=~ah=~a ~a ~a ~a ~a ~a ~a" x z x y0 z x y1 z))
__________________
best regards ****************************** press LIKE if this message was helpful |
|
![]() |
![]() |
![]() |
Tags |
do loop, scheme file |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Nested loop macro question in tecplot | Rannnnnnnn | Tecplot | 1 | January 4, 2021 14:20 |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 02:09 |
awk script question | awk script question | Main CFD Forum | 0 | March 28, 2005 02:06 |
question for MILES with TVD-MUSCL scheme. | CFDnet | Main CFD Forum | 1 | February 13, 2005 17:07 |
Question on Sediment Mass Conservation Scheme | Wen Long | Main CFD Forum | 0 | July 6, 2004 15:45 |