• The added line is THIS COLOR.
  • The deleted line is THIS COLOR.
* Step-by-step instructions to use KAPSEL [#s1fa1365]

** STEP 0: Linux or Windows? [#sd4e991d]

- If you want to use KAPSEL on Linux (recommended), goto STEP 1.

- If you want to use KAPSEL on Windows,  install "[[Cygwin:http://cygwin.com]]" first, then goto STEP 1. Be sure to install "gcc" and "make" packages.

- KAPSEL can be used on Mac OS X, but it is not supported. 

** STEP 1: Download and install "Gourmet" [#b5c31f22]
- "Gourmet" is a graphic platform developed by OCTA project. The entire OCTA package is not necessarily. Only Gourmet is required to use KAPSEL.

- Goto [[OCTA-BBS:http://octa001.muse.aist.go.jp/phpBB3/]] and register to get your ID.

- Follow "DOWNLOAD" -> "OCTA2007" -> "Platform GOURMET2007 in OCTA2007 (for Windows)"  or "GOURMET 4.1.0 (on OCTA2007) for Windows and Linux" to download "Gourmet" package.

- Follow the instruction there to install "Gourmet". 

** STEP 2: Build "libplatform" [#b16eb306]

- "libplatform" is an I/O library developed by OCTA project. One needs this to access to UDF-formatted files.

- Instruction for Linux:

    > su
    > cd /usr/local/OCTA2007/GOURMET_2007
    > tar xvfpz gourmet*_src.tar.gz
    > cd src
    > make
    > make install

- Instruction for Windows: (Logon Windows with an administrator authorization and open Cygwin window.)

    $ ln -s /cygdrive/c/OCTA2007/ /usr/local/.
    $ cd /usr/local/OCTA2007/GOURMET_2007
    $ unzip GOURMET2007_SRC.zip
    $ cd src
    $ make
    $ make install


** STEP 3: Download "KAPSEL" [#hcf749f2]

- Goto [[KAPSEL-BBS:http://www.cheme.kyoto-u.ac.jp/1koza/kapsel/phpBB3/]] and register to get your ID.

- Follow "DOWNLOAD" -> "KAPSEL-2" -> "KAPSEL-2" to download "kapsel.tar.gz".

- Download "&ref(Makefile);" and overwrite an existing file included in the "kapsel.tar.gz"

** STEP 4: Build "KAPSEL" [#h2d3c3c3]

    > echo $PF_FILES (Set "PF_FILES" properly, if it has not done yet.) 
    > tar xvfpz kapsel.tar.gz
    > cd kapsel
    > make

** STEP 5: Test "KAPSEL" [#l7319ece]

- Download "&ref(define.udf);" and "&ref(sample1.udf);", and type the following.

    > ./kapsel/kapsel -Isample1.udf -Ooutput.udf -Ddefine.udf -Rrestart.udf



** STEP 6: Use "KAPSEL" [#tea48551]

- Download an appropriate sample "****.udf" file from the examples.

- Modify the sample "****.udf" file using "Gourmet" for your own purpose, and save it as "new_name.udf".

    > ./kapsel/kapsel -Inew_name.udf -Ooutput.udf -Ddefine.udf -Rrestart.udf

- Start "Gourmet" and then read "output.udf". Use "show_field.py" or "plot.py" to animate or to plot velocity data.