This module enables:
- specifying Chrono models and simulations in YAML
- importing models from 3rd-party specification files
- URDF (requires external library)
- OpenSim
- Adams
- interacting with Python language (requires Python interpreter)
Note that import of fnite element models (meshes) can be done using the ChMeshFileLoader class, available in the main Chrono module (so no need for the PARSERS module). This class enables the import of Abaqus, TetGen, GMF (LS-DYNA) or generic OBJ files, but only for very specific elements and is not a full-fledged FE import tool.
Installation guide for Chrono::Parsers
YAML parser
The various YAML parser classes allows parsing YAML specification files for Chrono models and simulations. The parsers cache model information and simulation settings from the corresponding YAML input files and then allows populating a Chrono or Chrono::FSI system and setting solver and simulation parameters.
YAML specification of multiobdy models and simulations
- Overview of the YAML parser for Chrono models and simulations
- YAML schema for Chrono MBS model specification
- YAML schema for Chrono MBS simulation specification
YAML specification of vehicle models
YAML specification of FSI problems
- YAML schema for Chrono::FSI problem specification
- YAML schema for Chrono::SPH model specification
- YAML schema for Chrono::SPH fluid simulation specification
Python Engine (is not PyChrono)
The ChPythonEngine class allows to run Python code directly from C++ and to interact with it, also exchanging data from/to variables.
It should not be confused with PyChrono that is a completely stand-alone Python library that wraps Chrono C++ code.
- ChPythonEngine allows to run generic Python code from C++
- PyChrono allows to use Chrono from Python
Through this class the user can also import models exported from SolidWorks to Python, by means of the method ChPythonEngine::ImportSolidWorksSystem(). Please refer to the Chrono::SolidWorks reference manual for additional information. Please just be aware that this is not the only way to import SolidWorks models.
Demo about generic Python interaction: demo_PARSER_Python.cpp