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

How to compile the Scheme code?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2011, 09:17
Default How to compile the Scheme code?
  #1
New Member
 
Joey
Join Date: Jan 2011
Posts: 6
Rep Power: 15
fluentuser1 is on a distinguished road
I am very new to Scheme. I have written some scheme code. I want to compile my code into bin files. How can I compile it into bin files? Any information will be appreciated. Thanks in advance.
fluentuser1 is offline   Reply With Quote

Old   January 6, 2011, 12:43
Default
  #2
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Check this: http://www.gnu.org/software/mit-sche...ion-Procedures
and let us know about your findings!
dmoroian is offline   Reply With Quote

Old   January 6, 2011, 20:57
Default
  #3
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 19
DoHander is on a distinguished road
Hello,
what is your intention with your Scheme code ? Are you going to use this as a standalone program ? If yes, then you can pick from a large variety of Scheme implementations that will let you generate executables (MIT Scheme, Chicken Scheme etc ...). In general a Scheme compiler will generate under the hood C code which will be compiled to machine code.

However if you want to use your Scheme code in Fluent you need to load your code in Fluent and this will interpret the code for you. I don't think you will be able to easily link with Fluent a compiled binary Scheme code (maybe I'm wrong).

Do
DoHander is offline   Reply With Quote

Old   January 7, 2011, 01:29
Default
  #4
Senior Member
 
Join Date: Feb 2010
Posts: 164
Rep Power: 17
gearboy is on a distinguished road
Quote:
Originally Posted by dmoroian View Post
Check this: http://www.gnu.org/software/mit-sche...ion-Procedures
and let us know about your findings!
I have tried MIT scheme. It can generate .bin file, but this type of bin file can't be identified by FLUENT. It seems that FLUENT bin scheme library is not compiled by MIT scheme.
gearboy is offline   Reply With Quote

Old   January 7, 2011, 11:09
Default
  #5
New Member
 
Joey
Join Date: Jan 2011
Posts: 6
Rep Power: 15
fluentuser1 is on a distinguished road
I have got some bin file from our colleague who had left before I came to our group. These files could be load into Fluent and excuted. But I don't know how they are compiled. When I open these files with text editor, I get lots of disordered data and text. I want to know how can the scheme code be compiled into a bin file and how can the bin file be loaded into Fluent. I suppose that there must a command or something that could compile the scheme code.
And, I have test the FASL file, but it can not be loaded into Fluent. Anybody can help us?
fluentuser1 is offline   Reply With Quote

Old   January 7, 2011, 12:50
Default
  #6
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 19
DoHander is on a distinguished road
You don't actually need to compile a Scheme code into bin in order to run this in Fluent. Normally you will write your scheme code in a text file, the file must have .scm as extension.
After that you can load the Scheme macro in Fluent (from the File menu if I remember correctly). You don't need to compile anything. Just load your scm file.

(By "bin" files you mean binary files or files with .bin extension ?)

Do
DoHander is offline   Reply With Quote

Old   January 8, 2011, 09:34
Default
  #7
New Member
 
Joey
Join Date: Jan 2011
Posts: 6
Rep Power: 15
fluentuser1 is on a distinguished road
I am very new to scheme. By "bin file" I mean I found a file with .bin extension, and it could be loaded into fluent with scheme command. When I opened it with text editor, I got much disordered data and words. So what is that file with .bin extension? How can I make my scheme code to the .bin file? ( I am sure the .bin file was made of scheme code by our former colleague).

Thanks!

Joe
fluentuser1 is offline   Reply With Quote

Old   January 9, 2011, 10:18
Default
  #8
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 19
DoHander is on a distinguished road
Can you upload the bin file here ?

Do
DoHander is offline   Reply With Quote

Old   July 21, 2011, 15:46
Default
  #9
Member
 
fox000002's Avatar
 
Join Date: Apr 2009
Posts: 46
Rep Power: 17
fox000002 is on a distinguished road
The bin files must be FASL files.

The file format is scheme implemention dependent.
fox000002 is offline   Reply With Quote

Reply

Tags
compile, scheme


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 make code run in parallel? cwang5 OpenFOAM Programming & Development 1 May 30, 2011 04:47
Open Source Vs Commercial Software MechE OpenFOAM 28 May 16, 2011 11:02
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 08:10
Use of an hydrodynamic model integrated in the vertical by the PHOENICS code Hafsia Zouhaier Main CFD Forum 2 March 15, 1999 08:23


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