Cantera  2.0
Functions | Variables
ck2ct.cpp File Reference

Convert CK-format reaction mechanism files to Cantera input format. More...

#include <iostream>
#include <string>
#include <ctype.h>
#include "cantera/base/config.h"
#include "CKReader.h"
#include "Reaction.h"
#include "writelog.h"
#include "ck2ct.h"
#include "cantera/base/stringUtils.h"
#include <time.h>
#include "cantera/base/ct_defs.h"
#include "cantera/base/ctml.h"
Include dependency graph for ck2ct.cpp:

Go to the source code of this file.

Functions

static void getTransportData (string trfile)
 
static void addNASA (FILE *f, const vector_fp &low, const vector_fp &high, doublereal minx, doublereal midx, doublereal maxx)
 
static void addNASA9 (FILE *f, const std::vector< vector_fp * > &region_coeffs, const vector_fp &minTemps, const vector_fp &maxTemps)
 Add a NASA polynomial parameterization to the cti file.
 
static void addTransportParams (FILE *f, string name)
 
static void addFalloff (FILE *f, string type, const vector_fp &params)
 
static void addSpecies (FILE *f, string idtag, const ckr::Species &sp)
 Write out a species cti block to the output file.
 
static void addReaction (FILE *f, string idtag, int i, const ckr::Reaction &rxn, const ckr::ReactionUnits &runits, doublereal version)
 
void writeline (FILE *f)
 
void ck2ct (FILE *f, string idtag, ckr::CKReader &r, bool hastransport)
 
int convert_ck (const char *in_file, const char *db_file, const char *tr_file, const char *id_tag, bool debug, bool validate)
 

Variables

static map< string, trdata > _trmap
 
static bool _with_transport = false
 

Detailed Description

Convert CK-format reaction mechanism files to Cantera input format.

Definition in file ck2ct.cpp.