KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Cube12.m
Go to the documentation of this file.
1 namespace models{
2 namespace muscle{
3 namespace examples{
4 
5 
6 /* (Autoinserted by mtoc++)
7  * This source code has been filtered by the mtoc++ executable,
8  * which generates code that can be processed by the doxygen documentation tool.
9  *
10  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
11  * Except for the comments, the function bodies of your M-file functions are untouched.
12  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
13  * attached source files that are highly readable by humans.
14  *
15  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
16  * the correct locations in the source code browser.
17  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
18  */
19 
20 class Cube12
28  public:
29 
31  this = this@models.muscle.AMuscleConfig(varargin[:]);
32  this.init;
33  }
34 
35 
36  function configureModel(m) {
37  configureModel@models.muscle.AMuscleConfig(this, m);
38  m.T= 40;
39  m.dt= .05;
40  /* Activate over 20ms */
41  m.DefaultMu(2) = 20;
42  m.DefaultMu(13) = .1; /* [MPa] */
43 
44  }
45 
46 
47  protected:
48 
49 
50  function geo = getGeometry() {
51  geo = fem.geometry.RegularHex8Grid(-1:1,-1:2,-1:1);
52  geo = geo.toCube20Node;
53  }
54 
55 
56  function displ_dir = setPositionDirichletBC(displ_dir) {
57  geo = this.FEM.Geometry;
58  for k = [5 6 11 12]
59  displ_dir(:,geo.Elements(k,geo.MasterFaces(4,:))) = true;
60  end
61  }
62 
63 
64  function anull = seta0(anull) {
65  anull([1 3],:,:) = 1;
66  }
75  public: /* ( Static ) */
76 
77  static function test_Cube12() {
78  m = models.muscle.Model(models.muscle.examples.Cube12);
79  m.simulateAndPlot;
80  }
81 
82 
83 
84 };
85 }
86 }
87 }
88 
89 
90 
function anull = seta0(anull)
Direction is xz.
Definition: Cube12.m:64
A variable number of input arguments.
function displ_dir = setPositionDirichletBC(displ_dir)
Definition: Cube12.m:56
static function test_Cube12()
Definition: Cube12.m:77
function configureModel(m)
Definition: Cube12.m:36
function geo = getGeometry()
Returns the intended geometry for this model config.
Definition: Cube12.m:50