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.

How to draw analytical binary geometry in COMSOL 4.2?

Please login with a confirmed email address before reporting spam

Hi,

I want to draw a 2D periodical grating geometry. the analytic function is sign(cos(x +y^2)) and MATLAB draws it very easily. how ever when I tried to do this with the waveform function in COMSOL 4.2, or sign function, it cant draw well the transitions between 1 and -1.
even if I want to draw a 1D periodical grating the sign(cos(x)) function produces bad results. smoothing of the function helps but not in the 2D case. but it is obvious the a 1D grating geometry can easily be drawn by rectangulars, so I want to know how can I do it analytically especially for the 2D case.
please help me.

Thank you.

0 Replies Last Post 24 dic 2011, 06:42 GMT-5
COMSOL Moderator

Hello Itai Epstein

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.