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

Collaboration diagram for chrono::parsers::ChParserYAML:

Classes | |
| struct | OutputParameters |
| Output parameters. More... | |
Public Types | |
| enum | YamlFileType { MBS, SPH, TDPF, FSI, VEHICLE, UNKNOWN } |
| Type of a Chrono YAML specification file. | |
Public Member Functions | |
| void | SetVerbose (bool verbose) |
| Set verbose terminal output (default: false). | |
| virtual void | SetOutputDir (const std::string &out_dir) |
| Set root output directory (default: "."). More... | |
| const std::string & | GetName () const |
| Return the name of the YAML model. | |
| virtual bool | Output () const |
| Return true if generating output. | |
| ChOutput::Type | GetOutputType () const |
| Return the output type. | |
| ChOutput::Mode | GetOutputMode () const |
| Return the output mode. | |
| virtual double | GetOutputFPS () const |
| Return the output frequency. | |
| virtual void | SaveOutput (int frame) |
| Save simulation output results at the current time. More... | |
Static Public Member Functions | |
| static YamlFileType | ReadYamlFileType (const std::string &yaml_filename) |
| Peek in specified YAML file and read the fluid system type. More... | |
Protected Member Functions | |
| void | ReadOutputParams (const YAML::Node &a) |
| Read output settings from specified YAML node. | |
Static Protected Member Functions | |
| static YamlFileType | ReadYamlFileType (const YAML::Node &a) |
| Read the YAML file type. | |
Protected Attributes | |
| std::string | m_name |
| name of the YAML model | |
| bool | m_verbose |
| verbose terminal output (default: false) | |
| bool | m_use_degrees |
| all angles given in degrees (default: true) | |
| std::string | m_output_dir |
| root output directory | |
| std::shared_ptr< ChOutput > | m_output_db |
| output database | |
| OutputParameters | m_output |
| output parameters | |
| ChYamlFileHandler | m_file_handler |
| handler for data file paths | |
Member Function Documentation
◆ ReadYamlFileType()
|
static |
Peek in specified YAML file and read the fluid system type.
Throws a runtime error if the type is unknown.
◆ SaveOutput()
|
virtual |
Save simulation output results at the current time.
This base class implementation creates and initializes the output database. Derived classes must
Reimplemented in chrono::parsers::ChParserSphYAML, and chrono::parsers::ChParserTdpfYAML.
◆ SetOutputDir()
|
virtual |
Set root output directory (default: ".").
The specified directory must exist.
Reimplemented in chrono::parsers::ChParserFsiYAML.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_parsers/yaml/ChParserYAML.h
- /builds/uwsbel/chrono/src/chrono_parsers/yaml/ChParserYAML.cpp