31 this =
this@models.muscle.AMuscleConfig(varargin[:]);
56 if elemidx == 1 && faceidx == 2
59 if elemidx == 2 && faceidx == 5
85 geo = fem.geometry.RegularHex8Grid(0:1,-1:2,0:1);
87 geo = geo.toCube20Node;
93 geo = this.
FEM.Geometry;
96 displ_dir(:,geo.Elements(3,geo.MasterFaces(4,:))) =
true;
98 displ_dir(1,geo.Elements(3,[8 16 20])) =
false;
109 anull([1 3],:,:) = 1;
122 m = models.muscle.Model(models.muscle.examples.Cube2ForceBC);
function configureModel(m)
function alpha = getAlphaRamp(ramptime,double alphamax,double starttime)
Creates a linearly increasing scalar function starting at starttime milliseconds ranging from zero to...
static function test_Cube2ForceBC()
Cube2ForceBC(varargin)
Single cube with same config as reference element.
function anull = seta0(anull)
Direction is xz.
function displ_dir = setPositionDirichletBC(displ_dir)
% Dirichlet conditions: Position (fix one side)
A variable number of input arguments.
function geo = getGeometry()
Returns the intended geometry for this model config.
function P = getBoundaryPressure(elemidx, faceidx)
Determines the neumann forces on the boundary.