comparison +scheme/Scheme.m @ 15:16bad7c459da

Added abstract methods to allow for comparing of solutions. Added a bunch of error functions.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 22 Sep 2015 13:36:45 +0200
parents 48b6fb693025
children ed6a704b028d
comparison
equal deleted inserted replaced
14:a66aefd5e6ac 15:16bad7c459da
26 % neighbour_boundary is a string specifying which boundary to interface to. 26 % neighbour_boundary is a string specifying which boundary to interface to.
27 m = boundary_condition(obj,boundary,type,data) 27 m = boundary_condition(obj,boundary,type,data)
28 m = interface(obj,boundary,neighbour_scheme,neighbour_boundary) 28 m = interface(obj,boundary,neighbour_scheme,neighbour_boundary)
29 N = size(obj) % Returns the number of degrees of freedom. 29 N = size(obj) % Returns the number of degrees of freedom.
30 30
31 e = compareSolution(obj, p,v, p_ref, v_ref, errorFunction) % Use ismemeber(p,p_ref,'rows') and vector2cell() for winning
32 e = compareSolutionAnalytical(obj, p, v, v_ref, errorFunction)
31 33
32
33 % Static function to calculate the coupling of two domains with an interface ???
34 end 34 end
35 35
36 methods(Static) 36 methods(Static)
37 % Calculates the matrcis need for the inteface coupling between boundary bound_u of scheme schm_u 37 % Calculates the matrcis need for the inteface coupling between boundary bound_u of scheme schm_u
38 % and bound_v of scheme schm_v. 38 % and bound_v of scheme schm_v.