Electric field plot
Posted Aug 16, 2024, 12:22 a.m. EDT Electromagnetics 15 Replies
Please login with a confirmed email address before reporting spam
Hi, I am using the scattering field formulation for my model. I am using an x-polarized negative z-propagated plane wave as my background electric field. My structure is a box consisting of an air domain(top) and cancer domain(below). I used scattering boundary conditions. After the simulation, I realized that 1. emw.normE = abs(emw.Ex) 2. but abs(emw.Ez) is not = 0. if 1 is true, then how is 2 possible(since i am propagating the z direction anyways). or i am not plotting it correctly. I have attached my file. Thanks
Attachments:
Please login with a confirmed email address before reporting spam
Your example, at least as provided, is geometrically simple, but computationally very large, due to the small wavelengths involved relative to the model geometry. Your "cancer" material is defined as having a relatively high dielectric constant and also a relatively high conductivity. As such, it is very reflective to a direct incident RF wave at the specified frequency. I prepared a modified model simply to get it to execute. I made that model less wide in the two lateral dimensions and used linear elements and a user-specified mesh to keep the model computationally small enough. I noticed you did not take advantage of Comsol's built in tool for specifying plane wave RF incidence, so I changed your model to use that, and I encourage you to take a look at that. Frankly, this is still not a very good model for the purpose of investigating such a high frequency (500 GHz) wave interacting with your target. Computed penetration of such a 500 GHz wave is surely quite minimal into this material, at least if it really has the properties (dielectric constant and conductivity) that you specified, at that extreme frequency. The model also shows this more or less, but I still wouldn't trust the computed details for the penetrated field quantitatively here, since there are likely numerical noise issues. Perhaps you could redo this model with a much thinner layer for the "cancer" (since barely any field is getting into it anyway) and then could mesh that "cancer" domain more finely, if you really want to study it in detail. You could also try a 2D model, since that would help enormously in reducing your computational size. I hope that helps. Good luck.
-------------------Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Attachments:
Please login with a confirmed email address before reporting spam
Thank you very much for your help. I am however confused with some results. If I plot the background field in the xy-plane, I am supposed to get a fairly constant value. lets say I expect to get real(emw.Ebx) = -0.45 V/m. but I get real(emw.Ebx) = {-0.39 to -0.503}. I know theres is going to be computational errors and noise. Is there a way to the results as close to what I expect as possible?
Please login with a confirmed email address before reporting spam
The real part of any non-zero component of the background field will exhibit spatial oscillations with phase, just as it should. If you want to sanity-check the magnitude, plot abs of the field component of interest. E.g., plot abs(emw.Ebx), not real(emw.Ebx).
-------------------Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Please login with a confirmed email address before reporting spam
Thank you sir. Again, is it possible to get Electric field component in the z direction while the plane wave is propagating in the z direction?
Please login with a confirmed email address before reporting spam
Are you asking a computational question or a physics question? A z-directed plane wave has no z component of E, but if it scatters/interacts with a material or boundary, a non-negligible z component might (or might not) arise, depending on the material and the details of the interaction. If a plane wave is normally incident (i.e., perpendicular to a flat surface) upon an isotropic material, then I would not expect any z component of E to arise, since there would be no change to the symmetry.
-------------------Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Please login with a confirmed email address before reporting spam
I was asking a physics question to relate it to computational. So for example, the model that you just helped me with, when i plot the abs(emw.relEz), i get 0.26 V/m amplitude while the abs(emw.relEx) gives 0.78 V/m. This makes the Ez component quite significant here. This is the reason for my question. can this be a simulation noise or something? If so, is there anything you recommend can help fix this?
Please login with a confirmed email address before reporting spam
The scattering boundary conditions on the sidewalls are not really correct for this configuration. If you replace them with PECs on the walls normal to the x axis, and PMCs on the walls normal to the y axis, then those will cleanly fit the example incident plane wave and you will see the Ez component nearly vanish. If you are interested in exploring a non-normal angle of incidence, you may have to introduce some other boundary condition, such as perfectly matched layers, or even appropriately periodic conditions, such as Floquet boundaries.
-------------------Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Please login with a confirmed email address before reporting spam
So you mean the boundaries on the X-axis should be PEC and the boundaries on the Y-axis should be PMC.? Is this because the plane wave is x polarized or the PEC and PMC on the boundaries does not matter.
Please login with a confirmed email address before reporting spam
I have added two models , which one is the correct setup
Attachments:
Please login with a confirmed email address before reporting spam
Electric field lines terminate on PECs, while magnetic field lines terminate on PMCs. As I explained, use the "PECs on the walls normal to the x axis." When discussing a vector quantity, "normal to" means "perpendicular to." This corresponds to your Example2.mph, for incident polarization (E) parallel to the x axis (and thus the PEC surfaces must be perpendicular to E).
-------------------Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Please login with a confirmed email address before reporting spam
This makes sense to me. Thank you very much. And so if I should make the boundaries PML, it should solve the scattering problems I faced.
Please login with a confirmed email address before reporting spam
- Hello sir, I used your suggestion on my problem above. I investigated both PEC/PMC boundary conditions as well as PML. I realized that PEC/PMC gave me the results I expected but the PML results is questionable. I wonder if I did something wrong using the PML. My geometry will become complex in the future so I dont want to rely on PEC/PMC . Is there anything I should do? I have attached my files and results . I welcome your suggestions.Thank you.
Attachments:
Please login with a confirmed email address before reporting spam
It seems to me that your objective here is to simulate a representative subsection of a larger space, perhaps even an array (in effect, if not necessarily deliberate). Of course, if your incident wave is at normal incidence, you can use the PEC & PMC sidewalls previously discussed. But if you want to consider cases where the incident wave is not at normal incidence, then you may wish to consider a model using Floquet boundary conditions. There are a number of examples in the Comsol Application library. See, among others, https://www.comsol.com/model/modeling-of-pyramidal-absorbers-for-an-anechoic-chamber-12129 . That application shows how to use periodic floquet boundaries, and also provides one example of the use of a PML, relevant to this kind of work. Perhaps the RF absorber in that model is analogous to the cancer tissue in your model? If so, studying that model might really help you. Good luck.
-------------------Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Please login with a confirmed email address before reporting spam
My wave is at normal incidence so the PMC/PEC walls was valid. However, my goal is to simulate a structure like seen in the attached file, called figure. Initially when I used SBC and PML, I was getting electric field components in the Z.which was what i did not understand since my plane wave z propagated. My initial guess was that, my structure might not be flat. This is why i decided to use a simple flat structure as I have shown in our previous exchange. I was getting Ez components which was solved when i used PEC/PMC walls. However, when I used PEC and PMC walls, on my real geometry (figure), the results gets worse. I even get Ey and same Ez component. The PML works better on my real structure than PEC/PMC. I am just trying to understand why I get Ez components regardless of what i use. And since my structure will get more complicated, I dont want to rely on PEC/PMC walls. Please refer to the attached files for confirmation. I couldnt get my .mph files to be less than 5MB, so if you need to review that, I can send it to you anyhow you prefer. Thanks.
Attachments:
Please login with a confirmed email address before reporting spam
I'm sorry, but I just don't have time right now to review this topic and your models further. I encourage other contributors to this site to offer their suggestions.
-------------------Scientific Applications & Research Associates (SARA) Inc.
www.comsol.com/partners-consultants/certified-consultants/sara
Reply
Please read the discussion forum rules before posting.
Discussion Forum Rules and Guidelines
The goal of COMSOL Access is to provide a forum for you to communicate effectively with COMSOL as well as your colleagues within the multiphysics simulation community. This involves providing you with access to technical support and downloads of the latest {:comsol} software releases, as well as the ability to share your comments and work with other users of the {:comsol} software through forums such as the blog, discussion forum, and Application Exchange. In order to make this an efficient and pleasant experience for you and other members of COMSOL Access, we ask that you follow a few rules and guidelines.
When registering for COMSOL Access, you agree to provide your complete and truthful information for all fields requested on your COMSOL Access account registration page. You also agree to maintain the accuracy of all information associated with you on your COMSOL Access account. You agree to maintain your COMSOL Access account for use solely by you, not to share your username and password with anyone else, and to take appropriate precautions to restrict access to your username and password from others. Furthermore, you agree not to submit any information relating to your employer through your COMSOL Access account without your employer’s authorization. Should you use a COMSOL Access account associated with an employer, you agree to immediately discontinue using that account upon termination of that employment.
The moderators of the forums will remove any generally objectionable material as quickly as possible. You acknowledge that all posts made to these forums express the views and opinions of the author and not the administrators, moderators, or webmaster (except for posts by these people). Hence, they will not be held liable.
You agree not to post or link to any material that is abusive, obscene, vulgar, slanderous, hateful, threatening, sexually oriented, or that infringes upon or violates any third-party rights or any other material that may violate any applicable laws. You agree that you will not otherwise use your COMSOL Access account to violate or to assist anyone in violating any law. Engaging in any activity in violation of these COMSOL Access rules and guidelines may lead to you being immediately and permanently banned from COMSOL Access. The IP address of all posts is recorded to aid in enforcing these conditions. You agree that the webmaster, administrator, and moderators of the forums have the right to remove, move, or close any topic at any time as they see fit. As a user of COMSOL Access, you agree to any information you have entered into any of the forums being stored in a database.
You agree that you will not use your COMSOL Access account in violation of any applicable export control laws. You represent and warrant that you are not subject to any comprehensive sanction or embargo by the U.S. or any other country, nor are you identified on any list maintained by the U.S. government that identifies persons for which the U.S. maintains restrictions. Further, you represent and warrant that you are not subject to any restriction on the receipt of technology or products under the export control laws of the U.S. or any other country.
Basic Rules
- Flaming: Do not post any messages that harass, insult, belittle, threaten, or flame another member or guest. Debates are fine, but argue with the point, not the person.
- Trolling: Do not post with the purpose of starting a dispute. Note that a person disagreeing with your opinion is not considered trolling; keep it civil, even if you are sure that the other person is wrong. Anything seen as trolling will result in you being banned.
- Spamming: Posts without content or containing nonsense waste space and everyone's time. Spam will be removed from the forum.
- Offensive Posts, Links or Images: Do not use profanity, racial, ethnic, religious, or other slurs or any other offensive material.
- Advertising: Posting of advertisements for products or services, links to auctions, affiliate links, links to promote websites, and so forth is not allowed.
- Disclosure of Personal Information: Do not disclose any other member's email, real name, address, phone number, IP address, or other personal information. This includes posting contents of emails and private messages without the sender's consent. Do not bring personal disputes into the forums. Bans and warnings issued to other users are considered personal information.
- Misleading Titles: The subject line of the post should be as informative as possible about the content of the post. This also reduces the amount of duplicate posts.
- Thread Hijacking: Taking a thread off-topic to pursue one's own agenda is not permitted.
- Piracy: Do not upload, post, email, transmit, or otherwise make available any content that infringes upon any patent, trademark, trade secret, copyright, or other proprietary rights ("Rights") of any party. This includes COMSOL model files created by a forged or illegitimate license.
- Honesty: Users must provide truthful information in creating their COMSOL Access account.
These rules are subject to change. The moderators reserve the right to remove, edit, or move posts at their discretion. The COMSOL Access administrators will reserve the right to permanently remove a user account without notice if any of the rules are not followed. Particular services accessible with your COMSOL Access account may be subject to additional rules. You agree to comply with all rules applicable to each service you access through your COMSOL Access account.
Posting Guidelines
When posting, understand that you are trying to communicate with other people. Although many COMSOL Access members are not fluent in English, the official language of this forum is English.
Here are some important guidelines of language:
- Write in English.
- If you are familiar with LaTeX, please use this to write mathematical equations.
- Always do a quick check for spelling/grammar mistakes.
- Format your post in a legible manner. Use the Preview button often.
- Be concise and articulate as much as possible.
- Use the Enter key to create paragraphs.
- Capitalize correctly. It is difficult to read posts that are written entirely in uppercase or lowercase.
- Use correct punctuation. Avoid run-on sentences.
- Try to avoid using “text speak”, “net speak”, or slang. The purpose of language is to be understood.
- Never invent acronyms and use as few acronyms as possible. For example, write "COMSOL Multiphysics" and not "CMP".
- Review your post before publishing it. Try to catch typos.
- Please check to see if a topic has already been posted. Do not post multiple threads on the same topic.
Disclaimer
By submitting content to the forums, you hereby grant COMSOL a nonexclusive, royalty-free, perpetual, worldwide, and unrestricted license to reproduce, publicly display, publicly distribute, and prepare derivative works of the content. COMSOL hereby grants you a license to copy and/or use content from the forums solely for your own internal purposes. COMSOL provides the forum service for the benefit of our users to share content with the community. All content is provided "as is" without warranty of any kind, express or implied, including without limitation, warranties of merchantability, noninfringement, design, operation, and fitness for a particular purpose, and the entire risk as to the quality and performance of the programs is with you.
Neither COMSOL, the authors, nor the copyright owners of submitted materials warrant that the programs will be error-free, uninterrupted, virus-free, secure, and suitable for your needs, produce specific results, or that errors or failures will be corrected. Comments on supplied content should be sent to the author or copyright owner through the tools provided in the forums.
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.
Suggested Content
- FORUM 1D plot of electric potential distribution
-
KNOWLEDGE BASE
How can I see the equations COMSOL is defining?
How do I implement a user-defined Multiphysics coupling? - BLOG Using Numeric TEM Ports in Your Modeling Processes
- KNOWLEDGE BASE What to do when a linear stationary model is not solving
- BLOG Visualization for 2D Axisymmetric Electromagnetics Models