Please login with a confirmed email address before reporting spam
Posted:
2 decades ago
12 nov. 2009, 00:08 UTC−5
...for T>Tc the first part is complex if "n0" is even...however...pay attention to the use of parameters...i mean, for comsol "i" is the complex unit but if i well remember also "j" is considered as the complex unit, so try to use another letter instead of "J" in your expression
...for T>Tc the first part is complex if "n0" is even...however...pay attention to the use of parameters...i mean, for comsol "i" is the complex unit but if i well remember also "j" is considered as the complex unit, so try to use another letter instead of "J" in your expression
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:
2 decades ago
14 nov. 2009, 04:08 UTC−5
Hi
In general the appearance of complex numbner is not a "problem", often they are linked to dissipation elements, but could also come from the way one needs solving the equations.
Applications not needing complex number are generally easier to handle, that is also why the use of complex number "feature" is generally turned "off" in the solvers parameters. When complex numbers appear, and the application mode does not expect them and has not already changed this default setting, then I agree the user must either turn them on, or reformulate his equation system. But in both cases it's better to exactly understand what you are demanding and how COMSOL issolving the case.
Now, I agree this is the theory and easy to say, I must admit that in your case I hanv't found an obvious clue, apart perhaps that COMSOL cannot always understand the boolean tests as "real case" selection of possible "complex" solutions. Therefre, I would suggest to try the empiicl way, turn on complex values and check carefully the reasults, the latter is anyhow mandatory especially when you start studies in new domains or new cases
Good luck
Ivar
Hi
In general the appearance of complex numbner is not a "problem", often they are linked to dissipation elements, but could also come from the way one needs solving the equations.
Applications not needing complex number are generally easier to handle, that is also why the use of complex number "feature" is generally turned "off" in the solvers parameters. When complex numbers appear, and the application mode does not expect them and has not already changed this default setting, then I agree the user must either turn them on, or reformulate his equation system. But in both cases it's better to exactly understand what you are demanding and how COMSOL issolving the case.
Now, I agree this is the theory and easy to say, I must admit that in your case I hanv't found an obvious clue, apart perhaps that COMSOL cannot always understand the boolean tests as "real case" selection of possible "complex" solutions. Therefre, I would suggest to try the empiicl way, turn on complex values and check carefully the reasults, the latter is anyhow mandatory especially when you start studies in new domains or new cases
Good luck
Ivar