필터 지우기
필터 지우기

Solving coupled pdes with different type of sources

조회 수: 1 (최근 30일)
Lewis Bartel
Lewis Bartel 2020년 11월 6일
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개)

카테고리

Help CenterFile Exchange에서 PDE Solvers에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by