23 #include "mbsim/dynamic_system.h"
51 virtual void updatedu();
52 virtual void updatezd();
53 virtual void sethSize(
int h,
int j=0) {(this->*sethSize_[j])(h);}
54 virtual void calcqSize();
55 virtual void calcuSize(
int j=0) {(this->*calcuSize_[j])();}
56 virtual void setqInd(
int qInd);
57 virtual void setuInd(
int uInd,
int j=0) {(this->*setuInd_[j])(uInd);}
58 virtual void sethInd(
int hInd,
int j=0) {(this->*sethInd_[j])(hInd);}
61 virtual std::string
getType()
const {
return "Graph"; }
68 void (
Graph::*calcuSize_[2])();
69 void (
Graph::*sethSize_[2])(
int h);
70 void (
Graph::*setuInd_[2])(
int uInd);
71 void (
Graph::*sethInd_[2])(
int hInd);
75 void sethSize0(
int h);
76 void sethSize1(
int h);
77 void setuInd0(
int uInd);
78 void setuInd1(
int uInd);
79 void sethInd0(
int hInd);
80 void sethInd1(
int hInd);
92 const std::vector< std::vector<Object*> >& getObjects()
const {
return obj; }
98 std::vector< std::vector<Object*> >
obj;
void updateLLM()
compute Cholesky decomposition of mass matrix TODO necessary?
Definition: graph.cc:124
Graph(const std::string &name)
constructor
Definition: graph.cc:29
void addObject(int level, Object *object)
add new object to graph at level
Definition: graph.cc:128
fmatvec::Vec h[2]
smooth, smooth with respect to objects, smooth with respect to links and nonsmooth ...
Definition: dynamic_system.h:846
std::vector< std::vector< Object * > > obj
none
Definition: graph.h:98
virtual std::string getType() const
Definition: graph.h:61
dynamic system as topmost hierarchical level
Definition: dynamic_system.h:59
class for tree-structured mechanical systems with recursive and flat memory mechanism ...
Definition: graph.h:37
std::string name
name of element
Definition: element.h:298
virtual ~Graph()
destructor
Definition: graph.cc:40
class for all objects having own dynamics and mass
Definition: object.h:42