Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Current Source and Violation of Current Conservation

Please login with a confirmed email address before reporting spam

Hi I'm using the electric currents interface. My model uses the "current source" feature and the solution COMSOL gives clearly violates current conservation. Has anyone else experienced this? And does anyone have an explanation of why this is happening - it doesn't make sense to me why this would be happening.

Thanks
James

2 Replies Last Post 24 avr. 2015, 18:21 UTC−4
Ivar KJELBERG COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 23 avr. 2015, 02:53 UTC−4
Hi

my experience with COMSOL "violating" conservation laws are always due to poor model resolution, or approximation in defining the model. Items like mesh resolution, integration step ... nonphysical BC's or numerical singularities can easily introduce large errors. That is why model V&V is so important, and COMSOL, as you are doing it allows to check many variables by different means.

Now for us out here to be able to answer and consider your case in a better way, it would be much easier if you explained your model, or made a simplified version that you shear with us.

For me, when I see that my results from my COMSOL model is "violating" a law, I suspect first of all my model set-up and not the software, as COMSOL has been checked by many ways and by a large community.
But it happens, even for the best, that some typos enter the formulas under the hood, or that we users set up a case that was not well checked and that COMSOL need some corrections, so it's always worth to chase discrepancies to try to understand them, but that means studying in detail, not just broad statements.

--
Good luck
Ivar
Hi my experience with COMSOL "violating" conservation laws are always due to poor model resolution, or approximation in defining the model. Items like mesh resolution, integration step ... nonphysical BC's or numerical singularities can easily introduce large errors. That is why model V&V is so important, and COMSOL, as you are doing it allows to check many variables by different means. Now for us out here to be able to answer and consider your case in a better way, it would be much easier if you explained your model, or made a simplified version that you shear with us. For me, when I see that my results from my COMSOL model is "violating" a law, I suspect first of all my model set-up and not the software, as COMSOL has been checked by many ways and by a large community. But it happens, even for the best, that some typos enter the formulas under the hood, or that we users set up a case that was not well checked and that COMSOL need some corrections, so it's always worth to chase discrepancies to try to understand them, but that means studying in detail, not just broad statements. -- Good luck Ivar

Please login with a confirmed email address before reporting spam

Posted: 10 years ago 24 avr. 2015, 18:21 UTC−4
Thanks Ivar,

You were right - upon reflection I noticed my boundary conditions were off.

James
Thanks Ivar, You were right - upon reflection I noticed my boundary conditions were off. James

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.