rbmatlab 0.10.01
|
class femdiscfunc 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)
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 1 of file femdiscfunc.m.
Public Member Functions | |
femdiscfunc ( dofs, feminfo df_info) | |
constructor, dofs possibly [], grid required! | |
function sdf = | scalar_component ( ncomp) |
extraction of component of vectorial fem function | |
function p = | plot ( params) |
plot as colormap | |
function p = | plot_dofmap ( params) |
plot as colormap | |
function res = | evaluate ( einds, lcoord, dummy1, dummy2) |
plot as colormap | |
function res = | subsref ( S) |
This method enables indexation of discrete functions. | |
function cdf = | copy () |
copy | |
function df3 = | plus ( df2) |
addition | |
function df3 = | minus ( df2) |
subtraction | |
function df2 = | uminus () |
negative | |
function df2 = | mtimes ( df1) |
multiplication | |
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 |
femdiscfunc.femdiscfunc | ( | dofs, | |
feminfo | df_info | ||
) |
constructor, dofs possibly [], grid required!
dofs | a vector of #df.ndofs global degress of freedom for the discrete function, if ==[] a zero vector is created. |
df_info | object describing the structure of the underlying discrete function space |
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 115 of file femdiscfunc.m.
function cdf = femdiscfunc.copy | ( | ) |
function res = femdiscfunc.evaluate | ( | einds, | |
lcoord, | |||
dummy1, | |||
dummy2 | |||
) |
plot as colormap
description of evaluate function
einds | einds |
lcoord | lcoord |
dummy1 | dummy1 |
dummy2 | dummy2 |
res | res |
Definition at line 195 of file femdiscfunc.m.
function df3 = femdiscfunc.minus | ( | df2 | ) |
subtraction
df2 | df2 |
df3 | df3 |
dofs —
dofsdofs —
dofs Definition at line 275 of file femdiscfunc.m.
function df2 = femdiscfunc.mtimes | ( | df1 | ) |
multiplication
df1 | df1 |
df2 | df2 |
df_info —
df info dofs —
dofsdofs —
dofs Definition at line 310 of file femdiscfunc.m.
function p = femdiscfunc.plot | ( | params | ) |
plot as colormap
params | params |
p | p |
Definition at line 165 of file femdiscfunc.m.
function p = femdiscfunc.plot_dofmap | ( | params | ) |
plot as colormap
params | params |
p | p |
Definition at line 180 of file femdiscfunc.m.
function df3 = femdiscfunc.plus | ( | df2 | ) |
addition
df2 | df2 |
df3 | df3 |
dofs —
dofsdofs —
dofs Definition at line 256 of file femdiscfunc.m.
function sdf = femdiscfunc.scalar_component | ( | ncomp | ) |
extraction of component of vectorial fem function
ncomp | ncomp |
sdf | sdf |
Definition at line 151 of file femdiscfunc.m.
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)
S | S |
res | res |
subs —
subs Definition at line 212 of file femdiscfunc.m.
function df2 = femdiscfunc.uminus | ( | ) |
negative
df2 | df2 |
dofs —
dofs Definition at line 294 of file femdiscfunc.m.