chrono::parsers::ChParserFsiYAML Class Reference

Description

Parser for YAML specification file for a coupled FSI problem.

#include <ChParserFsiYAML.h>

Inheritance diagram for chrono::parsers::ChParserFsiYAML:
Collaboration diagram for chrono::parsers::ChParserFsiYAML:

Public Member Functions

 ChParserFsiYAML (const std::string &yaml_filename, bool verbose=false)
 Create a YAML parser and load the model from the specified input YAML file.
 
void LoadFile (const std::string &yaml_filename)
 Load the specified input YAML file.
 
void LoadFsiData (const YAML::Node &yaml)
 
void LoadSimData (const YAML::Node &yaml)
 Load the simulation and visualization settings from the specified YAML node.
 
void CreateFsiSystem ()
 Create and return a ChFsiSystem combining a Chrono MBS system and a fluid solver.
 
ChParserMbsYAMLGetMbsParser () const
 Return the multibody YAML parser.
 
ChParserCfdYAMLGetCfdParser () const
 Return the fluid YAML parser.
 
std::shared_ptr< fsi::ChFsiSystemGetFsiSystem () const
 Return the FSI system.
 
ChParserCfdYAML::FluidSystemType GetFluidSystemType () const
 Return fluid system type.
 
std::shared_ptr< fsi::ChFsiFluidSystemGetFluidSystem () const
 Return the fluid system.
 
std::shared_ptr< ChSystemGetMultibodySystem () const
 Return the MBS system.
 
double GetTimestep () const
 Get meta-step (communication time step).
 
double GetEndtime () const
 Get simulation end time. More...
 
virtual void SetOutputDir (const std::string &out_dir) override
 Set root output directory (default: ".").
 
virtual bool Output () const override
 Return true if generating output.
 
bool Render () const
 Indicate whether to enable run-time visualization.
 
double GetRenderFPS () const
 Return frequency (frames-per-second) for run-time visualization rendering.
 
CameraVerticalDir GetCameraVerticalDir () const
 
const ChVector3dGetCameraLocation () const
 
const ChVector3dGetCameraTarget () const
 
bool EnableShadows () const
 
- Public Member Functions inherited from chrono::parsers::ChParserYAML
void SetVerbose (bool verbose)
 Set verbose terminal output (default: false).
 
const std::string & GetName () const
 Return the name of the YAML model.
 
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...
 

Additional Inherited Members

- Public Types inherited from chrono::parsers::ChParserYAML
enum  YamlFileType {
  MBS, SPH, TDPF, FSI,
  VEHICLE, UNKNOWN
}
 Type of a Chrono YAML specification file.
 
- 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 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.
 
- 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
 

Member Function Documentation

◆ GetEndtime()

double chrono::parsers::ChParserFsiYAML::GetEndtime ( ) const
inline

Get simulation end time.

A value of -1 indicates infinite end time.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_parsers/yaml/ChParserFsiYAML.h
  • /builds/uwsbel/chrono/src/chrono_parsers/yaml/ChParserFsiYAML.cpp