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 saettings 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 Types inherited from chrono::parsers::ChParserYAML
enum  DataPathType { ABS, REL }
 
- Protected Member Functions inherited from chrono::parsers::ChParserYAML
void ReadOutputParams (const YAML::Node &a)
 Read output settings from specified YAML node.
 
std::string GetDatafilePath (const std::string &filename)
 Return the path to the specified data file.
 
- Static Protected Member Functions inherited from chrono::parsers::ChParserYAML
static void CheckVersion (const YAML::Node &a)
 
static std::string ToUpper (std::string in)
 
static YamlFileType ReadYamlFileType (const YAML::Node &a)
 Read the YAML file type.
 
static DataPathType ReadDataPathType (const YAML::Node &a)
 Read the data path type (absolute or relative).
 
static ChVector3d ReadVector (const YAML::Node &a)
 Load and return a ChVector3d from the specified node.
 
static ChQuaterniond ReadQuaternion (const YAML::Node &a)
 Load and return a ChQuaternion from the specified node.
 
static ChQuaterniond ReadCardanAngles (const YAML::Node &a, bool use_degrees)
 Load a Cardan angle sequence from the specified node and return as a quaternion. More...
 
static ChQuaterniond ReadRotation (const YAML::Node &a, bool use_degrees)
 Return a quaternion loaded from the specified node. More...
 
static ChCoordsysd ReadCoordinateSystem (const YAML::Node &a, bool use_degrees)
 Load and return a coordinate system from the specified node.
 
static std::shared_ptr< ChFunctionReadFunction (const YAML::Node &a, bool use_degrees)
 Load and return a ChFunction object from the specified node.
 
static ChColor ReadColor (const YAML::Node &a)
 Load and return a ChColor from the specified node.
 
static ChOutput::Type ReadOutputType (const YAML::Node &a)
 
static ChOutput::Mode ReadOutputMode (const YAML::Node &a)
 
static void PrintNodeType (const YAML::Node &node)
 Print YAML node 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 oputput directory
 
std::shared_ptr< ChOutputm_output_db
 output database
 
DataPathType m_data_path
 
std::string m_rel_path
 
std::string m_script_directory
 
OutputParameters m_output
 

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