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.

Comsol 5.3 ODE Explicit Solver Problem

Please login with a confirmed email address before reporting spam

Last year I inquired about a problem related to particle tracking in a stationary magnetic field - see https://www.comsol.com/forum/thread/123312/energy-conservation-for-relativistic-particle-tracing-in-magnetic-field-problem?last=2016-09-13T15:52:27Z

The problem I was having was that the particle energy was not conserved in the simulation while it must be perfectly conserved from the physics point of view. I was given a very good advice to switch to an RK solver, specifically the Dormand-Prince 5 type. After that, the situation with energy conservation was dramatically improved.

That was while using Comsol 5.2a. When I recently upgraded to Comsol 5.3., running the same problem produced this following error message : " Mass matrix may depend on solution or time. Reformulate the equation or use an implicit solver."

However, switching back to an implicit solver does remove the error but again, it introduces a gross energy non-conservation which was the whole point of switching to Dormand-Prince.

I am attaching one of the setups (meshes and solutions cleared).

Thank you, Gennady



0 Replies Last Post 06.11.2017, 13:02 GMT-5
COMSOL Moderator

Hello Gennady Fiksel

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.