|
OpenFCST: The open-source Fuel Cell Simulation Toolbox
|
#include <cmath>#include <iostream>#include <string>#include <vector>#include <map>#include <cctype>#include <boost/lexical_cast.hpp>#include <fstream>#include <algorithm>#include <boost/tokenizer.hpp>#include <stdlib.h>#include <deal.II/base/utilities.h>#include <deal.II/base/exceptions.h>#include <application_core/application_wrapper.h>#include <unistd.h>

Go to the source code of this file.
Namespaces | |
| FcstUtilities | |
Functions | |
| FcstUtilities::DeclException1 (ExcWrongString, std::string,<< "Can't convert the string "<< arg1<< " to the desired Number type") | |
| Exception shown when a particular string can't be converted to Number type. More... | |
| template<typename NumType > | |
| NumType | FcstUtilities::string_to_number (const std::string &) |
| Function to convert a std::string into Number template. More... | |
| template<typename NumType > | |
| std::vector< NumType > | FcstUtilities::string_to_number (const std::vector< std::string > &) |
| Function to convert a std::vector< std::string > into std::vector < Number template >. More... | |
| template<> | |
| unsigned char | FcstUtilities::string_to_number< unsigned char > (const std::string &str) |
| Function to convert a std::string into an unsigned char such as types::material_id and types::boundary_id. More... | |
| template<typename KeyType , typename ValueType > | |
| std::map< KeyType, ValueType > | FcstUtilities::string_to_map (const std::vector< std::string > &) |
| Function to convert a std::vector< std::string > into std::map< KeyType, ValueType >. More... | |
| template<typename KeyType , typename ValueType > | |
| std::map< KeyType, ValueType > | FcstUtilities::string_to_map (const std::string &name) |
| This function is the same as the previous one. More... | |
| int | FcstUtilities::cellId_to_index (std::string &cell_id) |
| This function determines whether a string is a "valid" representation of a number. More... | |
| bool | FcstUtilities::is_number (const std::string &s) |
| This function extracts to parent cell index from the dealii CellID. More... | |
| template<typename KeyType , typename ValueType > | |
| std::map< KeyType, std::vector < ValueType > > | FcstUtilities::split_mapvalue_list (const std::map< KeyType, std::string > &, const char delimiter= ';') |
This function takes a std::map<KeyType, std::string>, and std::string contains text separated by a delimiter. More... | |
| void | FcstUtilities::print_parameter_file_PRM (ParameterHandler ¶m, std::string path="default.prm") |
| This function prepares an PRM file with ALL your data inside. More... | |
| void | FcstUtilities::print_parameter_file_XML (ParameterHandler ¶m, std::string path="default.xml") |
| This function prepares an XML file with ALL your data inside. More... | |
| std::string | FcstUtilities::find_fcst_root () |
| This function returns the address of the fcst root directory. More... | |
| void | FcstUtilities::run_python (std::string script_name, std::string arg) |
| This function runs external python scripts. More... | |
| template<typename ValType > | |
| void | FcstUtilities::modify_parameter_file (const std::string name_design_var, const ValType value_design_var, ParameterHandler ¶m) |
| This routine is used to parse the input parameter. More... | |
| template<typename ValType > | |
| void | FcstUtilities::modify_parameter_file (const std::vector< std::string > name_design_var, const std::vector< ValType > value_design_var, ParameterHandler ¶m) |
| template<typename NumType > | |
| std::string | FcstUtilities::number_to_string (const NumType &num) |
| Function for casting from double to string. More... | |
| void | FcstUtilities::read_parameter_files (ParameterHandler ¶m, const std::string &filename) |
| This function reads parameter files written in both prm and xml formats. More... | |
| bool | FcstUtilities::file_exists (const std::string &file_name) |
| Check if a file exists. More... | |
1.8.5