Description

ADAMS input file parser.

#include <ChParserAdams.h>

Classes

class  Report
 Report containing information about objects parsed from file. More...
 

Public Types

enum  VisType { LOADED, NONE }
 

Public Member Functions

void SetVisualizationType (VisType val)
 Set body visualization type (default: NONE).
 
void SetVerbose (bool val)
 Enable/disable verbose parsing output (default: false).
 
void Parse (ChSystem &sys, const std::string &filename)
 Parse the specified Adams input file and create the model in the given system. More...
 
ChSystemParse (const std::string &filename, ChMaterialSurface::ContactMethod contact_method=ChMaterialSurface::NSC)
 Parse the specified Adams input file and create the model in a new system. More...
 
const std::vector< std::shared_ptr< ChBodyAuxRef > > & GetBodyList () const
 Get the list of bodies in the model.
 
const std::vector< std::shared_ptr< ChLink > > & GetJointList () const
 Get the list of joints in the model.
 
int yylex ()
 
const ReportGetReport () const
 Get the report for this parser. More...
 
void PrintReport () const
 Print the parser's report.
 

Public Attributes

std::vector< std::pair< int, std::string > > m_tokens
 

Member Function Documentation

◆ GetReport()

const Report& chrono::utils::ChParserAdams::GetReport ( ) const
inline

Get the report for this parser.

This contains the lists of bodies, joints, and forces that were created from the input osim file.

◆ Parse() [1/2]

void chrono::utils::ChParserAdams::Parse ( ChSystem sys,
const std::string &  filename 
)

Parse the specified Adams input file and create the model in the given system.

Parameters
[in]syscontaining Chrono system
[in]filenameAdams input file name

◆ Parse() [2/2]

ChSystem * chrono::utils::ChParserAdams::Parse ( const std::string &  filename,
ChMaterialSurface::ContactMethod  contact_method = ChMaterialSurface::NSC 
)

Parse the specified Adams input file and create the model in a new system.

Note that the created system is not deleted in the parser's destructor; rather, ownership is transferred to the caller.

Parameters
[in]filenameAdams input file name
[in]contact_methodcontact method

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