comparison +scheme/Beam.m @ 1049:0c504a21432d feature/getBoundaryOp

Add getBoundaryQuadrature to all 1d diffOps
author Martin Almquist <malmquist@stanford.edu>
date Tue, 22 Jan 2019 11:17:28 -0800
parents 19ed046aec52
children
comparison
equal deleted inserted replaced
1048:adbb80e60b10 1049:0c504a21432d
253 assertIsMember(boundary, {'l', 'r'}) 253 assertIsMember(boundary, {'l', 'r'})
254 254
255 o = obj.([op, '_', boundary]); 255 o = obj.([op, '_', boundary]);
256 end 256 end
257 257
258 % Returns square boundary quadrature matrix, of dimension
259 % corresponding to the number of boundary points
260 %
261 % boundary -- string
262 % Note: for 1d diffOps, the boundary quadrature is the scalar 1.
263 function H_b = getBoundaryQuadrature(obj, boundary)
264 assertIsMember(boundary, {'l', 'r'})
265
266 H_b = 1;
267 end
268
258 % Returns the boundary sign. The right boundary is considered the positive boundary 269 % Returns the boundary sign. The right boundary is considered the positive boundary
259 % boundary -- string 270 % boundary -- string
260 function s = getBoundarySign(obj, boundary) 271 function s = getBoundarySign(obj, boundary)
261 assertIsMember(boundary, {'l', 'r'}) 272 assertIsMember(boundary, {'l', 'r'})
262 273