|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Etienne
Join Date: Mar 2013
Posts: 2
Rep Power: 0 ![]() |
Hello everybody,
I'm new to fluent 6.3.26, and so far, this forum helped me so much! But on this one, I can't find any answer anywhere! So here's the deal : I'm currently learning how to code in scheme language, and how to handle the text user interface in the same time. And I dont find how to call in a journal (text user interface language) a string variable. Code:
(define name "my_project") (define path "C:\my_path\") (define path_transcript (string-append path name "_transcript.txt")) /file/start-transcript path_transcript I tried : (display path_transcript) (write path_transcript) But none of these worked! ![]() NB : another thing, I noticed that I couldn't end a string charactere with "\"... ? Which of course is kind of annoying when you have to set up directories of your computer... Any clue on that one? If you have any hints, I'd really appreciate! Thank you and have a nice day! |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Aug 2011
Posts: 117
Rep Power: 6 ![]() |
From the experience of other language, you might need to escape your backslash, e.g.
(define path "C:\\\\my_path\\") |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Etienne
Join Date: Mar 2013
Posts: 2
Rep Power: 0 ![]() |
Since I didn't manage to call a variable using the tui commands, I got around the issue by using the unix command sed (aka stream editor) which is really handy to script in batch for massive search and replaces.
And in the end... I had to escape my slash indeed! So huge thanks, Blackmask, for the idea!
|
|
|
|
|
|
![]() |
| Tags |
| journal file, string, tui |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| emag beta feature: charge density | charlotte | CFX | 4 | March 22, 2011 10:14 |
| How to get TUI journal | ringtail | FLUENT | 5 | July 18, 2010 11:51 |
| How can I convert GUI journal to TUI journal | harry | FLUENT | 3 | July 6, 2010 02:18 |
| error in COMSOL:'ERROR:6164 Duplicate Variable' | bhushas | Main CFD Forum | 1 | May 30, 2008 04:35 |
| Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 20:09 |