Cantera  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
vcs_util.cpp File Reference

Internal definitions for utility functions for the VCSnonideal package. More...

#include "cantera/equil/vcs_internal.h"
#include "cantera/equil/vcs_defs.h"
#include "cantera/base/stringUtils.h"
#include "cantera/base/ctexceptions.h"
#include <cassert>
#include <cstring>
Include dependency graph for vcs_util.cpp:

Go to the source code of this file.

Namespaces

 Cantera
 Namespace for the Cantera kernel.
 

Functions

double vcs_l2norm (const std::vector< double > vec)
 determine the l2 norm of a vector of doubles More...
 
size_t vcs_optMax (const double *x, const double *xSize, size_t j, size_t n)
 Finds the location of the maximum component in a double vector. More...
 
int vcs_max_int (const int *vector, int length)
 Returns the maximum integer in a list. More...
 
double vcsUtil_gasConstant (int mu_units)
 Returns the value of the gas constant in the units specified by parameter. More...
 
const char * vcs_speciesType_string (int speciesStatus, int length=100)
 Returns a const char string representing the type of the species given by the first argument. More...
 
void vcs_print_stringTrunc (const char *str, size_t space, int alignment)
 Print a string within a given space limit. More...
 
bool vcs_doubleEqual (double d1, double d2)
 Simple routine to check whether two doubles are equal up to roundoff error. More...
 

Detailed Description

Internal definitions for utility functions for the VCSnonideal package.

Definition in file vcs_util.cpp.