Solving coupled pdes with different type of sources
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to solve a system of three equations, two of which I can represent with constants and one is a function of the state of u. I tried following the example on page 2-66 of the pde toolbox manuel. In my function I have f(1,:)=ones(1,length(location.x)), F(2,:) the same as f(1,:) and f(3,::)=state.ux+state.uy. I get the following error
Error using pde.CoefficientAssignment/checkCoefFcnHdlArgCounts (line 505)
Function specifying a coefficient must accept two
input arguments and return one output argument.
Error in pde.CoefficientAssignment/checkFcnHdlArgCounts (line 272)
self.checkCoefFcnHdlArgCounts(self.f, systemsize, ndims);
Error in pde.CoefficientAssignment (line 104)
obj.checkFcnHdlArgCounts(systemsize, numdims);
Error in pde.PDEModel/specifyCoefficients (line 143)
coef = pde.CoefficientAssignment(self.EquationCoefficients,argsToPass{:});
Error in pde4EarthScript (line 77)
specifyCoefficients(model,'m',0,'d',0,'c',cc,'a',af1,'f',@fcoeff,'face',3);
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur PDE Solvers dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!