rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
List of all members | Public Member Functions | Public Attributes
Fem.CompositeFunctionSpace Class Reference

Detailed Description

Composite function space for composition of FE function spaces on same grid.

Definition at line 18 of file CompositeFunctionSpace.m.

Inheritance diagram for Fem.CompositeFunctionSpace:
Inheritance graph
[legend]
Collaboration diagram for Fem.CompositeFunctionSpace:
Collaboration graph
[legend]

Public Member Functions

 CompositeFunctionSpace (varargin)
 Constructor. More...
 
function this = set (index, value)
 Sets a child at the given path in the tree hierarchy. More...
 
function  consistency_check ()
 grids have to be identical
 
function res = evaluate_basis (lcoord)
 evaluation of all basis functions in local coordinate More...
 
function res = evaluate_scalar_basis_derivative (lcoord, ncomp)
 evaluation of the gradient of a scalar basis in local coordinate More...
 
function res = evaluate_basis_function (lcoord, i)
 evaluation of i-th basis function in local coordinate More...
 
function res = evaluate_basis_function_derivative (lcoord, i)
 evaluation of the gradient of i-th basis function in local coordinate More...
 
function res = get_global_dof_index (varargin)
 returns entries of global-dof-map for several elements and several local dof ids More...
 
function res = get_dof_ids_global (ncomp)
 returns global dof ids belonging to one component (indices into DOF-vector) More...
 
function df = interpol_local (func, params)
 returns an instance of Fem.DiscFunc which interpolates the given analytical function, that can be evaluated at (grid,elinds,lcoord,params) More...
 
- Public Member Functions inherited from Fem.IFemInfo
virtual function  get_global_dof_index (einds, gids)
 returns entries of global-dof-map for several elements and several local dof ids More...
 
function df = interpol_global (func, params)
 interpolates a given analytical function that can be evaluated at (glob, params) More...
 
- Public Member Functions inherited from DataTree.INode
virtual function DataTree.INode tree = create_tree (DataTree.ICreator creator, ids, mu_cube, tslice, basepath)
 Creates a new tree from a subtree specified by ids, parameter and time index regions. More...
 
function  leaf_func (funcptr, ids, mu_cube, tslice)
 applies a function to all leafs of a DataTree More...
 
function tree = create_scalar_tree (funcptr, ids, mu_cube, tslice)
 copies the current trees with different leafs. These leafs are computes by a function returning scalar values. More...
 
function
start_index = 
traverse_start ()
 Start iterator for a full traverse of the DataTree. More...
 
function
next_index = 
traverse_next (this_index)
 iterator for a full traverse of the DataTree. More...
 
function
description = 
get_active_leaf_description (IModel model, ids)
 returns an enumeration of all leaves' basepath index vectors with a description of their parents. More...
 
function
description = 
get_leaf_description (ids, mu_cube, tslice)
 returns an enumeration of all leaves' basepath index vectors with a description of their parents. More...
 
function tstop = index_valid_till (index)
 Returns the last valid time step index of a time slice. More...
 
function INode data = get_by_description (id, mu, nt)
 A combination of get_index() and get() More...
 
function
active_leaf_index = 
get_active_leaf_index (IModel model, id)
 retuns the leaf element index for the current IDetailedModel configuration. More...
 
function DataTree.LeafNode
active_leaf = 
get_active_leaf (IModel model, id)
 retuns the leaf element for the current IDetailedModel configuration. More...
 
function  display (fn, basepath, name)
 overwrites the standard display method for DataTree objects More...
 
function lines = disp_node (basepath, fn)
 returns a cell array of strings with information on the node. More...
 
- Public Member Functions inherited from DataTree.IdMapNode
 IdMapNode (idmap, initvalues, mergefun)
 constructor for an IdMapNode mapping the children nodes with "Id" tags. More...
 
function data = get (index)
 Access to a child of the current node. More...
 
function index = get_index (id, mu, nt)
 Obtains the leaf index vector that best fits the child description given by the three arguments. More...
 
function tree = create_tree (creator, ids, mu_cube, tslice, basepath)
 Creates a new tree from a subtree specified by ids, parameter and time index regions. More...
 
function this = set (i, value, mergefun)
 sets a new value at a specific child branch More...
 
function scalar = scalar (mergefun)
 reduces the data tree values with help of the mergefun More...
 
function ids = get_all_ids ()
 returns all "Id" strings in this IdMapNode. More...
 
function st = get_flat_struct ()
 makes a struct from the data tree with field names equal to the "Id" names. More...
 
function str = num2str ()
 converts the data tree into a string More...
 
function this = minus (scalar)
 substracts a scalar from each of the values in the data tree. More...
 
function  display ()
 prints out a string representation of the data tree.
 
- Public Member Functions inherited from DataTree.DefaultNode
function
children = 
length ()
 Returns the number of children of the node. More...
 
function this = set (index, value)
 Sets a child at the given path in the tree hierarchy. More...
 

Public Attributes

 pdeg
 polynomial degree, possibly vector of dimrange > 1 More...
 
 dimrange
 dimension of range space More...
 
 ndofs
 number of DOFs More...
 
 ndofs_per_element
 number of DOFs per grid element More...
 
gridbase grid
 grid More...
 
 detDF
 determinant of reference mapping More...
 
 dofs_lcoord
 
 dofs_edges_llcoord
 
 l2_inner_product_matrix
 
 h10_inner_product_matrix
 
 dof_ids_local
 a cell array of length dimrange, i-th entry is a 1 x ndofs_per_element(dimrange=i) matrix More...
 
 nelements
 number of grid cells More...
 
- Public Attributes inherited from Fem.IFemInfo
 pdeg
 polynomial degree More...
 
 dimrange
 dimension of range space More...
 
 ndofs
 number of DOFs More...
 
 ndofs_per_element
 number of DOFs per grid element More...
 
 dof_ids_local
 a (dimrange x number of scalar basis functions) matrix More...
 
gridbase grid
 grid More...
 
 detDF
 determinant of reference mapping More...
 
- Public Attributes inherited from DataTree.IdMapNode
 idmap
 cell array of "Id" strings More...
 
- Public Attributes inherited from DataTree.DefaultNode
 values = "[]"
 cell array of DataTree.INode elements, holding the childrens of this DataTree.INode. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from DataTree.IdMapNode
static function flatca = flatten_cell_array (ca)
 flattens a cell array, i.e. returns a cell without cell entries which are cell arrays by itself. More...
 
static function idname = name_from_idmap (idmap)
 creates a string representation of an "Id"-map More...
 
- Static Public Attributes inherited from DataTree.IdMapNode
static const  data_node_type = "IdMap"
 Data node type identifier. More...
 

Constructor & Destructor Documentation

Fem.CompositeFunctionSpace.CompositeFunctionSpace (   varargin)

Constructor.

Parameters
varargineither parameters for IdMapNode constructor or list of function spaces following id-strings: (df1, id1, df2, id2, ...)

Definition at line 159 of file CompositeFunctionSpace.m.

Here is the call graph for this function:

Member Function Documentation

function res = Fem.CompositeFunctionSpace.evaluate_basis (   lcoord)
virtual

evaluation of all basis functions in local coordinate

Parameters
lcoordlcoord
Return values
resres

Implements Fem.IFemInfo.

Definition at line 354 of file CompositeFunctionSpace.m.

Here is the call graph for this function:

function res = Fem.CompositeFunctionSpace.evaluate_basis_function (   lcoord,
  i 
)
virtual

evaluation of i-th basis function in local coordinate

Parameters
lcoordlcoord
ii
Return values
resres

Implements Fem.IFemInfo.

Definition at line 388 of file CompositeFunctionSpace.m.

function res = Fem.CompositeFunctionSpace.evaluate_basis_function_derivative (   lcoord,
  i 
)
virtual

evaluation of the gradient of i-th basis function in local coordinate

Parameters
lcoordlcoord
ii
Return values
resres

Implements Fem.IFemInfo.

Definition at line 405 of file CompositeFunctionSpace.m.

function res = Fem.CompositeFunctionSpace.evaluate_scalar_basis_derivative (   lcoord,
  ncomp 
)
virtual

evaluation of the gradient of a scalar basis in local coordinate

Parameters
lcoordlcoord
ncompncomp
Return values
resres

Implements Fem.IFemInfo.

Definition at line 372 of file CompositeFunctionSpace.m.

function res = Fem.CompositeFunctionSpace.get_dof_ids_global (   ncomp)
virtual

returns global dof ids belonging to one component (indices into DOF-vector)

Parameters
ncompncomp
Return values
resres

Implements Fem.IFemInfo.

Definition at line 458 of file CompositeFunctionSpace.m.

Here is the call graph for this function:

function res = Fem.CompositeFunctionSpace.get_global_dof_index (   varargin)

returns entries of global-dof-map for several elements and several local dof ids

Parameters
vararginvarargin
Return values
resres

Definition at line 425 of file CompositeFunctionSpace.m.

Here is the call graph for this function:

function df = Fem.CompositeFunctionSpace.interpol_local (   func,
  params 
)
virtual

returns an instance of Fem.DiscFunc which interpolates the given analytical function, that can be evaluated at (grid,elinds,lcoord,params)

Parameters
funcfunc
paramsparams

Implements Fem.IFemInfo.

Definition at line 478 of file CompositeFunctionSpace.m.

Here is the call graph for this function:

function this = Fem.CompositeFunctionSpace.set (   index,
  value 
)
virtual

Sets a child at the given path in the tree hierarchy.

Usually this method is used to set a leaf data node with attached data.

Parameters
indexthe path index where the node shall be injected
valuethe node that shall be attached as a child
Return values
thisthe modified DataTree node.

Implements DataTree.INode.

Definition at line 199 of file CompositeFunctionSpace.m.

Here is the call graph for this function:

Member Data Documentation

Fem.CompositeFunctionSpace.detDF

determinant of reference mapping

Note
This property has the MATLAB attribute Dependent set to true.
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.
[readonly]

Definition at line 92 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.dimrange

dimension of range space

sum of children dimensions

Note
This property has the MATLAB attribute Dependent set to true.
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.
[readonly]

Definition at line 44 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.dof_ids_local

a cell array of length dimrange, i-th entry is a 1 x ndofs_per_element(dimrange=i) matrix

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

Definition at line 116 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.dofs_edges_llcoord
Note
[readonly]

Definition at line 106 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.dofs_lcoord
Note
[readonly]

Definition at line 104 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.grid

grid

Note
This property has the MATLAB attribute Dependent set to true.
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.
[readonly]

Definition at line 80 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.h10_inner_product_matrix
Note
[readonly]

Definition at line 110 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.l2_inner_product_matrix
Note
[readonly]

Definition at line 108 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.ndofs

number of DOFs

sum of ndofs of children

Note
This property has the MATLAB attribute Dependent set to true.
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.
[readonly]

Definition at line 56 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.ndofs_per_element

number of DOFs per grid element

sum of ndofs_per_element of children

Note
This property has the MATLAB attribute Dependent set to true.
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.
[readonly]

Definition at line 68 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.nelements

number of grid cells

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

Definition at line 127 of file CompositeFunctionSpace.m.

Fem.CompositeFunctionSpace.pdeg

polynomial degree, possibly vector of dimrange > 1

concatenate pdegs

Note
This property has the MATLAB attribute Dependent set to true.
This property has non-standard access specifiers: SetAccess = Private, GetAccess = Public
Matlab documentation of property attributes.
[readonly]

Definition at line 32 of file CompositeFunctionSpace.m.


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