rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
demo_ldgfunc.m File Reference

demo for showing ldgfunc capabilities More...

Go to the source code of this file.

Functions

function  demo_ldgfunc ()
 demo for showing ldgfunc capabilities More...
 
function F = demoldgfunc>f_local (einds, loc,gridbase grid, params)
 
function F = demoldgfunc>f_global (glob, params)
 

Detailed Description

demo for showing ldgfunc capabilities

Definition in file demo_ldgfunc.m.

Function Documentation

function demo_ldgfunc ( )

demo for showing ldgfunc capabilities

idea is mainly to keep dofs and size information separate in order to easily work with vectors and matrices of dofs for efficiency.

A slower alternative can be beneficial: by using the @ldg function class, a dof-vector can be stored in the object. And hence an evaluation be performed by the subsref method as for analytical functions. So ldg-objects can be used identically as any analytical function in integration, matrix assembly, etc. As classes/methods are slower than structs, this should only be used if necessary. So most ldg operations will accept separate dof vectors/matrices and size information.

Definition at line 17 of file demo_ldgfunc.m.

function F = demoldgfunc>f_global (   glob,
  params 
)
Documentation Update:

Definition at line 288 of file demo_ldgfunc.m.