Different a coefficient for each element not possible anymore with solvepde?

조회 수: 4 (최근 30일)
Jeroen Beeckman
Jeroen Beeckman 2016년 10월 11일
답변: Alan Weiss 2016년 10월 13일
In Matlab 2015a I was using the pde solver for a problem in which the a coefficient was different for each Element:
u = assempde(problem,p,e,t,c,a,f);
'a' was a 1xN matrix with N the number of elements.
In version 2016a I get the remark that I should not use assempde anymore, but solvepde instead. So I was transferring all my code to the new functions. But when defining the coefficients:
specifyCoefficients(problem,'m',0,'d',0,'c',c,'a',a,'f',f);
I get the error: "Size of the matrix 'a' is not consistent with the pde.PDEModel/PDESystemSize property." Is it not possible anymore to define an a coefficient which is dependent on the element?

답변 (1개)

Alan Weiss
Alan Weiss 2016년 10월 13일
Sorry, but to use the latest solvers, I think that you will need to update your coefficient syntax to functional form. This form has the benefit that it works with quadratic elements as well as linear elements.
Alan Weiss
MATLAB mathematical toolbox documentation

카테고리

Help CenterFile Exchange에서 Eigenvalue Problems에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by