basic class of MBSim mainly for plotting More...
#include <element.h>
Public Types | |
| enum | InitStage { resolveStringRef =0, preInit, plotting, unknownStage, LASTINITSTAGE } |
| The stages of the initialization. More... | |
Public Types inherited from fmatvec::Atom | |
| enum | MsgType |
Public Member Functions | |
| Element (const std::string &name) | |
| constructor | |
| ~Element () override=default | |
| destructor | |
| void | throwError (const std::string &msg) const |
| virtual void | setDynamicSystemSolver (DynamicSystemSolver *sys) |
| sets the used dynamics system solver to the element More... | |
| virtual void | plot () |
| plots time dependent data More... | |
| virtual void | plotAtSpecialEvent () |
| plots time dependent data at special events More... | |
| const std::string & | getName () const |
| void | setName (const std::string &str) |
| void | setPath (const std::string &str) |
| DynamicSystemSolver * | getDynamicSystemSolver () |
| virtual void | init (InitStage stage, const InitConfigSet &config) |
| plots time series header More... | |
| virtual void | createPlotGroup () |
| creates the plotGroup for H5-output | |
| H5::GroupBase * | getPlotGroup () |
| bool | getPlotFeature (const PlotFeatureEnum &pf) |
| virtual void | setPlotFeature (const PlotFeatureEnum &pf, bool value) |
| Set a plot feature. More... | |
| void | setPlotFeatureForChildren (const PlotFeatureEnum &pf, bool value) |
| Set a plot feature for the children of this object. More... | |
| void | setPlotFeatureRecursive (const PlotFeatureEnum &pf, bool value) |
| Set a plot feature for this object and the children of this object. More... | |
| virtual void | initializeUsingXML (xercesc::DOMElement *element) |
| template<class T > | |
| T * | getByPath (const std::string &path, bool initialCaller=true) const |
| Get the object of type T represented by the path path. Do not set any argurment other than path! | |
| std::string | getPath (const Element *relTo=nullptr, std::string sep="/") const |
| Return the path of this object. If relativeTo is not NULL return a relative path to relativeTo. Do not set any argurment other than relTo and sep! | |
| virtual Element * | getChildByContainerAndName (const std::string &container, const std::string &name) const |
| Get the Element named name in the container named container. | |
|
virtual std::shared_ptr < OpenMBV::Group > | getOpenMBVGrp () |
| virtual Element * | getParent () |
| virtual const Element * | getParent () const |
| virtual void | setParent (Element *parent_) |
| std::vector< Element * > | getDependencies () const |
| checks dependency on other elements. More... | |
| void | addDependency (Element *ele) |
| int | computeLevel () |
| computes the length of the pathes in the graph that represents the dependencies between all elements. More... | |
| virtual void | updatePositions (Frame *frame) |
| virtual void | updateVelocities (Frame *frame) |
| virtual void | updateAccelerations (Frame *frame) |
| virtual void | updateJacobians (Frame *frame, int j=0) |
| virtual void | updateGyroscopicAccelerations (Frame *frame) |
| virtual void | resetUpToDate () |
| const double & | getTime () const |
| double | getStepSize () const |
|
const MBXMLUtils::DOMEvalException & | getDOMEvalError () const |
Public Member Functions inherited from fmatvec::Atom | |
| Atom & | operator= (const Atom &) |
| void | setMessageStreamActive (MsgType type, bool activeFlag) |
| void | getMessageStream (MsgType type, std::shared_ptr< bool > &a, std::shared_ptr< std::ostream > &s) const |
| void | adoptMessageStreams (const Atom *src=nullptr) |
| std::ostream & | msg (MsgType type) const |
| bool | msgAct (MsgType type) const |
Protected Member Functions | |
| void | updatePlotFeatures () |
Protected Member Functions inherited from fmatvec::Atom | |
| Atom (const Atom &src) | |
Protected Attributes | |
| Element * | parent |
| std::string | name |
| name of element | |
| std::string | path |
| The path of this object. Is set during the init stage reorganizeHierarchy. Before this the path is calculated dynamically using getPath() after this stage getPath just returns this value. | |
| MBXMLUtils::DOMEvalException | domEvalError |
| Special XML helper variable. | |
| DynamicSystemSolver * | ds |
| dynamic system | |
| H5::VectorSerie< double > * | plotVectorSerie |
| time series | |
| std::vector< double > | plotVector |
| one entry of time series | |
| std::vector< std::string > | plotColumns |
| columns of time series | |
| H5::GroupBase * | plotGroup |
| associated plot group | |
| std::vector< Element * > | dependency |
| vector containing all dependencies. | |
| PlotFeatureMap | plotFeature |
| plot feature | |
| PlotFeatureMap | plotFeatureForChildren |
Additional Inherited Members | |
Static Public Member Functions inherited from fmatvec::Atom | |
| static void | setCurrentMessageStream (MsgType type, const std::shared_ptr< bool > &a=std::make_shared< bool >(true), const std::shared_ptr< std::ostream > &s=std::make_shared< std::ostream >(std::cout.rdbuf())) |
| static std::ostream & | msgStatic (MsgType type) |
| static bool | msgActStatic (MsgType type) |
basic class of MBSim mainly for plotting
The stages of the initialization.
see also DynamicSystemSolver::init()
| int MBSim::Element::computeLevel | ( | ) |
computes the length of the pathes in the graph that represents the dependencies between all elements.
|
inline |
checks dependency on other elements.
|
inline |
|
inline |
|
inline |
Get the state of the plot feature pf. Returns false if the plot feature pf is not set till now.
|
inline |
|
virtual |
plots time series header
| invocing | parent class |
Reimplemented in MBSim::SymbolicFunction< Ret(Arg1, Arg2)>, MBSim::SymbolicFunction< Ret(Arg)>, MBSim::Object, MBSim::PiecewiseDefinedFunction< Ret(Arg)>, MBSim::InverseKineticsJoint, MBSim::TwoDimensionalPiecewisePolynomFunction< Ret(Arg1, Arg2)>, MBSim::CompositeFunction< Ret(Argo(Argi))>, MBSim::VectorValuedFunction< Ret(Arg)>, MBSim::DynamicSystemSolver, MBSim::DynamicSystem, MBSim::SingleContact, MBSim::TwoDimensionalTabularFunction< Ret(Arg1, Arg2)>, MBSim::DiskContact, MBSim::RigidBody, MBSim::Contact, MBSim::PiecewiseDefinedFunction< Ret(double)>, MBSim::MaxwellContact, MBSim::Link, MBSim::FourierFunction< Ret(Arg)>, MBSim::PiecewisePolynomFunction< Ret(Arg)>, MBSim::TabularFunction< Ret(Arg)>, MBSim::CompositeFunction< Ret(Argo(double))>, MBSim::Joint, MBSim::Body, MBSim::BidirectionalFunction< Ret(Arg)>, MBSim::VectorValuedFunction< Ret(double)>, MBSim::RigidBodyLink, MBSim::Point, MBSim::RigidBodyObserver, MBSim::DirectionalSpringDamper, MBSim::SingleContactObserver, MBSim::NonlinearSpringDamperForce, MBSim::PlanarNurbsContour, MBSim::SpatialNurbsContour, MBSim::SpringDamper, MBSim::ContinuedFunction< Ret(Arg)>, MBSim::RigidContour, MBSim::FrameObserver, MBSim::PlanarContour, MBSim::SpatialContour, MBSim::KineticExcitation, MBSim::KinematicCoordinatesObserver, MBSim::Gearing, MBSim::IsotropicRotationalSpringDamper, MBSim::PolynomialFrustum, MBSim::Frame, MBSim::LinearRegularizedStribeckFriction, MBSim::GeneralizedFriction, MBSim::CompoundContour, MBSim::StateDependentFunction< Ret >, MBSim::TimeDependentFunction< Ret >, MBSim::ContactObserver, MBSim::MaxwellContactObserver, MBSim::MechanicalLinkObserver, MBSim::Plate, MBSim::GeneralizedElasticStructure, MBSim::InverseKinematicsConstraintObserver, MBSim::MechanicalConstraintObserver, MBSim::Frustum, MBSim::LineSegment, MBSim::ElasticJoint, MBSim::ContourLink, MBSim::PlanarStribeckFriction, MBSim::PlanarStribeckImpact, MBSim::SpatialStribeckFriction, MBSim::SpatialStribeckImpact, MBSim::InverseKinematicsConstraint, MBSim::Circle, MBSim::LinearElasticFunction, MBSim::RigidBodySystemObserver, MBSim::RegularizedConstraint, MBSim::JointConstraint, MBSim::Cuboid, MBSim::FloatingFrameLink, MBSim::GeneralizedGear, MBSim::CylindricalGear, MBSim::Disk, MBSim::PlanarFrustum, MBSim::Rack, MBSim::Room, MBSim::Sphere, MBSim::RelativeKinematicsObserver, MBSim::GeneralizedConnection, MBSim::GeneralizedKinematicExcitation, MBSim::ContourQuad, MBSim::GeneralizedSpringDamper, MBSim::FrameLink, MBSim::GeneralizedElasticConnection, MBSim::RegularizedFriction, MBSim::FixedFrameLink, MBSim::GeneralizedConstraint, MBSim::FixedRelativeFrame, MBSim::FloatingRelativeFrame, MBSim::GeneralizedAccelerationExcitation, MBSim::GeneralizedVelocityExcitation, MBSim::GeneralizedDualConstraint, MBSim::PolynomFunction< Ret(Arg)>, MBSim::GeneralizedPositionExcitation, MBSim::GeneralizedAccelerationConstraint, MBSim::GeneralizedVelocityConstraint, MBSim::DualRigidBodyLink, MBSim::GeneralizedGearConstraint, MBSim::GeneralizedPositionConstraint, MBSim::PolarContourFunction, MBSim::Observer, and MBSim::GeneralizedConnectionConstraint.
|
virtual |
plots time dependent data
| simulation | time |
| simulation | time step size for derivative calculation |
Reimplemented in MBSim::DynamicSystemSolver, MBSim::Contact, MBSim::MaxwellContact, MBSim::DynamicSystem, MBSim::RigidBody, MBSim::Link, MBSim::KineticExcitation, MBSim::DirectionalSpringDamper, MBSim::Object, MBSim::SpringDamper, MBSim::Body, MBSim::RigidBodyObserver, MBSim::SingleContactObserver, MBSim::FrameObserver, MBSim::KinematicCoordinatesObserver, MBSim::RigidContour, MBSim::Frame, MBSim::ContactObserver, MBSim::MaxwellContactObserver, MBSim::MechanicalLinkObserver, MBSim::InverseKinematicsConstraintObserver, MBSim::MechanicalConstraintObserver, MBSim::RigidBodySystemObserver, MBSim::CompoundContour, and MBSim::RelativeKinematicsObserver.
|
inlinevirtual |
plots time dependent data at special events
| simulation | time |
| simulation | time step size for derivative calculation |
Reimplemented in MBSim::DynamicSystem.
|
inlinevirtual |
sets the used dynamics system solver to the element
| pointer | to the dynamic system solver of which the element is part of |
Reimplemented in MBSim::Contact, MBSim::MaxwellContact, MBSim::DynamicSystem, MBSim::Body, MBSim::ContactObserver, and MBSim::MaxwellContactObserver.
|
inline |
| element | name |
|
virtual |
Set a plot feature.
Set the plot feature pf of this object.
| void MBSim::Element::setPlotFeatureForChildren | ( | const PlotFeatureEnum & | pf, |
| bool | value | ||
| ) |
Set a plot feature for the children of this object.
Set the plot feature pf of all children for set plot features.
|
inline |
Set a plot feature for this object and the children of this object.
This is a convenience function. It simply calls setPlotFeature and setPlotFeatureForChildren.