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

Detailed Description

represents a continous piecewise polynomial function of arbitrary dimension. Can be used for all finite elements (discrete function information class) implementing IFeminfo (e.g. Fem.Lagrange.DefaultInfo)

\(dofs\) correspond to the values of the nodes. \(df_info\) is an object of discrete function information.

Definition at line 18 of file DiscFunc.m.

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

Public Member Functions

 DiscFunc (dofs,IFemInfo df_info)
 constructor, dofs possibly [], grid required! More...
 
function cdf = get_component (ncomp)
 extraction of component of vectorial fem function ncomp can be vector More...
 
function p = plot (params)
 plot as colormap, todo: ids as titles. enhanced subplots More...
 
function res = evaluate (einds, lcoord, varargin)
 local evaluate on several elements More...
 
function res = evaluate_derivative (einds, lcoord)
 computes the gradient in local coordinate res(:, i, j) is the x_i derivative of the j-th component More...
 
function res = l2_norm ()
 computes the l2-norm More...
 
function res = h10_norm ()
 computes h10-norm More...
 
function res = h1_norm ()
 computes h1-norm 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
 
::IFemInfo df_info
 discrete function information
 
 dofs
 DOF vector.
 
 nelements
 number of elements
 
 ndofs
 number of DOFs
 
 ndofs_per_element
 number of DOFs per grid element
 
 dofs_global_coordinate
 global coordinate of DOFs
 

Constructor & Destructor Documentation

Fem.DiscFunc.DiscFunc (   dofs,
IFemInfo  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
  • get_global_dof_index —  get global dof index
  • dofs_lcoord —  dofs lcoord

Definition at line 113 of file DiscFunc.m.

Here is the call graph for this function:

Member Function Documentation

function cdf = Fem.DiscFunc.copy ( )

copy

Return values
cdfcdf

Definition at line 378 of file DiscFunc.m.

function res = Fem.DiscFunc.evaluate (   einds,
  lcoord,
  varargin 
)

local evaluate on several elements

Parameters
eindseinds
lcoordlcoord
vararginvarargin
Return values
resres

Definition at line 214 of file DiscFunc.m.

Here is the call graph for this function:

Here is the caller graph for this function:

function res = Fem.DiscFunc.evaluate_derivative (   einds,
  lcoord 
)

computes the gradient in local coordinate res(:, i, j) is the x_i derivative of the j-th component

Parameters
eindseinds
lcoordlcoord
Return values
resres

Definition at line 250 of file DiscFunc.m.

Here is the call graph for this function:

function cdf = Fem.DiscFunc.get_component (   ncomp)

extraction of component of vectorial fem function ncomp can be vector

Parameters
ncompncomp
Return values
cdfcdf

Definition at line 156 of file DiscFunc.m.

Here is the call graph for this function:

Here is the caller graph for this function:

function res = Fem.DiscFunc.h10_norm ( )

computes h10-norm

Return values
resres

Definition at line 311 of file DiscFunc.m.

function res = Fem.DiscFunc.h1_norm ( )

computes h1-norm

Return values
resres

Definition at line 330 of file DiscFunc.m.

function res = Fem.DiscFunc.l2_norm ( )

computes the l2-norm

Return values
resres

Definition at line 292 of file DiscFunc.m.

function df3 = Fem.DiscFunc.minus (   df2)

subtraction

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

Definition at line 411 of file DiscFunc.m.

function df2 = Fem.DiscFunc.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 448 of file DiscFunc.m.

function p = Fem.DiscFunc.plot (   params)

plot as colormap, todo: ids as titles. enhanced subplots

Parameters
paramsparams
Return values
pp
Required fields of params:
  • title —  title

Definition at line 173 of file DiscFunc.m.

Here is the call graph for this function:

function df3 = Fem.DiscFunc.plus (   df2)

addition

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

Definition at line 390 of file DiscFunc.m.

function res = Fem.DiscFunc.subsref (   S)

This method enables indexation of discrete functions.

redirects arguments to evaluate function, so

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

Definition at line 350 of file DiscFunc.m.

Here is the call graph for this function:

function df2 = Fem.DiscFunc.uminus ( )

negative

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

Definition at line 432 of file DiscFunc.m.


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