File kernel/src/modelingTools/FirstOrderLinearTIR.hpp

Go to the source code of this file

class FirstOrderLinearTIR : public FirstOrderR
#include <FirstOrderLinearTIR.hpp>

Linear Time Invariant Relation, derived from class FirstOrderR.

Linear Relation for First Order Dynamical Systems:

\[\begin{split}y &=& Cx(t) + Fz + D\lambda + e\\ R &=& B\lambda\end{split}\]

Public Functions

FirstOrderLinearTIR()

default constructor, protected

FirstOrderLinearTIR(SP::SimpleMatrix C, SP::SimpleMatrix B)

create the Relation from a set of data

Parameters
  • C: the matrix C
  • B: the matrix B

FirstOrderLinearTIR(SP::SimpleMatrix C, SP::SimpleMatrix D, SP::SimpleMatrix F, SP::SiconosVector e, SP::SimpleMatrix B)

create the Relation from a set of data

Parameters
  • C: the C matrix
  • D: the D matrix
  • F: the F matrix
  • e: the e matrix
  • B: the B matrix

virtual ~FirstOrderLinearTIR()

destructor

ACCEPT_STD_VISITORS()
void computeg(SiconosVector &lambda, BlockVector &r)

default function to compute g

Parameters
  • lambda:
  • r: non-smooth input

void computeh(BlockVector &x, SiconosVector &lambda, BlockVector &z, SiconosVector &y)

default function to compute h

Parameters
  • x:
  • lambda:
  • z:
  • y: value of h

virtual void computeInput(double time, Interaction &inter, unsigned int level = 0)

default function to compute r

Parameters

virtual void computeJacg(double time, Interaction &inter)

compute the jacobian of g: nothing to be done here

Parameters

virtual void computeJach(double time, Interaction &inter)

compute the jacobian of h: nothing to be done here

Parameters

virtual void computeOutput(double time, Interaction &inter, unsigned int level = 0)

default function to compute y

Parameters

void display() const

print the data to the screen

SP::SiconosVector e() const

get e

Return
e matrix

virtual bool isLinear()

Return
true if the relation is linear.

void setePtr(SP::SiconosVector newe)

set e

Parameters
  • newe: the new value of e

Protected Functions

ACCEPT_SERIALIZATION(FirstOrderLinearTIR)

serialization hooks

virtual void checkSize(Interaction &inter)

check sizes of the relation specific operators.

Parameters

virtual void initialize(Interaction &inter)

initialize the relation (check sizes, memory allocation …)

Parameters
  • inter: the interaction that owns this relation

Protected Attributes

SP::SiconosVector _e