31 this =
this@models.muscle.AMuscleConfig(varargin[:]);
41 m.ODESolver.RelTol= 1e-6;
42 m.ODESolver.AbsTol= 1e-6;
54 if faceidx == 2 && ((o.GeoNr == 1 && elemidx == 1) || ...
55 (o.GeoNr == 2 && any(elemidx == 5:8)))
87 geo = fem.geometry.RegularHex8Grid([0 1],[0 1],[0 1]);
89 geo = fem.geometry.RegularHex8Grid(0:2,0:2,0:2);
91 geo = geo.toCube27Node;
101 geo = this.
FEM.Geometry;
104 displ_dir(:,geo.Elements(1,geo.MasterFaces(1,:))) =
true;
106 displ_dir(1:2,geo.Elements(1,geo.MasterFaces(2,:))) =
true;
109 displ_dir(:,geo.Elements(1:4,geo.MasterFaces(1,:))) =
true;
111 displ_dir(1:2,geo.Elements(5:8,geo.MasterFaces(2,:))) =
true;
118 geo = this.
FEM.Geometry;
122 velo_dir(3,geo.Elements(1,geo.MasterFaces(2,:))) =
true;
124 velo_dir(3,geo.Elements(5:8,geo.MasterFaces(2,:))) =
true;
126 velo_dir_val(velo_dir) = .1;
149 f = models.muscle.examples.Shear(
" GeoNr ",g,
" BC ",b);
153 m.plot(
t,y,
" Lambdas ",
true);
static function test_Shear()
function addOption(name, default, varargin)
function alpha = getAlphaRamp(ramptime,double alphamax,double starttime)
Creates a linearly increasing scalar function starting at starttime milliseconds ranging from zero to...
function anull = seta0(anull)
function [ velo_dir , velo_dir_val ] = setVelocityDirichletBC(velo_dir, velo_dir_val)
Determines the dirichlet velocities.
A variable number of input arguments.
function P = getBoundaryPressure(elemidx, faceidx)
Determines the neumann forces on the boundary.
double T
The final timestep up to which to simulate.
function geo = getGeometry()
Single cube with same config as reference element.
function configureModel(m)
An example illustrating shear forces.
function displ_dir = setPositionDirichletBC(displ_dir)
Model: Model for a FEM-discretized muscle model.