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 Export Stiffness and Mass Matrices in COMSOL Eigenfrequency Study
Posted 2025年4月22日 GMT+8 09:52 General, Studies & Solvers, User Interface Version 6.2 2 Replies
Please login with a confirmed email address before reporting spam
Hello,
I'm using COMSOL Multiphysics to perform an eigenfrequency analysis of a cryogenic suspension beam for a gravitational-wave detector project. I want to export the stiffness matrix (K) and mass matrix (M) for each mode, so I can compute the energy using the quadratic form:
externally.
Issue: I followed these steps:
Created an Eigenfrequency study (with or without prestress).
Added a Matrix Export node under "Derived Values."
Selected “Stiffness Matrix” and “Mass Matrix” with options "Global" and "Sparse."
However, when I try to export, COMSOL gives the error:
"K is not stored."
I’ve also tried switching to frequency-domain or stationary studies and adding Input Matrix nodes under the solver configuration, but nothing has worked so far.
My Questions:
Is there a correct way to configure the eigenfrequency study so that the stiffness and mass matrices are stored and exportable?
Does this feature require enabling something before solving?
Is there any workaround if I don’t have LiveLink for MATLAB or Java API access?
Any guidance would be very appreciated
