Note: This discussion is about an older version of the COMSOL Multiphysics®software. The information provided may be out of date.
Discussion ClosedThis 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 the solution in Comsol is saved?
Posted 2012年9月12日 GMT+2 12:08LiveLink for MATLABVersion 4.2a, Version 4.30 Replies
Please login with a confirmed email address before reporting spam
Dear all,
I would like to export the solution I get in Comsol into Matlab.
My problem (formulated using the weak form PDE) has tre dependent variables (u,v,w). I solve the problem in Comsol and I am able to export them using u = mphgetu(model). When I solve the problem in comsol, it says: Number of DOFs = 9780 and actually, when I export the solution, the vector I get has length = 9780.
I wonder: since I have three dependent variables (u,v,w) do I have to suppose that in the vector I extract the three variables are organized as follows:
u is contained between the element 1 and 3260 of the vector I extract in matlab
v is contained in the second group of 3260 elements of the vector
w is contained in the last group of 3260
Is that right? Has any of you done the same? Otherwise, how the solution is stored?
Many thanks,
Paolo Tricerri
I would like to export the solution I get in Comsol into Matlab.
My problem (formulated using the weak form PDE) has tre dependent variables (u,v,w). I solve the problem in Comsol and I am able to export them using u = mphgetu(model). When I solve the problem in comsol, it says: Number of DOFs = 9780 and actually, when I export the solution, the vector I get has length = 9780.
I wonder: since I have three dependent variables (u,v,w) do I have to suppose that in the vector I extract the three variables are organized as follows:
u is contained between the element 1 and 3260 of the vector I extract in matlab
v is contained in the second group of 3260 elements of the vector
w is contained in the last group of 3260
Is that right? Has any of you done the same? Otherwise, how the solution is stored?
Many thanks,
Paolo Tricerri
0 Replies
Last Post 2012年9月12日 GMT+2 12:08
Hello Paolo Tricerri
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.
