37 lines
1,000 B
Matlab
37 lines
1,000 B
Matlab
function setRefineCriteria(s, n, ratio, slope, curve, prune)
|
|
% SETREFINECRITERIA Set the criteria used to refine the grid.
|
|
% s = setRefineCriteria(s, n, ratio, slope, curve, prune)
|
|
% :param s:
|
|
% Instance of class :mat:func:`Stack`
|
|
% :param n:
|
|
% Domain number
|
|
% :param ratio:
|
|
% Maximum size ratio between adjacent cells
|
|
% :param slope:
|
|
% Maximum relative difference in value between
|
|
% adjacent points
|
|
% :param curve:
|
|
% Maximum relative difference in slope between
|
|
% adjacent cells
|
|
% :param prune:
|
|
% Minimum value for slope or curve for which points
|
|
% will be retained in the grid. If the computed
|
|
% slope or curve value is below prune for all
|
|
% components, it will be deleted, unless either
|
|
% neighboring point is already marked for deletion.
|
|
%
|
|
|
|
if nargin < 3
|
|
ratio = 10.0;
|
|
end
|
|
if nargin < 4
|
|
slope = 0.8;
|
|
end
|
|
if nargin < 5
|
|
curve = 0.8;
|
|
end
|
|
if nargin < 6
|
|
prune = -0.1;
|
|
end
|
|
|
|
stack_methods(s.stack_id, 106, n, ratio, slope, curve, prune);
|