Description

Base class for a Chrono output database.

#include <ChOutput.h>

Inheritance diagram for chrono::ChOutput:

Public Types

enum  Type { Type::ASCII, Type::HDF5, Type::NONE }
 Output type. Currently supported options are ASCII and HDF5. More...
 
enum  Mode { Mode::FRAMES, Mode::SERIES }
 Output mode options. More...
 

Public Member Functions

virtual void Initialize ()=0
 
virtual void WriteTime (int frame, double time)=0
 
virtual void WriteSection (const std::string &name)=0
 
virtual void WriteBodies (const std::vector< std::shared_ptr< ChBody >> &bodies)=0
 
virtual void WriteAuxRefBodies (const std::vector< std::shared_ptr< ChBodyAuxRef >> &bodies)=0
 
virtual void WriteMarkers (const std::vector< std::shared_ptr< ChMarker >> &markers)=0
 
virtual void WriteShafts (const std::vector< std::shared_ptr< ChShaft >> &shafts)=0
 
virtual void WriteJoints (const std::vector< std::shared_ptr< ChLink >> &joints)=0
 
virtual void WriteCouples (const std::vector< std::shared_ptr< ChShaftsCouple >> &couples)=0
 
virtual void WriteLinSprings (const std::vector< std::shared_ptr< ChLinkTSDA >> &springs)=0
 
virtual void WriteRotSprings (const std::vector< std::shared_ptr< ChLinkRSDA >> &springs)=0
 
virtual void WriteBodyBodyLoads (const std::vector< std::shared_ptr< ChLoadBodyBody >> &loads)=0
 
virtual void WriteLinMotors (const std::vector< std::shared_ptr< ChLinkMotorLinear >> &motors)=0
 
virtual void WriteRotMotors (const std::vector< std::shared_ptr< ChLinkMotorRotation >> &motors)=0
 

Static Public Member Functions

static std::string GetOutputTypeAsString (Type type)
 
static std::string GetOutputModeAsString (Mode mode)
 

Member Enumeration Documentation

◆ Mode

Output mode options.

  • FRAMES: output is organized in groups for each seperate frame; suitable for postprocessing (e.g., rendering).
  • SERIES: output is organized by model components, each of them containing time-series for their various output quantities; suitable for plotting results.
Enumerator
FRAMES 

organize output on a frame-by-frame basis

SERIES 

organize output on component-by-component basis

◆ Type

Output type. Currently supported options are ASCII and HDF5.

Enumerator
ASCII 

ASCII text.

HDF5 

HDF-5.

NONE 

no output


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono/output/ChOutput.h