Mercurial > repos > public > sbplib
comparison +scheme/Scheme.m @ 945:af397cc35239 feature/utux2D
Update abstract scheme class
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 05 Dec 2018 10:55:50 +0100 |
parents | b9c98661ff5d |
children | 514a98f9f90d c12b84fe9b00 |
comparison
equal
deleted
inserted
replaced
944:a35ed1d124d3 | 945:af397cc35239 |
---|---|
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 % penalty may be a cell array if there are several penalties with different weights |
28 [closure, penalty] = boundary_condition(obj,boundary,type) % TODO: Change name to boundaryCondition | 28 [closure, penalty] = boundary_condition(obj,boundary,type) % TODO: Change name to boundaryCondition |
29 | 29 |
30 % opts multiblock.InterfaceOptions object that specifies | 30 % type -- sets the type of interface, could be a string or a struct or something else |
31 % the details of the interface coupling. | 31 % depending on the particular scheme implementation |
32 % The format of opts is different for every scheme. | 32 [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary,type) |
33 % Some schemes may only have one interface treatment | |
34 % implemented, in which case opts is a dummy. | |
35 [closure, penalty] = interface(obj,boundary,neighbour_scheme,neighbour_boundary,opts) | |
36 | 33 |
37 % TODO: op = getBoundaryOperator()?? | 34 % TODO: op = getBoundaryOperator()?? |
38 % makes sense to have it available through a method instead of random properties | 35 % makes sense to have it available through a method instead of random properties |
39 | 36 |
40 % Returns the number of degrees of freedom. | 37 % Returns the number of degrees of freedom. |