Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 428

How to get the stiffness matrix without computing the whole solution?

$
0
0
Hey,

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?

Viewing all articles
Browse latest Browse all 428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>