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 Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By p.b+cfd

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 8, 2019, 11: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: 7
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

 

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


All times are GMT -4. The time now is 07:34.