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.

logical inputs must be scalar

Please login with a confirmed email address before reporting spam

Hello,
I am very new to Comsol Multiphysics, using Femlab version 2.3
Whenever I try to create a geometry for an object (e.g. Diference between to co-centered circles with the same radius) I get the following error message:
logical inputs must be scalar
What is the reson for this?
Any help is welcome!
Thanks

1 Reply Last Post Sep 29, 2010, 9:19 a.m. EDT
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 Sep 29, 2010, 9:19 a.m. EDT
Hi

I have never use that old FEMLAb ;) but from the message I suspect you are giving in a variable defined as an array ([1,2,3, ...] in matlab) and your function only accepts a scalar value (=single number).

This remains an issue in Comsol 4, as only a few entries accept arrays or sets, mostly they only accept a single value (but that can be an arithmetic expression !). Unfortunately COMSOL developpers have still not identified these array fields with i.e a [ ] or { } brackets around the field entry in the GUI to tell us "I accept several values and not only scalars".
Hopefully, when the development is >80% of v3.5 on V4, we will see some cleanup in the GUI such as theone above , as well as bold text for fields (as the displacement field "_u_" to distinguish it from it's first component "u")

--
Good luck
Ivar
Hi I have never use that old FEMLAb ;) but from the message I suspect you are giving in a variable defined as an array ([1,2,3, ...] in matlab) and your function only accepts a scalar value (=single number). This remains an issue in Comsol 4, as only a few entries accept arrays or sets, mostly they only accept a single value (but that can be an arithmetic expression !). Unfortunately COMSOL developpers have still not identified these array fields with i.e a [ ] or { } brackets around the field entry in the GUI to tell us "I accept several values and not only scalars". Hopefully, when the development is >80% of v3.5 on V4, we will see some cleanup in the GUI such as theone above , as well as bold text for fields (as the displacement field "_u_" to distinguish it from it's first component "u") -- 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.