47 this =
this@models.BaseSecondOrderSystem(model);
64 this.
addParam(
" Grass friction ",0.03);
70 x0 = dscomponents.AffineInitialValue;
71 x0.addMatrix(
" mu(1) ",[1;0]);
72 x0.addMatrix(
" mu(2) ",[0;1]);
75 this.
f= models.golf.Force(
this);
85 maxv = sqrt((1/(2*m.rad_ball)) * mu(7) * (2*m.rad_hole - m.rad_ball)^2 );
94 if (dt > 2*m.rad_hole/maxv) || (dt > 1/24)
function val = getDerivativeInitialValues(colvec< double > mu)
function updateSparsityPattern()
The state space vector (NumTotalDofs) is composed of x: Original state space of second order model...
The base class for any KerMor detailed model.
function updateDimensions()
Model
The Model this System is attached to.
inputidx
The current inputindex of the function .
Base class for all KerMor second-order dynamical systems.
dscomponents.AInitialValue x0
Function handle to initial state evaluation.
System(models.BaseFullModel model)
mu
The current parameter for simulations, [] is none used.
function prepareSimulation(colvec< double > mu,integer inputidx)
dscomponents.ACoreFun f
The core f function from the dynamical system.
double MaxTimestep
The maximum timestep allowed for any ODE solvers.
function ModelParam p = addParam(char name, default, varargin)
Adds a parameter with the given values to the parameter collection of the current dynamical system...
function dv = getDerivativeDirichletValues()