nonzero m and d coefficients for Matlab PDE
이전 댓글 표시
Hello, everyone!
I am trying to solve the 2D problem with Matlab PDE and need to specify both mass (m) and damping (d) to be nonzero.
Workflow in short:
create model with
model = createpde(N);
specify geometry ...
coefficients:
specifyCoefficients(model, 'm', rho, 'd', d, 'c', c, 'a', 0, 'f', f);
and solve it:
result = solvepde(model,time);
I got stuck having the error:
Error using pde.CoefficientAssignment/checkMandD (line 303)
When both 'm' and 'd' coefficients are nonzeros, the 'd' coefficient must be a matrix.
In the documentation to the function "specifyCoefficients" it is said:
Note: If the PDE to solve has both 'm' and 'd' coefficients that are
non-zero, then 'd' must be a matrix that has the same size as
the discretized mass matrix (not to be confused with 'm').
What is the correct way to specify 'd' coefficient when mass is nonzero?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Eigenvalue Problems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!