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

Looping a journal in Scheme programming

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 9, 2014, 17:31
Default Looping a journal in Scheme programming
  #1
New Member
 
Arvind
Join Date: Apr 2014
Location: USA
Posts: 20
Rep Power: 12
Arvind_CFD is on a distinguished road
I am new to scripting in ANSYS Fluent and would like to know if I could record a journal with GUI commands and repeat the set of commands for a specific number of times using a looping structure in scheme. Please let me know how its possible to write a scheme script which repeatedly reads an existing journal file to run the simulations continuously.
Arvind_CFD is offline   Reply With Quote

Old   October 11, 2014, 12:00
Default
  #2
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Here is a scheme loop that would read journal files
jou_1.jou
jou_2.jou
jou_3.jou

scm.scm
Code:
(do ((x 1 (+ x 1))) ((> x 3))
	(ti-menu-load-string (format #f "file read-journal jou_~a.jou" x))
)
In Fluent you do File\Read\Scheme...\scm.scm
macfly is offline   Reply With Quote

Reply


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
journal files and SCHEME Hugo FLUENT 2 October 26, 2017 10:25
Journal for fluent: Scheme programming beguxa Fluent UDF and Scheme Programming 9 October 24, 2017 02:13
Looping through Cell Zones in a Journal File adam.vaccaro Fluent UDF and Scheme Programming 0 August 1, 2013 23:45
Integrating Scheme with a FLUENT journal file Pete Willemsen FLUENT 0 May 19, 2006 18:00
Experimental Repository for UDFs, Journal Files and Scheme Scripts Jonas Larsson FLUENT 0 March 5, 2000 16:36


All times are GMT -4. The time now is 17:06.