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.

1D, ODE involving lagrange multiplier and "Failed to evaluate variable Jacobian"

Please login with a confirmed email address before reporting spam

I'm having some mass balance error in 2D even I use lagrange multiplier to get flux through prescribed BC. To troubleshoot this I'm trying simple 1D case. However I encounter some problems integrating lagrange multiplier over time in 1D case.

For 2D case, I can define boundary probe and used that in my ODE (global equations), however for 1D problem there are no boundary probes. I see two choices, either to define a point probe that snaps to closest point and get my p_lm/dl.rho there (flux), or to simply define model variable (flux2) for my boundary point as p_lm/dl.rho . However when I try to use either of them in ODE (with an expression for cumulative flux `cflux` like `flux-cfluxt`), I get "Failed to evaluate variable Jacobian" for mod1.p_lm if I used `flux` and for mod1.flux2 if I tried to use defined variable for my boundary point.

What would be the correct way to integrate lagrange multiplier (for prescribed point BC) over time in 1D?

0 Replies Last Post 2011/06/02 15:36 GMT-4
COMSOL Moderator

Hello Mikhail Titov

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.