assempde: Passing parameters to coefficient files for a, b, and c
Show older comments
I'm using assempde to solve a system of PDEs for which the coefficient matricies "a", "c" and "f" are functions of space. After reading through the PDE toolbox documentation, I've made a workable code in which the names of m-files defining these matricies (i.e. "coefficient files" in the Matlab lingo) are passed to assempde. The trouble is, these m-files (as described in the documentation) can only accept specific inputs e.g. "a = a_fun(p,t,u,t0)", such that any parameters defining how "a" should vary need to be either hard-wired into the a_fun.m function, or passed to it using a global variable.
I'd really like to avoid using globals - particularly because I want to scan my parameters in a parallel for-loop. Does anyone know another way???
Accepted Answer
More Answers (0)
Categories
Find more on Geometry and Mesh in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!