rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
List of all members | Public Member Functions | Public Attributes

Detailed Description

class representing a continous piecewise polynomial function of arbitrary dimension. DOFS correspond to the values of Lagrange-nodes.

global_dof_index(elid,lagrange_node) yields the global index of the first dof of the basis function corresponding to the given Lagrange node and element elid. gid:(gid+dimrange-1) are the subsequent dofs of the vectorial function in the lagrange node. first all dofs in nodes are counted, then all dofs in element interior, then the dofs on edge-interiors.

The Lagrange nodes l_1,...,l_m with m=0.5*(pdeg+1)*(pdeg+2)

are sorted in the following order
       l_m = v_3
       *
       |\
       | \
       |  \
       *   *
       |    \
       |     \
       |______\
       *   *   *
 v_1 = l_1      v_2 = l_(pdeg+1)

where v_1, v_2, v_3 denote the sorting of the triangles corners.

Definition at line 17 of file femdiscfunc.m.

Inheritance diagram for femdiscfunc:
Inheritance graph
[legend]
Collaboration diagram for femdiscfunc:
Collaboration graph
[legend]

Public Member Functions

 femdiscfunc (dofs,feminfo df_info)
 constructor, dofs possibly [], grid required! More...
 
function sdf = scalar_component (ncomp)
 extraction of component of vectorial fem function More...
 
function p = plot (params)
 plot as colormap More...
 
function p = plot_dofmap (params)
 plot as colormap More...
 
function res = evaluate (einds, lcoord, dummy1, dummy2)
 plot as colormap More...
 
function res = subsref (S)
 This method enables indexation of discrete functions. More...
 
function cdf = copy ()
 copy More...
 
function df3 = plus (df2)
 addition More...
 
function df3 = minus (df2)
 subtraction More...
 
function df2 = uminus ()
 negative More...
 
function df2 = mtimes (df1)
 multiplication More...
 

Public Attributes

 pdeg
 polynomial degree
 
 dimrange
 dimension of range space
 
::gridbase grid
 grid
 
::feminfo df_info
 discrete function information
 
 dofs
 DOF vector.
 
 nelements
 dependent variables: number of elements
 
 ndofs
 number of DOFs
 
 ndofs_per_element
 number of DOFs per grid element
 
 global_dof_index
 the global dof index
 

Constructor & Destructor Documentation

femdiscfunc.femdiscfunc (   dofs,
feminfo  df_info 
)

constructor, dofs possibly [], grid required!

Parameters
dofsa vector of #df.ndofs global degress of freedom for the discrete function, if ==[] a zero vector is created.
df_infoobject describing the structure of the underlying discrete function space
Required fields of df_info:
  • pdeg —  polynomial degree of lagrange functions
  • dimrange —  dimension of the range
  • grid.nelements —  number of overall elements (leaf + nonleaf)
  • grid —  grid
  • ndofs —  ndofs
  • ndofs_per_element —  ndofs per element
  • global_dof_index —  global dof index

Definition at line 131 of file femdiscfunc.m.

Here is the caller graph for this function:

Member Function Documentation

function cdf = femdiscfunc.copy ( )

copy

Return values
cdfcdf

Definition at line 260 of file femdiscfunc.m.

Here is the call graph for this function:

function res = femdiscfunc.evaluate (   einds,
  lcoord,
  dummy1,
  dummy2 
)

plot as colormap

description of evaluate function

Parameters
eindseinds
lcoordlcoord
dummy1dummy1
dummy2dummy2
Return values
resres

Definition at line 213 of file femdiscfunc.m.

Here is the caller graph for this function:

function df3 = femdiscfunc.minus (   df2)

subtraction

Parameters
df2df2
Return values
df3df3
Required fields of df2:
  • dofs —  dofs
Generated fields of df3:
  • dofs —  dofs

Definition at line 291 of file femdiscfunc.m.

Here is the call graph for this function:

function df2 = femdiscfunc.mtimes (   df1)

multiplication

Parameters
df1df1
Return values
df2df2
Required fields of df1:
  • df_info —  df info
  • dofs —  dofs
Generated fields of df2:
  • dofs —  dofs

Definition at line 326 of file femdiscfunc.m.

Here is the call graph for this function:

function p = femdiscfunc.plot (   params)

plot as colormap

Parameters
paramsparams
Return values
pp

Definition at line 181 of file femdiscfunc.m.

function p = femdiscfunc.plot_dofmap (   params)

plot as colormap

Parameters
paramsparams
Return values
pp

Definition at line 197 of file femdiscfunc.m.

function df3 = femdiscfunc.plus (   df2)

addition

Parameters
df2df2
Return values
df3df3
Required fields of df2:
  • dofs —  dofs
Generated fields of df3:
  • dofs —  dofs

Definition at line 271 of file femdiscfunc.m.

Here is the call graph for this function:

function sdf = femdiscfunc.scalar_component (   ncomp)

extraction of component of vectorial fem function

Parameters
ncompncomp
Return values
sdfsdf

Definition at line 166 of file femdiscfunc.m.

Here is the call graph for this function:

function res = femdiscfunc.subsref (   S)

This method enables indexation of discrete functions.

redirects arguments to evalute function, so

df(einds, lcoord) == evaluate(df, einds, lcoord)
Parameters
SS
Return values
resres
Required fields of S:
  • subs —  subs

Definition at line 231 of file femdiscfunc.m.

Here is the call graph for this function:

function df2 = femdiscfunc.uminus ( )

negative

Return values
df2df2
Generated fields of df2:
  • dofs —  dofs

Definition at line 311 of file femdiscfunc.m.

Here is the call graph for this function:


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