Public Types |
Public Member Functions |
Static Public Member Functions |
Protected Attributes |
List of all members
chrono::parsers::ChParserCfdYAML Class Referenceabstract
Description
Base class for YAML parsers for fluid systems.
#include <ChParserCfdYAML.h>
Inheritance diagram for chrono::parsers::ChParserCfdYAML:

Public Types | |
enum | FluidSystemType { SPH, BEM } |
Public Member Functions | |
ChParserCfdYAML (bool verbose=false) | |
void | SetVerbose (bool verbose) |
Set verbose terminal output (default: false). | |
void | SetOutputDir (const std::string &out_dir) |
Set root output directory (default: ""). | |
FluidSystemType | GetType () const |
Return the fluid system type. | |
virtual bool | Output () const =0 |
Return true if generating output. | |
virtual void | SaveOutput (int frame) |
Save simulation output results at the current time. | |
Static Public Member Functions | |
static void | CheckVersion (const YAML::Node &a) |
Check version in YAML file against the Chrono version. | |
static std::string | ToUpper (std::string in) |
Convert string to upper case. | |
static FluidSystemType | ReadFluidSystemType (const std::string &yaml_filename) |
Peek in specified YAML file and read the fluid system type. More... | |
Protected Attributes | |
bool | m_verbose |
FluidSystemType | m_type |
std::string | m_output_dir |
Member Function Documentation
◆ ReadFluidSystemType()
|
static |
Peek in specified YAML file and read the fluid system type.
Throws a runtime error if the type is unknown.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_parsers/yaml/ChParserCfdYAML.h
- /builds/uwsbel/chrono/src/chrono_parsers/yaml/ChParserCfdYAML.cpp