comparison +scheme/Scheme.m @ 213:15d604e4e1a1 feature/beams

Removed the data paramter from boundary_condition prototype.
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 22 Jun 2016 14:40:23 +0200
parents ef41fde95ac4
children 5df8d20281fe
comparison
equal deleted inserted replaced
211:3c4ffbfbfb84 213:15d604e4e1a1
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 [closure, penalty] = boundary_condition(obj,boundary,type)
30 [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary) 28 [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary)
31 29
32 % Returns the number of degrees of freedom. 30 % Returns the number of degrees of freedom.
33 N = size(obj) 31 N = size(obj)
34 end 32 end