1 Installing Cantera 1.7, Python 2.5, and Python SDToolbox for Windows J. Ziegler, S. Browne, and J. E. Shepherd Caltech Revised August, 2007.

Slides:



Advertisements
Similar presentations
Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Advertisements

COMPUTER PROGRAMMING Task 1 LEVEL 6 PROGRAMMING: Be able to use a text based language like Python and JavaScript & correctly use procedures and functions.
IMS Client Installation Procedures 1. Copy the Voic Pro from the shared folder on the Voic Pro server. Go to Start, Run, and \\ or \\
1 Installing Cantera 1.6 for Windows S. Browne and J.E. Shepherd Caltech January 2007.
1 Installing Cantera 1.7 for Windows S. Browne and J. E. Shepherd Caltech Revised March 24, 2007.
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 5: User Environment and Multiple Languages.
Command Console Tutorial BCIS 3680 Enterprise Programming.
USING REFWORKS Fall What is RefWorks? A web-based bibliographic and database manager Creighton University faculty, students, and staff have access.
Streaming Twitter. Install pycurl library Use a lab computer From the course website Download the links from pycurl and twitter streamer Extract site-packages.zip,
Tutorial 11 Installing, Updating, and Configuring Software
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
A Memo for the Starting of CS-framework Yulin Tian 1. Install the packages of the CS ; 2. Set the environment variable “DIM_DNS_NODE” ; 3. Register an.
Web Technologies Website Development Trade & Industrial Education
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Installing Windows Vista Lesson 2. Skills Matrix Technology SkillObjective DomainObjective # Performing a Clean Installation Set up Windows Vista as the.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
How to Tag a Corpus Using Stanford Tagger. Accuracy All tokens: 97.32% Unknown words: 90.79%
Putting Applets into Web Pages.  Two things are involved in the process of putting applets onto web pages ◦ The.class files of the applet ◦ The html.
Adobe GoLive Edit and FTP your web pages to a web server.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Booting Ubuntu Linux Live CSCI 130 – Fall 2008 Action Lab Dr. W. Jones.
© Paradigm Publishing Inc. MICROSOFT WINDOWS XP MAINTAINING FILES AND CUSTOMIZING WINDOWS Section 2.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
Click to edit Master subtitle style Mobile Test Suite Installation and configuration Paul Shepherd Senior Repair Technician Zebra Technologies Europe Limited.
Sep. 18th 2006 Stefan Koestner Installation Guide ECS-tools for the CCPC/Tell1 (Installation): Many problems/user- requests already arises when installing.
LAMMPS Users’ Workshop
Click here to create a new account Click here to check the system for an existing account Enter the site by typing in your User ID and Password and clicking.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
WinCvs. WinCVS WinCvs is a window based version control system. Use WinCvs when  You want to save every version of your file you have ever created. CVS.
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
BASIC WORD PROCESSORS WEEK 5. BASIC WORD PROCESSORS Word Processor Word processor is a program which is used to edit text files and format them with font,
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
CS1101 Using CourseMarker (CM) CM website: Updated:
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
How to Create and Extract a Zip Folder Mark K. Jowett, Ph.D.
Windows Installation Tutorial NASA ARSET For Python help, contact: Justin Roberts-Pierel
Tomcat Setup BCIS 3680 Enterprise Programming. One-Click Tomcat Setup 2  This semester we’ll try to set up Tomcat with a PowerShell script.  Preparation.
Unity Application Generator How Can I… Export variables of a Control module with all parameters, modify the some of the parameters like Initial values.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 28-Jun-16.
HOW TO FIX MSVCR100. DLL IS MISSING ERROR? missing-error.
Using a set-up file to read ASCII data into Stata
Development Environment
MET4750 Techniques for Earth System Modeling
WORKSHOP 6 USING THE ASCII CONDUIT
Introduction to Programming
Using a set-up file to read ASCII data into SPSS
Tips to Manually Uninstall Norton Antivirus 2012.
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
European Computer Driving Licence
How to install the Enterprise Agent using Active Directory
Introduction to Programming
Electronics II Physics 3620 / 6620
CS115 HOW TO INSTALL THE JAVA DEVELOPMENT KIT (JDK)
Introduction to Programming
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Windows Installation Tutorial
Amos Introduction In this tutorial, you will be briefly introduced to the student version of the SEM software known as Amos. You should download the current.
Introduction to Programming
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Input and Output Python3 Beginner #3.
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Building a healthy nation is what we do. Sidra Supplier Bid Submission.
MAINTAINING FILES AND CUSTOMIZING WINDOWS Section 2
Installations for Course
Presentation transcript:

1 Installing Cantera 1.7, Python 2.5, and Python SDToolbox for Windows J. Ziegler, S. Browne, and J. E. Shepherd Caltech Revised August, 2007

2 System Requirements A PC running MS Windows XP with SP2 Python 2.5 Download the Windows installer from and run it Cantera uses Python to process input files numarray site-package for Python Download the Windows installer (“Old numarray”) from and run it scipy for python 2.5 (windows) numpy for python 2.5 (windows) (needed by scipy) (optional download) matplotlib for python 2.5 (windows)

3 Cantera 1.7 Installation Download the Cantera installer get Cantera1.7.0.msi and run it. This will create a folder that looks like the one shown here Run Cantera win32-py2.5.exe This creates the interface between Cantera and Python

4 Add New Environment Variables Cantera needs to know where to find the Python interpreter, since it uses Python to process ‘.cti’ input files To edit the system search path, select “System” on the Control Panel to pull up this dialogue box Press the ‘Environment Variables’ button

5 Add New Environment Variables New (user) Environment Variable PYTHON_CMD C:\Python25\python.exe Note: Check your paths Environment Variables are Case Sensitive Some installation locations may be different depending on the user’s choices.

6 Cantera Thermo/Reaction Data Download High Temperature (up to 6000 K) cti Files Put Thermo/Reaction Data Files (.cti) in one of two places C:\Program Files\Common Files\Cantera\data NOTE: There is a link ('data‘) to this directory in your Cantera base directory. Your current working directory.cti Format Files – Thermo/Reaction Input Files for Cantera Contain Description of the Mixture Thermodynamic Data Reaction Mechanism (optional) Transport Data (optional) Files included with Cantera Distribution Limited to Low Temperatures (< 3000 K) Includes GRI3.0 and files used in demos. Creating New/Converting CHEMKIN Style Files Documented at

7 Fix the Mixmaster 1.7 Bug Mixmaster is a GUI written in Python that can be used to carry out equilibrium computations, evaluate thermodynamic properties and post-process reaction rate files. The Cantera 1.7 Distribution Mixmaster has a bug To Fix: Replace C:\Python25\Lib\site-packages\MixMaster\ThermoFrame.py with

8 Testing Cantera/Python Interface Make sure to restart your computer for the environment variables to take effect. Run tut1.py (python tutorial file) Located in Cantera\tutorials\Python To Run: Right click on ‘tut1.py’ and left click on ‘Edit with Idle’ In the tut1.py window enter "F5" (shortcut for Run > RunModule) Results Correct – the comments of the tutorial print in the Python Shell window If NOT – Python or Cantera install is incorrect.

9 Step 1 Step 2 Run Python

Download SDToolbox Toolbox Demo Scripts Copy SDToolbox.zip and scripts-demos.zip into its own working directory (e.g. Desktop\cantera.shock\SDToolbox.zip and Desktop\cantera.shock\scripts-demos.zip) Unzip the files (right click, extract all) 10

Installing The SDToolbox Go to C:\Python25\Lib\site-packages and create a directory named SDToolbox Copy the unzipped SDToolbox files from above into this newly created SDToolbox directory. There should appear; __init__.py, CV.py, PostShock.py & Thermo.py….etc Go up 1 directory to C:\Python25\Lib\site-packages. Use any plaintext editor to create the file SDToolbox.pth (not.txt!) Type inside this file the single line "SDToolbox" (without the quotes). Note: Using Wordpad or Notepad works for this if you save the file as the all files type (you can also modify the file extension manually after creating the file) Go up 1 directory to C:\Python\Lib. Go to the file site.py, right click and "Edit with IDLE". In the site.py window, go to Menu->Run->Run Module. This should initialize the SDToolbox path into Python as shown in the Python Shell output window. 11

Test with SD Toolbox Demo Scripts Go to the demo scripts directory that you unzipped the demo files into (Desktop\cantera.shock\demos in our example) Test the demos by "Edit with IDLE" & Run Module. Troubleshooting Note : Cantera files are scattered into 3 places:..\Cantera,..\Python25\Lib\site-packages\Cantera (Mixmaster & SDToolbox too), and Program Files\Common Files\Cantera\data (where the mechanisms are put) 12

13 Tips and hints 1. Version Compatibility – Python, Cantera, and packages must be Compatible 2. numarray – Be sure to install numarray NOT numpy or Numeric 3. Python Version – Make sure you have Python 2.5 and numarray Environment Variables a)Case Sensitivity – Make sure that all paths specified truly exist. b)USER Environment Variables (NOT SYSTEM Environment Variables) c)Cantera – TWO New Variables – Check that PYTHON_CMD exists and is properly defined – This is DIFFERENT than the method used for Cantera 1.6

14 Tips and hints – External Documentation 5. Cantera Documentation  Cantera Web Site (Currently No Windows Documentation)  SourceForge Web Site in particular Cantera17-vcf17.pdf (NOTE: Page/Slide 9 of Cantera17-vcf17.pdf NOT Necessary for basic user) Shock & Detonation Toolbox Site 6. Yahoo Cantera User Forum