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
fem.geometry.BaseGeometry Class Reference

Detailed Description

Definition at line 19 of file BaseGeometry.m.

Public Member Functions

 BaseGeometry ()
 
function  plot (withdofnr, elem, pm)
 
function bounds = getBoundingBox (marginfac)
 
function
commonidx = 
getCommonNodesWith (other)
 
function  swapYZ ()
 
function copy = scale (factor)
 
function  reverseAxis (dim)
 
function [ sub ,

nodeidx , faces ] = 
getSubMesh (elems, faces)
 
function  toCMGUI (folder, name)
 

Static Public Member Functions

static function res = test_DemoGrids ()
 
static function  test_subMesh ()
 

Public Attributes

 Nodes
 n x 3 position vector of nodes More...
 
 Elements
 m x p index vector for all p nodes of m elements More...
 
 Edges
 2 x k index vector for edges between two points More...
 
 DofsPerElement
 
 MasterFaces
 
 PatchFacesIdx
 The indices of the nodes suitable for creating a patch surface object. More...
 
 PatchesPerFace
 
 Faces
 A 2 x N_F vector containing the element number in the first row and the face number on that element in the second row. More...
 
 OrientationCheckIndices
 
 ReverseAxesIndices
 
 NumElements
 
 NumNodes
 
 NumFaces
 
 NodesPerFace
 
 Width
 Returns the width of the geometry (x-range) More...
 
 Depth
 Returns the Depth of the geometry (y-range) More...
 
 Height
 Returns the Height of the geometry (z-range) More...
 
 FaceNormals
 Faces are: Idx : 1 2 3 4 5 6 Face: X- X+ Y- Y+ Z- Z+ Pos: Left Right Front Rear Bottom Top. More...
 
 FaceDims
 
 PatchFaces
 
- Public Attributes inherited from handle
 addlistener
 Creates a listener for the specified event and assigns a callback function to execute when the event occurs. More...
 
 notify
 Broadcast a notice that a specific event is occurring on a specified handle object or array of handle objects. More...
 
 delete
 Handle object destructor method that is called when the object's lifecycle ends. More...
 
 disp
 Handle object disp method which is called by the display method. See the MATLAB disp function. More...
 
 display
 Handle object display method called when MATLAB software interprets an expression returning a handle object that is not terminated by a semicolon. See the MATLAB display function. More...
 
 findobj
 Finds objects matching the specified conditions from the input array of handle objects. More...
 
 findprop
 Returns a meta.property objects associated with the specified property name. More...
 
 fields
 Returns a cell array of string containing the names of public properties. More...
 
 fieldnames
 Returns a cell array of string containing the names of public properties. See the MATLAB fieldnames function. More...
 
 isvalid
 Returns a logical array in which elements are true if the corresponding elements in the input array are valid handles. This method is Sealed so you cannot override it in a handle subclass. More...
 
 eq
 Relational functions example. See details for more information. More...
 
 transpose
 Transposes the elements of the handle object array. More...
 
 permute
 Rearranges the dimensions of the handle object array. See the MATLAB permute function. More...
 
 reshape
 hanges the dimensions of the handle object array to the specified dimensions. See the MATLAB reshape function. More...
 
 sort
 ort the handle objects in any array in ascending or descending order. More...
 

Protected Member Functions

function faces = computeFaces ()
 Computes the outward faces of this fem.geometry. More...
 
function  faceComputations (faces)
 % Also compute the PatchFaces index matrix More...
 
function  checkOrientation ()
 

Constructor & Destructor Documentation

fem.geometry.BaseGeometry.BaseGeometry ( )

Definition at line 179 of file BaseGeometry.m.

Member Function Documentation

function fem.geometry.BaseGeometry.checkOrientation ( )
protected

Definition at line 447 of file BaseGeometry.m.

References all(), Elements, Nodes, NumElements, OrientationCheckIndices, handle.reshape, and t.

Referenced by fem.geometry.Cube20Node.Cube20Node(), fem.geometry.Cube27Node.Cube27Node(), and fem.geometry.Cube8Node.Cube8Node().

Here is the call graph for this function:

Here is the caller graph for this function:

function faces = fem.geometry.BaseGeometry.computeFaces ( )
protected

Computes the outward faces of this fem.geometry.

Return values
facesA 2 x P index matrix of all P faces, containing the element index in the first row and the face number of that element that is outward in the second row. The face number is assigned as in FaceNormals.
innerA NumElements x 6 matrix with the indices of elements whose faces are opposing each other. Each column corresponds to the face number 1 to 6, sorted as given in FaceNormals.

Definition at line 378 of file BaseGeometry.m.

References Elements, faceComputations(), l, MasterFaces, NumElements, handle.sort, and t.

Referenced by fem.geometry.Cube20Node.Cube20Node(), fem.geometry.Cube27Node.Cube27Node(), fem.geometry.Cube8Node.Cube8Node(), and fem.geometry.Cube27Node.swapYZ().

Here is the call graph for this function:

Here is the caller graph for this function:

function fem.geometry.BaseGeometry.faceComputations (   faces)
protected

% Also compute the PatchFaces index matrix

Definition at line 421 of file BaseGeometry.m.

References Elements, Faces, k, PatchesPerFace, PatchFaces, PatchFacesIdx, and handle.reshape.

Referenced by computeFaces().

Here is the caller graph for this function:

function bounds = fem.geometry.BaseGeometry.getBoundingBox (   marginfac)

Definition at line 238 of file BaseGeometry.m.

References Nodes.

function commonidx = fem.geometry.BaseGeometry.getCommonNodesWith (   other)

Definition at line 248 of file BaseGeometry.m.

References Utils.findVecInMatrix(), and Nodes.

Here is the call graph for this function:

function [sub , nodeidx , faces ] = fem.geometry.BaseGeometry.getSubMesh (   elems,
  faces 
)

Definition at line 271 of file BaseGeometry.m.

References Elements, Faces, k, Nodes, NumFaces, and t.

function fem.geometry.BaseGeometry.plot (   withdofnr,
  elem,
  pm 
)
function fem.geometry.BaseGeometry.reverseAxis (   dim)

Definition at line 266 of file BaseGeometry.m.

References NumElements.

function copy = fem.geometry.BaseGeometry.scale (   factor)

Definition at line 258 of file BaseGeometry.m.

References Elements, and Nodes.

function fem.geometry.BaseGeometry.swapYZ ( )

Definition at line 253 of file BaseGeometry.m.

static function res = fem.geometry.BaseGeometry.test_DemoGrids ( )
static

Definition at line 567 of file BaseGeometry.m.

static function fem.geometry.BaseGeometry.test_subMesh ( )
static

Definition at line 580 of file BaseGeometry.m.

function fem.geometry.BaseGeometry.toCMGUI (   folder,
  name 
)

Definition at line 301 of file BaseGeometry.m.

References Edges, Elements, Faces, Utils.findVecInMatrix(), Nodes, NumElements, NumNodes, PatchFacesIdx, handle.sort, and t.

Here is the call graph for this function:

Member Data Documentation

fem.geometry.BaseGeometry.Depth

Returns the Depth of the geometry (y-range)

Note
This property has the MATLAB attribute Dependent set to true.
Matlab documentation of property attributes.
[readonly]

Definition at line 122 of file BaseGeometry.m.

fem.geometry.BaseGeometry.DofsPerElement
fem.geometry.BaseGeometry.Edges

2 x k index vector for edges between two points

Note
This property has non-standard access specifiers: SetAccess = Protected, GetAccess = Public
Matlab documentation of property attributes.

Definition at line 52 of file BaseGeometry.m.

Referenced by fem.geometry.Cube20Node.Cube20Node(), fem.geometry.Cube27Node.Cube27Node(), fem.geometry.Cube8Node.Cube8Node(), plot(), and toCMGUI().

fem.geometry.BaseGeometry.FaceDims
Initial value:
= logical("[0 0 1 1 1 1\
1 1 0 0 1 1\
1 1 1 1 0 0]")

Definition at line 168 of file BaseGeometry.m.

fem.geometry.BaseGeometry.FaceNormals
Initial value:
= "[-1 1 0 0 0 0\
0 0 -1 1 0 0\
0 0 0 0 -1 1]"

Faces are: Idx : 1 2 3 4 5 6 Face: X- X+ Y- Y+ Z- Z+ Pos: Left Right Front Rear Bottom Top.

Note
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.
Default: "[-1 1 0 0 0 0\ 0 0 -1 1 0 0\ 0 0 0 0 -1 1]"

Definition at line 148 of file BaseGeometry.m.

fem.geometry.BaseGeometry.Faces

A 2 x N_F vector containing the element number in the first row and the face number on that element in the second row.

Note
This property has non-standard access specifiers: SetAccess = Protected, GetAccess = Public
Matlab documentation of property attributes.

Definition at line 83 of file BaseGeometry.m.

Referenced by fem.geometry.Cube20Node.Cube20Node(), fem.geometry.Cube27Node.Cube27Node(), fem.geometry.Cube8Node.Cube8Node(), faceComputations(), getSubMesh(), fem.geometry.Cube27Node.swapYZ(), and toCMGUI().

fem.geometry.BaseGeometry.Height

Returns the Height of the geometry (z-range)

Note
This property has the MATLAB attribute Dependent set to true.
Matlab documentation of property attributes.
[readonly]

Definition at line 133 of file BaseGeometry.m.

fem.geometry.BaseGeometry.MasterFaces
fem.geometry.BaseGeometry.NodesPerFace
Note
[readonly]

Definition at line 108 of file BaseGeometry.m.

fem.geometry.BaseGeometry.NumElements
Note
[readonly]

Definition at line 102 of file BaseGeometry.m.

Referenced by checkOrientation(), computeFaces(), plot(), reverseAxis(), and toCMGUI().

fem.geometry.BaseGeometry.NumFaces
Note
[readonly]

Definition at line 106 of file BaseGeometry.m.

Referenced by getSubMesh().

fem.geometry.BaseGeometry.NumNodes
Note
[readonly]

Definition at line 104 of file BaseGeometry.m.

Referenced by plot(), and toCMGUI().

fem.geometry.BaseGeometry.OrientationCheckIndices
fem.geometry.BaseGeometry.PatchesPerFace
fem.geometry.BaseGeometry.PatchFaces

Definition at line 173 of file BaseGeometry.m.

Referenced by faceComputations().

fem.geometry.BaseGeometry.PatchFacesIdx

The indices of the nodes suitable for creating a patch surface object.

Note
This property has non-standard access specifiers: SetAccess = Protected, GetAccess = Public
Matlab documentation of property attributes.

Definition at line 69 of file BaseGeometry.m.

Referenced by fem.geometry.Cube20Node.Cube20Node(), fem.geometry.Cube27Node.Cube27Node(), fem.geometry.Cube8Node.Cube8Node(), faceComputations(), and toCMGUI().

fem.geometry.BaseGeometry.ReverseAxesIndices
fem.geometry.BaseGeometry.Width

Returns the width of the geometry (x-range)

Note
This property has the MATLAB attribute Dependent set to true.
Matlab documentation of property attributes.
[readonly]

Definition at line 111 of file BaseGeometry.m.


The documentation for this class was generated from the following file: