MATLAB: How to modify the default options (like RelTol’ and ‘AbsTol’) of the pde solver when using the PDE toolbox

optionsPartial Differential Equation Toolboxsolvepde

When working in 1D, I can modify the default options of the solver by using odeset and then calling the 'options' with pdepe, for example:
options = odeset('RelTol',1e-13,'AbsTol',1e-13);
sol = pdepe(m,'pde','ic','bc',x,t,options)
Now I am working in a 2D probelm and I am using the PDE toolbox. How can I especify options when working with the PDE toolbox? I use the command line function solvepde and I I would like to set more strict Relative error tolerance and Absolute error tolerance.
Apparently, the function solvepde calls ode15s which allows the especification of 'options'.
Thank you.

Best Answer

You can edit those tolerances directly using the model object properties. Say,
model = createpde(...
User model the set RelTol as:
model.SolverOptions.RelativeTolerance = 1E-6
Regards,
Ravi
Related Question