顯示具有 Software 標籤的文章。 顯示所有文章
顯示具有 Software 標籤的文章。 顯示所有文章

2011/05/31

Style for Computers & Chemical Engineering

 

I am using Mendeley, but can’t find styles for Computers & Chemical Engineering.  It took me quite a while to find out this style which might fit what I need.

 

Just FYI

2011/05/09

Cantera User’s Group

 

Online forum

http://groups.google.com/group/cantera-users

 

Download and install

How to install Cantera?

2011/04/21

Dropbox

 

The best sync software so far.  Try this.

2011/03/31

How to install Cantera?

 

Note: remember to change the file access permission if you have a problem like:

************************************************
                Cantera Error!                 
************************************************


Procedure: ct2ctml
Error:   could not convert input file to CTML.

 

=== repost from http://web.mit.edu/2.62/www/cantera/install.html ===

Installing Cantera for Windows

  1. Install Python
    • Go to python.org.
    • 32-bit: Download the most recent "Windows installer" for Python 2.6.
    • 64-bit: Download the most recent "Windows X86-64 installer" for Python 2.6.
    • Run the installer. The default installation options should be fine.
  2. Install NumPy
  3. Install Cantera
  4. Configure Matlab (optional)
    • Launch Matlab
    • Go to File-<Set Path...
    • Select Add with Subfolders
    • Browse to the folder c:\Program Files\Cantera\MATLAB\toolbox\cantera
    • Select Save, then Close.
  5. Set the environment variable PYTHON_CMD
    • This step is not necessary if you are using only the Python module.
    • Right-click My Computer, select Properties
    • Go to the Advanced tab.
    • Select Environment Variables.
    • Add a New variable with PYTHON_CMD as the name and the full path to the Python executable (e.g. c:\python26\python.exe) as the value.
  6. Create the nasa_gas.xml file
    • Option 0: At a Python prompt, type:
      import Cantera, os
      os.chdir('c:/Program Files/cantera/data')
      Cantera.Solution('nasa_gas.cti')



    • Option 1: At the Matlab prompt, type:
      cd 'c:\Program Files\cantera\data'
      Solution('nasa_gas.cti')



    • This will give an error (Procedure: xml_findByName; Error: name phase not found), but it should produce the file nasa_gas.xml in the current directory.


    • This allows you to use any of the species specified in nasa_gas.cti in any of your .cti files.




  7. Test the installation

    • Python:
      import Cantera
      gas = Cantera.IdealGasMix('gri30.cti')
      h2o = Cantera.importPhase('liquidvapor.cti','water')



    • Matlab:
      gas = IdealGasMix('gri30.cti')
      h2o = importPhase('liquidvapor.cti','water')





  8. Install Sundials (optional)

    • This step is necessary only to build and link C/C++ programs that use the Sundials integrators CVODE and IDA.


    • 32-bit Download sundials-2.4.0-x86.zip


    • 64-bit Download sundials-2.4.0-amd64.zip


    • Extract the contents of the ZIP file to the Cantera installation directory, e.g. C:\Program Files\Cantera, merging the contents of the lib and include subdirectories.



2009/07/01

Dictionary .NET

 

Strongly recommended

http://fishcodelib.com/Dictionary.htm

2009/05/14

PDF-related software tools

 

It's free, the best viewer I've used ever!

PDF-XCHANGE VIEWER
http://www.docu-track.com/home/prod_user/PDF-XChange_Tools/pdfx_viewer/

 

Wanna create PDF file? Try this one: PDFcreator
http://sourceforge.net/projects/pdfcreator/

 

For Microsoft Office 2007 users, the simplest way to make PDF file is......
http://www.microsoft.com/downloads/details.aspx?FamilyID=4d951911-3e7e-4ae6-b059-a2e79ed87041&displaylang=en

2009/02/11

0.1+0.1+0.1-0.3 != 0 ?!!!!!

 

If you type the this question in command line of MATLAB, you'll probably get the answer other than zero.

 

5.5511e-017

The guyes work for MATLAB wrote on their blog and explained why.

Ken & Mike on the MATLAB Desktop

 

And the lady even insists that " it's not an error".  How ridiculous!

Loren on the Art of MATLAB

Hugh-

This is not an error. If MATLAB were built to get that answer to be 0, we’d have to do a bunch of operations to sort the data in the “right” order. How would MATLAB actually know that IS the way the values should be accumulated from the real-world? You can have MATLAB perform calculations in whatever order you wish by using parentheses. Or introduce a function that sorts the data appropriately and then does the sums and differences.

As long as there is no way to perfectly represent some values, floating point calculations are subject to round-off error. As for the other languages, it depends on how the code is written so they get exactly 0. If the constants are built into the program rather than user-supplied at run-time, it’s possible that a C++ compiler will reorder the operations on constants. And Mathematica might be doing the calculations using extended precision (but I don’t know that for certain).

–Loren

Anyway, it seems that no solution will be provided for this "problem", so I'd better keep that in mind if I need to use  if (0.3==0.1*3)  this kind of statement in my program.

What a great team of MATLAB!

2008/11/29

How to use MATLAB and COMSOL on the cluster

You can launch COMSOL or MATLAB on the cluster from everywhere as long as you can access internet.
Open cygwin and keyin:


ssh -X11 yourCCID@masternode.eche.ualberta.ca
qsub -l nodes=1,walltime=20:00:00 -I

image

Remember the number of the node, in this case node14.

Open the other cygwin and start XWin by using "startx"

ssh -Y CCID@masternode.eche.ualberta.ca
ssh nodeN

 

image

image image

Cygwin -- Run linux application on Winodws

 

http://www.cygwin.com/

image

Install or updatenow!

 

Read this if you want to install ssh server on Winodws XP.  It is very useful to tunnel tcp applications under the
ssh protocol.

How to install OpenSSH     <-- This document contains all you need to know.