comparison +scheme/Scheme.m @ 26:ed6a704b028d

Made some changes to error functions and comparison functions before finalizing convergence script.
author Jonatan Werpers <jonatan@werpers.com>
date Fri, 25 Sep 2015 14:54:26 +0200
parents 16bad7c459da
children 8f22829b69d0 77e9f0a85862
comparison
equal deleted inserted replaced
25:791decafe6e4 26:ed6a704b028d
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)
33
34 end 31 end
35 32
36 methods(Static) 33 methods(Static)
37 % Calculates the matrcis need for the inteface coupling between boundary bound_u of scheme schm_u 34 % Calculates the matrcis need for the inteface coupling between boundary bound_u of scheme schm_u
38 % and bound_v of scheme schm_v. 35 % and bound_v of scheme schm_v.