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

Retrieve value of Scheme variable in TUI command

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2019, 12:49
Default Retrieve value of Scheme variable in TUI command
  #1
New Member
 
Mark Lytell
Join Date: Apr 2019
Location: Chicago area
Posts: 4
Rep Power: 2
lytemar is on a distinguished road
Hi,
I couldn't seem to find an answer to this particular type of problem. So here goes...
In a Fluent Journal, I would like to define a string constant that contains the root name of the case file so that I can use the same string in other TUI commands, e.g., setting the root name for auto-save, etc.. This is what I did:

; define the case/data file name root
(define casedatfileroot "./mdl-name-shell-cond-transient")
; define the case file path
(define casefilepath (string-append casedatfileroot ".cas.gz"))

These variables are defined, but when I try to read in the case file, using this command,

/file/read-case (rpgetvar 'casefilepath)

I get the errors:
Error: File "(rpgetvar" not found!
Error Object: #f
invalid command ['casefilepath)]

This is using Fluent 2019R3. Can someone please help me? The ANSYS documentation is essentially non-existent for this.
lytemar is offline   Reply With Quote

Old   November 8, 2019, 14:59
Default
  #2
Senior Member
 
Lucky Tran
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 3,567
Rep Power: 44
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Filenames are not evaluated in the text prompt system, they are the only exception.

Quote:
Originally Posted by lytemar View Post
/file/read-case (rpgetvar 'casefilepath)
I get the errors:
Error: File "(rpgetvar" not found!
Error Object: #f
invalid command ['casefilepath)]
Fluent is looking for a file named (rpgetvar because this text is not being evaluated.


Here is a link to the non-existent documentation.
LuckyTran is offline   Reply With Quote

Old   November 8, 2019, 16:29
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, so this is not possible? That's a bummer.
lytemar is offline   Reply With Quote

Reply

Tags
fluent, scheme language, tui command

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
How to save /adjoint/observable/evaluate result to scheme variable? ProBioticum Fluent UDF and Scheme Programming 5 October 8, 2019 09:55
[PyFoam] PyFoam 0.6.9 wrong path to gnuplot klausb OpenFOAM Community Contributions 5 March 15, 2018 15:28
I need help for TUI command ringtail FLUENT 3 September 8, 2010 11:31
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas Main CFD Forum 1 May 30, 2008 05:35
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


All times are GMT -4. The time now is 10:26.