Here is an instruction to build and execute KUCRS on UNIX. See Getting Started to use the pre-build binaries on Windows. Below may also be helpful to rebuild KUCRS on Windows.
1. Building
In the following instruction, KUCRS is assumed to be extracted
in the user's home directory,
~/
, though actual location
can be anywhere.
If you have extracted KUCRS in the another location, assume
~/KUCRS
to be the directory where you actually extracted it.
Decompress
Decompress the downloaded zip archive, 'KUCRS-yyyymmdd.zip',
as follows.
[usr@machine ~]$ unzip KUCRS-yyyymmdd.zip
Compile
Change directory to
Execute
~/KUCRS/sources
. The following makefiles
are provided. Select appropriate one and edit if necessary.
makeGnu.make | GNU compiler (UNIX-like platform) |
makeIntel64oapiLinux.make | Intel oneAPI 2025 & later (Linux) |
makeIntel64oapiWin.make | Intel oneAPI 2025 & later (Windows) |
makeIntelLinux.make | Intel compiler (Linux) |
makeIntelWin.make | Intel compiler (Windows) |
make
(nmake
on Windows).
[usr@machine sources]$ make -f selected_make.make
After confirming that the compilation has been successfully completed,
execute the 'install'
target.
Executable files will be moved to ~/KUCRS/bin
.
[usr@machine sources]$ make -f selected_make.make install
Execute the 'clean'
target to remove temporary files.
[usr@machine sources]$ make -f selected_make.make clean
Change directory to ~/KUCRS and execute the cshell script
~/KUCRS/prep_envKUCRS.
[usr@machine ~/KUCRS]$ csh prep_envKUCRS
This sets execution permission to cshell script files in ~/KUCRS/bin
and generates a file ~/KUCRS/work/envKUCRS.csh.
2. Execution of samples
Setting environment
If you are using a shell other than csh or tcsh, invoke csh or tcsh.
Then source ~/KUCRS/work/envKUCRS.csh.
Note that this must be done every time you log-in.
Set the content of ~/KUCRS/work/envKUCRS.csh in
.cshrc
if necessary.
[usr@machine work]$ source envKUCRS.csh
Running autogeneration program
Change directory to ~/KUCRS/work/sample and type:
If properly executed, this will give following files.
[usr@machine sample]$ run_comb i-butane
to run autogeneration program with the sample input i-butane.inp
.If properly executed, this will give following files.
i-butane.log i-butane_chm.inp i-butane_trn.datFiles necessary for Chemkin are 'i-butane_chm.inp' and 'i-butane_trn.dat'.
- The shell script
run_com
provides the simplest
way of running the autogeneration program. For simplicity,
it deletes intermediate outputs which are not necessary to run
CHEMKIN. To keep all the intermediate outputs, use run_comb_nodel
.
- Use 'run_comb_htnox' script to append the high-temperature NOx
production mechanism.
Some more sample inputs other than
i-butane.inp
can be
found in ~/KUCRS/work/advanced_examples
.alcohols.inp alkanes.inp alkenes.inp diesel-prf.inp gasoline-prf.inp
Running tools for chemical species data generation
In ~/KUCRS/work/sample, type:
[usr@machine sample]$ proc_smiles spcex
to generate following files containing the thermodynamic and transport data from
the list of species names and SMILES structure representations provided in
spcex.inp
spcex_thg.dat spcex_thg.lst spcex_trn.datThe file
spcex_thg.dat
contains thermodynamic data in NASA
polynomial format used by CHEMKIN, spcex_thg.lst
contins thermodynamic
data in list format of THERM, and, spcex_trn.dat
contains the
transport data used by CHEMKIN. The details of the KUCRS components invoked by
proc_smiles
can be found in the
User's Guide.