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.
Integration with variable limits
Posted 28.06.2012, 06:43 GMT-4 Modeling Tools & Definitions, Parameters, Variables, & Functions Version 4.2a, Version 4.3 6 Replies
Please login with a confirmed email address before reporting spam
Hi,
I am trying to solve a problem which requires that I define a function in the form:
V=-Integral of E(x) dx from x=0 until x=x
the function V is used in the coefficients of the equations which I am trying to solve.
I have tried the following approach:
V=-integral((E)*(dest(x)>=0)*(dest(x)<=(x)))
where integral is a model coupling integration operator. But It gives the following error:
"
Failed to find a solution for the initial parameter.
Singular matrix.
There are 62 void equations (empty rows in matrix) for the variable mod1.E.
at coordinates: (8.3326e-009), (9.76543e-009), (1.12679e-008), (1.28434e-008), (1.44956e-008), ...
Returned solution is not converged.
"
Anybody knows how to do it?
I need it very much.
Thanks on advance,
Nelson
I am trying to solve a problem which requires that I define a function in the form:
V=-Integral of E(x) dx from x=0 until x=x
the function V is used in the coefficients of the equations which I am trying to solve.
I have tried the following approach:
V=-integral((E)*(dest(x)>=0)*(dest(x)<=(x)))
where integral is a model coupling integration operator. But It gives the following error:
"
Failed to find a solution for the initial parameter.
Singular matrix.
There are 62 void equations (empty rows in matrix) for the variable mod1.E.
at coordinates: (8.3326e-009), (9.76543e-009), (1.12679e-008), (1.28434e-008), (1.44956e-008), ...
Returned solution is not converged.
"
Anybody knows how to do it?
I need it very much.
Thanks on advance,
Nelson
6 Replies Last Post 08.09.2012, 18:08 GMT-4