Total current calculated through flux integration not equaling input boundary condition
Posted 2024年2月10日 GMT-5 13:29 General, Results & Visualization, Studies & Solvers Version 6.0 5 Replies
Please login with a confirmed email address before reporting spam
Hi,
I have a electric current simulation setup, where my active terminal is an internal boundary and I assign it a current of 1A. My ground is the outer boundary of my model, which is built as a cylinder.
I am trying to numerically verify the total current coming out of the input terminal surface, by integrating the expression: nxec.Jx+nyec.Jy+nz*ec.Jz - which gives me -0.14A.
However integrating ec.normJ over the same input terminal surface gives me: 0.25A and integrating ec.nJ over the same input terminal gives me: 0.5A
I expect all these values to be equal to 1A (or close to 1A), but they are way off except for ec.nJ. (I realize these values are subject to change as I refine the mesh, cannot post that here because of the file size limitation, but they are never close to 1. For a finer mesh, ec.nJ is about 0.8 )
I would appreciate any inputs to help me understand where I am going wrong. May be I am incorrect in my understanding of the terms involved.
I also want to add that when I integrate nxec.Jx+nyec.Jy+nzec.Jz or ec.normJ or ec.nJ over the external boundary ground they all turn out to be 0.98A, which basically means all my input current is going to the ground (as one would expect.)
Attachments:
Please login with a confirmed email address before reporting spam
I took a look at your model. I only work on similar models now and then, but it seems to me you are doing something very strange here. You have two domains (the little cube and the big cylinder around it) both with finite conductivities that only differ by a modest ratio. Both are included in your computational space. What you seem to be trying to do (please correct me if I am mistaken) is to force a particular uniform current density (1A/mm^2,) thru one face of the little cube, outward into the rest of the cylinder. I don't think this is what a "terminal" boundary condition is for. As the Help sytem explains, "The Terminal node provides a boundary or domain condition for connection to external circuits, to transmission lines, or with a specified voltage or charge." You don't have any external circuit, right? You seem to be trying to simply specify a current density on an internal surface (generated presumably by some non-modeled invisible battery, chemical reaction, or perhaps something like the photoelectric effect??) and then force the rest of the physics to solve. Well, I believe Comsol will let you do that, but I don't think a terminal is the way to go. Instead, I suggest you use a "Boundary Current Source." Again, per the Help sytem, "The Boundary Current Source node adds a current source Q j on the boundary. It is applicable to interior boundaries that represent either a source or a sink of current." I tried that and it seemed (in just a quick check) to do what I think (not 100% sure) you wanted/expected. So please try that and let us all know if you are happy with it. 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
Hi Robert,
Thank you for taking the time look at the model and offer your suggestions.
You are more or less correct about my intentions with the model, I apologize for not being clear enough.
However, I am trying to specify a current value, not a current density value, on a surface of the cube, then let the physics solve itself. I expect the current to primarily flow inwards first(into the cube), because the inner material is more conductive and then spread out to the ground (I am not sure if there is a way with the physics module to totally inhibit the initial outward flow of current). I am not modeling the source here, but let us assume that is connected to the surface of the cube by a wire (also not modelled here) and lets me control the input current(1A here).
I realize I am applying the terminal condition to an internal boundary, which isn't normally done, which is the reason I was trying to verify the physics by integrating the currents, but that's not adding up.
Let me know if this makes sense at all.
Please login with a confirmed email address before reporting spam
Ok, first, think about where on the surface you are imagining that this unmodeled wire is actually connected. Now think about how that location impacts the spatial distribution of currents. Now, ask yourself, if you may be specifying a problem for which there is not a unique answer. 2nd, in regard to the other, more mathematical question of specifying the surface integral as a boundary constraint, I'll defer to others here who may wish to comment on how to do that.
-------------------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 for your input.
I just want to mention that the file I have put up here is kind of an approximation of what I am actally want to model, since I am unable to share the actual model because of file size.
The active terminal surface of the cube is basically an active contact of an electrode, that is modelled in side the cylinder.
I tried replacing my terminal boundary condition with the Boundary current source as per your suggestion (converted 1A to xx A/m^2) , however, the electric field seems to be much weaker. Therefore, these two do not seem be providing the same input, which I find confusing.
I would still appreciate if someone could help me understand the flux calculations. If I am integrating the total current over my input terminal and my ground, I expect both of them to be equal to the value I assing (1A in this case). However, they are not. I understand numerical differences due to meshing, but refining the mesh doesn't improve the scenario either.
Please login with a confirmed email address before reporting spam
It isn't obvious to me that, taken at the abstract level you are describing, that you are specifying a current source that actually obeys the laws of physics. That said, I suspect that the physics of your situation would actually be straightforward to manage, but speaking for myself, I still don't understand what you are really trying to model. If possible, I suggest posting detailed drawings (i.e., from several views), along with labels, showing what you are trying to model. By that, I mean not what you think should be specified in Comsol Multiphysics, but what you think matters in the real world. E.g., "This is a very thin flat battery (like a watch battery)" (with an arrow pointing to it). "This is a resistor" (with an arrow pointing to it). "This is a copper wire" (with an arrow pointing to it). "This is a sealed metal box, with no openings." and/or "This volume is filled with water." Etc. Those are just examples. But I suspect that if you can describe your problem in terms like that, then somebody here (not necessarily me) will be able to give you useful advice about how to model it and how to interpret the computed currents, voltages, etc.
-------------------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
- KNOWLEDGE BASE Improving Convergence of Transient Models
- FORUM How are curvature variables calculated in COMSOL?
- KNOWLEDGE BASE Avoiding Negative Concentrations
- KNOWLEDGE BASE Computing Time and Space Integrals
- BLOG Overview of Integration Methods in Space and Time