31 this =
this@models.muscle.AMuscleConfig(varargin[:]);
53 m.SpaceReducer.Value= m.System.NumStateDofs;
65 if elemidx == 1 && faceidx == 3
91 geo = fem.geometry.RegularHex8Grid([0 5],-1:10,[0 5]);
92 geo = geo.toCube27Node;
103 geo = this.
FEM.Geometry;
106 displ_dir(2,geo.Elements(end,geo.MasterFaces(4,:))) =
true;
107 displ_dir(:,geo.Elements(end,geo.MasterFaces(4,1))) =
true;
131 m = models.muscle.Model(models.muscle.examples.CubePull);
132 mu = m.getRandomParam;
134 m.simulateAndPlot(
true,mu,1);
static function test_CubePull()
function alpha = getAlphaRamp(ramptime,double alphamax,double starttime)
Creates a linearly increasing scalar function starting at starttime milliseconds ranging from zero to...
function configureModel(m)
function anull = seta0(anull)
Direction is xz anull([1 3],:,:) = 1;.
function geo = getGeometry()
geo = fem.geometry.RegularHex8Grid([0 2.5 5],-1:20,[0 2.5 5]);
function configureModelFinal()
Set desired reduction to full state space dimension by default.
A variable number of input arguments.
double T
The final timestep up to which to simulate.
function displ_dir = setPositionDirichletBC(displ_dir)
% Dirichlet conditions: Position (fix one side)
CubePull(varargin)
Single cube with same config as reference element.
function P = getBoundaryPressure(elemidx, faceidx)
Determines the neumann forces on the boundary.
Model: Model for a FEM-discretized muscle model.