inconsistent unit (electromagnetic waves-frequency domain)

Please login with a confirmed email address before reporting spam

Hello, i write this expression for an electric field (sqrt(240nP)/w)exp(-((y-S/2)^2+z^2)/w^2)exp(j2(pi/L)*((y-S/2)^2)+z^2+x^2). the expected answer should be [V/m]. But i get the message ΄INCONSISTENT UNIT΄. what am i writting wrong?? P: laser power w [m] S [m].

Any help will be valuable thanks in advance



1 Reply Last Post 28/08/2020, 14:55 GMT-3
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 2 months ago 28/08/2020, 14:55 GMT-3
Updated: 2 months ago 28/08/2020, 17:09 GMT-3

Hello Irene,

In your formula,

  • What are the dimensions of n? Did you specify them in the model?
  • Is "240" dimensionless? If not, make sure to declare its units between square brackets (e.g. ).

Best,

Jeff

-------------------
Jeff Hiller
Hello Irene, In your formula, * What are the dimensions of n? Did you specify them in the model? * Is "240" dimensionless? If not, make sure to declare its units between square brackets (e.g. 9.81[m/s/s]). Best, Jeff

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.