chrono::parsers::ChParserFsiYAML Class Reference
Description
Utility class to parse a 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 | CreateFsiSystem () |
Create and return a ChFsiSystem combining a Chrono MBS system and a fluid solver. | |
ChParserMbsYAML & | GetMbsParser () const |
Return the multibody YAML parser. | |
ChParserCfdYAML & | GetCfdParser () const |
Return the fluid YAML parser. | |
std::shared_ptr< fsi::ChFsiSystem > | GetFsiSystem () const |
Return the FSI system. | |
ChParserCfdYAML::FluidSystemType | GetFluidSystemType () const |
Return fluid system type. | |
std::shared_ptr< fsi::ChFsiFluidSystem > | GetFluidSystem () const |
Return the fluid system. | |
std::shared_ptr< ChSystem > | GetMultibodySystem () const |
Return the MBS system. | |
double | GetTimestep () const |
Get meta-step (communication time step). | |
double | GetEndtime () const |
Get simulation end time. More... | |
bool | Render () const |
Indicate whether to enable run-time visualization. | |
double | GetRenderFPS () const |
Return frequency (frames-per-second) for run-time visualization rendering. | |
virtual bool | Output () const override |
Indicate whether to enable simulation output. | |
virtual double | GetOutputFPS () const override |
Return frequency (frames-per-second) for simulation output. | |
![]() | |
void | SetVerbose (bool verbose) |
Set verbose terminal output (default: false). | |
void | SetOutputDir (const std::string &out_dir) |
Set root output directory (default: ""). | |
const std::string & | GetName () const |
Return the name of the YAML model. | |
ChOutput::Type | GetOutputType () const |
Return the output type. | |
virtual void | SaveOutput (int frame) |
Save simulation output results at the current time. | |
Additional Inherited Members | |
![]() | |
enum | DataPathType { ABS, REL } |
![]() | |
std::string | GetDatafilePath (const std::string &filename) |
Return the path to the specified data file. | |
![]() | |
static void | CheckVersion (const YAML::Node &a) |
static std::string | ToUpper (std::string in) |
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< ChFunction > | ReadFunction (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. | |
![]() | |
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< ChOutput > | m_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()
|
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