Description

Base class for YAML parsers for fluid systems.

#include <ChParserCfdYAML.h>

Inheritance diagram for chrono::parsers::ChParserCfdYAML:
Collaboration diagram for chrono::parsers::ChParserCfdYAML:

Public Types

enum  FluidSystemType { SPH, TDPF }
 
- Public Types inherited from chrono::parsers::ChParserYAML
enum  YamlFileType {
  MBS, SPH, TDPF, FSI,
  VEHICLE, UNKNOWN
}
 Type of a Chrono YAML specification file.
 

Public Member Functions

 ChParserCfdYAML (bool verbose=false)
 
FluidSystemType GetType () const
 Return the fluid system type.
 
virtual std::shared_ptr< fsi::ChFsiSystemGetFsiSystem ()=0
 Access the underlying FSI system.
 
virtual std::shared_ptr< fsi::ChFsiFluidSystemGetFluidSystem ()=0
 Access the underlying fluid system.
 
- Public Member Functions inherited from chrono::parsers::ChParserYAML
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 FluidSystemType ReadFluidSystemType (const std::string &yaml_filename)
 Peek in specified YAML file and read the fluid system type. More...
 
- Static Public Member Functions inherited from chrono::parsers::ChParserYAML
static YamlFileType ReadYamlFileType (const std::string &yaml_filename)
 Peek in specified YAML file and read the fluid system type. More...
 

Protected Attributes

FluidSystemType m_type
 
- Protected Attributes inherited from chrono::parsers::ChParserYAML
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< ChOutputm_output_db
 output database
 
OutputParameters m_output
 output parameters
 
ChYamlFileHandler m_file_handler
 handler for data file paths
 

Additional Inherited Members

- Protected Member Functions inherited from chrono::parsers::ChParserYAML
void ReadOutputParams (const YAML::Node &a)
 Read output settings from specified YAML node.
 
- Static Protected Member Functions inherited from chrono::parsers::ChParserYAML
static YamlFileType ReadYamlFileType (const YAML::Node &a)
 Read the YAML file type.
 

Member Function Documentation

◆ ReadFluidSystemType()

ChParserCfdYAML::FluidSystemType chrono::parsers::ChParserCfdYAML::ReadFluidSystemType ( const std::string &  yaml_filename)
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