Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
How to get the stiffness matrix without computing the whole solution?
Posted Oct 26, 2015, 10:30 a.m. EDT Interfacing, Porous Media Flow Version 5.1 0 Replies
Please login with a confirmed email address before reporting spam
I am a student major in geo-engineering and recently I am stuck with a Livelink for Matlab problem.
As for a subsurface seepage flow problem, the default solver of Comsol seems very hard to converge to the exact solution.
So I want to use my own algorithm in Matlab together with the finite element data assembled by Comsol to solve the problem.
Then I convert my model to .m file and recreate the model in Comsol within Matlab without running the default solver as it will never converge, and I create an "Assemble" feature "a1" to get the finite element data.
BUT I find it impossible by using matlab code "model.sol('sol1').feature('a1').getSparseMatrixVal('K')" to get the initial stiffness matrix of the model just because it is not computed!
Does anyone know how to get this problem done?
Hello Jason Leung
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.