Mercurial > repos > public > sbplib
comparison +scheme/Scheme.m @ 220:5df8d20281fe feature/beams
Made scheme boundary_condition return a cell array of penalties if there are several of them.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 28 Jun 2016 13:11:14 +0200 |
parents | 15d604e4e1a1 |
children | a70d5387d2ca |
comparison
equal
deleted
inserted
replaced
219:f66513508c75 | 220:5df8d20281fe |
---|---|
22 % boundary condition if there are several. | 22 % boundary condition if there are several. |
23 % neighbour_scheme is an instance of Scheme that should be | 23 % neighbour_scheme is an instance of Scheme that should be |
24 % interfaced to. | 24 % interfaced to. |
25 % neighbour_boundary is a string specifying which boundary to | 25 % neighbour_boundary is a string specifying which boundary to |
26 % interface to. | 26 % interface to. |
27 % penalty may be a cell array if there are several penalties with different weights | |
27 [closure, penalty] = boundary_condition(obj,boundary,type) | 28 [closure, penalty] = boundary_condition(obj,boundary,type) |
28 [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary) | 29 [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary) |
29 | 30 |
30 % Returns the number of degrees of freedom. | 31 % Returns the number of degrees of freedom. |
31 N = size(obj) | 32 N = size(obj) |