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.

Setting initial conditions with mphinputmatrix

Please login with a confirmed email address before reporting spam

Hi all,

I am trying to run a transient while manipulating both the initial conditons and the system matrices using the mphinputmatrix command. Namely, I am trying to set the current solution as the initial condition for the next timestep, in addition to manipulating the stiffness matrix/ load vector. However, whenever I use mphinputmatrix (and LiveLink creates the associated InputMatrix subnode in the time dependent solver), it also automatically disables the dependent variables node. Does anyone know the reason for this? Whenever I try to forcibly enable the variables node again I get an 'active dependent variables found' error. Is there a way to set the initial conditions AND manipulate the system matrices? Is the variables node the only place the solver stores initial conditions or can you input them into the time dependent solver node directly? Any help would be much appreciated.

John


0 Replies Last Post 30 gen 2023, 13:02 GMT-5
COMSOL Moderator

Hello John Ross

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.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.