comparison +scheme/Scheme.m @ 425:e56dbd9e4196 feature/grids

Merge feature/beams
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 07 Feb 2017 16:09:02 +0100
parents 5df8d20281fe
children a70d5387d2ca
comparison
equal deleted inserted replaced
423:a2cb0d4f4a02 425:e56dbd9e4196
18 % can be ommited and the closure function take care of both parts. 18 % can be ommited and the closure function take care of both parts.
19 % boundary is a string specifying the boundary e.g. 19 % boundary is a string specifying the boundary e.g.
20 % 'l','r' or 'e','w','n','s'. 20 % 'l','r' or 'e','w','n','s'.
21 % type is a string specifying the type of 21 % type is a string specifying the type of
22 % boundary condition if there are several. 22 % boundary condition if there are several.
23 % data is a function returning the data that
24 % should be applied at the boundary.
25 % neighbour_scheme is an instance of Scheme that should be 23 % neighbour_scheme is an instance of Scheme that should be
26 % interfaced to. 24 % interfaced to.
27 % neighbour_boundary is a string specifying which boundary to 25 % neighbour_boundary is a string specifying which boundary to
28 % interface to. 26 % interface to.
29 [closure, penalty] = boundary_condition(obj,boundary,type,data) 27 % penalty may be a cell array if there are several penalties with different weights
28 [closure, penalty] = boundary_condition(obj,boundary,type)
30 [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary) 29 [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary)
31 30
32 % Returns the number of degrees of freedom. 31 % Returns the number of degrees of freedom.
33 N = size(obj) 32 N = size(obj)
34 end 33 end