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.

In comsol5.5, how do I enter the matrix and compute it?

Please login with a confirmed email address before reporting spam

Hi, I want to calculate the distribution of the electric field, but the expression has a matrix in it. So, what should I do to enter a matrix in coomsol5.5?


6 Replies Last Post Mar 19, 2020, 4:05 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Mar 16, 2020, 8:35 p.m. EDT

No detailed description of the problem?

-------------------
ZHANG, Pu
School of Physics,
Huazhong University of Science and Technology
No detailed description of the problem?

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Mar 17, 2020, 3:32 a.m. EDT
Updated: 4 years ago Mar 17, 2020, 3:33 a.m. EDT

Hi, Dr. Zhang, I want to calculate the focal field distribution at the focal position of a tightly focused Gaussian beam. The expression of focal field distribution is shown in the following figure. So what should I do to enter the expression in comsol ?

Hi, Dr. Zhang, I want to calculate the focal field distribution at the focal position of a tightly focused Gaussian beam. The expression of focal field distribution is shown in the following figure. So what should I do to enter the expression in comsol ?


Dave Greve Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Mar 17, 2020, 5:47 p.m. EDT

It's not clear what OP is after because he already has an expression for the electric field.

That expression is for the vector components (normally we don't consider a vector to be a matrix). In COMSOL the vector components are entered...as components. That will be easy if OP is working in cylindrical coordinates. If not, he has more math to do.

It's not clear what OP is after because he already has an expression for the electric field. That expression is for the vector components (normally we don't consider a vector to be a matrix). In COMSOL the vector components are entered...as components. That will be easy if OP is working in cylindrical coordinates. If not, he has more math to do.

Dave Greve Certified Consultant

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Mar 18, 2020, 11:39 a.m. EDT

Note to moderators: I get email about private messages on the .cn website but I can't view or reply to them.

Note to OP: I am not an optics person but explaining your objectives in more detail might yield some informed replies from others.

A general comment: In COMSOL it is possible to insert expressions into many of the boxes that appear to be for constants. For example, for the force applied on a domain it is possible to write an expression in terms of coordinates, or velocity, etc.

Note to moderators: I get email about private messages on the .cn website but I can't view or reply to them. Note to OP: I am not an optics person but explaining your objectives in more detail might yield some informed replies from others. A general comment: In COMSOL it is possible to insert expressions into many of the boxes that appear to be for constants. For example, for the force applied on a domain it is possible to write an expression in terms of coordinates, or velocity, etc.

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Mar 18, 2020, 2:06 p.m. EDT
Updated: 4 years ago Mar 18, 2020, 2:13 p.m. EDT

Hello Dave,

It sounds as though someone is trying to send you a private message from the cn.comsol.com domain. To access that message, you'll need to log into your COMSOL access from our Chinese website (Using the same username and password as usual). If you don't read Chinese: the website has the same layout as the www.comsol.com website, so it's fairly easy to guess where to click, type your password, etc, even without using a translation tool.

Best,

Jeff

PS: Logging into the cn. website unfortunately logs you out of the www. website so you'll have to re-log into your Access account on the www. website once you're done with the cn. website.

-------------------
Jeff Hiller
Hello Dave, It sounds as though someone is trying to send you a private message from the cn.comsol.com domain. To access that message, you'll need to log into your COMSOL access from our Chinese website (Using the same username and password as usual). If you don't read Chinese: the website has the same layout as the www.comsol.com website, so it's fairly easy to guess where to click, type your password, etc, even without using a translation tool. Best, Jeff PS: Logging into the cn. website unfortunately logs you out of the www. website so you'll have to re-log into your Access account on the www. website once you're done with the cn. website.

Please login with a confirmed email address before reporting spam

Posted: 4 years ago Mar 19, 2020, 4:05 a.m. EDT

Hi, Dr. Greve, Thank you for your kind reminder and solution. Best wishes Miao Peng

Note to moderators: I get email about private messages on the .cn website but I can't view or reply to them.

Note to OP: I am not an optics person but explaining your objectives in more detail might yield some informed replies from others.

A general comment: In COMSOL it is possible to insert expressions into many of the boxes that appear to be for constants. For example, for the force applied on a domain it is possible to write an expression in terms of coordinates, or velocity, etc.

Hi, Dr. Greve, Thank you for your kind reminder and solution. Best wishes Miao Peng >Note to moderators: I get email about private messages on the .cn website but I can't view or reply to them. > >Note to OP: I am not an optics person but explaining your objectives in more detail might yield some informed replies from others. > >A general comment: In COMSOL it is possible to insert expressions into many of the boxes that appear to be for constants. For example, for the force applied on a domain it is possible to write an expression in terms of coordinates, or velocity, etc.

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.