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.

complex numbers/constants in parametric sweeps

Please login with a confirmed email address before reporting spam

While trying to set up a parametric sweep, I need to use complex numbers as the constant values. I get the following error "A complex constant was encountered during expression evaluation".

Does anyone know how to enter complex numbers for parametric sweeps?

I can successfully enter the complex valued expression in the Global Definitions-> Parameters. But i need to use it in the parametric sweep.
Thanks

1 Reply Last Post 2 dic 2011, 16:11 GMT-5
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: 1 decade ago 2 dic 2011, 16:11 GMT-5
Hi

I would try with two real parameters (a pair per sweep) and then combine them in the equation

--
Good luck
Ivar
Hi I would try with two real parameters (a pair per sweep) and then combine them in the equation -- Good luck Ivar

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.