[SOLVED] Failed to find a solution for the initial parameter
Posted Oct 20, 2023, 2:49 p.m. EDT Fluid & Heat, Heat Transfer, Results & Visualization Version 6.1 8 Replies
Please login with a confirmed email address before reporting spam
Hello All,
I am trying to simulate laminar fluid flow and heat transfer throught a small part. I am using a stationary study with a parametric sweep (changing the heat rate parameter). I have an initial pressure condition on the inlet and also a heat source on one side of the model. First I started by simulating only the fluid flow and had no issues, when I went back and added heat transfer in solids and fluids I now have the following error when I try to compute:
"Failed to find a solution for the initial parameter. In Heat transfer: Divergence of the linear iterations. Returned solution is not converged. Not all parameter steps returned."
The computations appears to keep getting stuck at 22% with the GMRES not converging.
I am new to comsol, so I am not sure how exactly to figure out where I am going wrong. Any suggestions are greatly appreciated.
Thanks, Odette
UPDATE: I found this message in the Log: "Convergence criteria of the segregated solver are met but not all conditions for group Heat transfer are fulfilled.", so I am assuming there is something where with the conditions I set up for the Heat Transfer. However, I have looked and I do not see anything that is missing or wrong. Is there a way I can further isolate what the error is?
Please login with a confirmed email address before reporting spam
Is it possible for you to share the model? Much easier that way to get an answer. My first guess would be that you have insufficient boundary conditions for heat transfer. A list of things I would try (in no particular order): - Can you achieve the effect of the heat source in another way, say a heat flux? Does it work at all with any other boundary conditions? - Can you find a similar model in the COMSOL application files? Typically very helpful in replicating expected/desired behaviour when you have a reference to compare to. - Have you tried reducing the heat source? e.g. instead of 10^10 W/m^3 to 1. Load ramping might prove useful here (https://www.comsol.com/blogs/load-ramping-nonlinear-problems) - Does the problem work in reverse? e.g. Solve HT without the flow - Is the mesh fine enough near the heat source? If your material properties depend in a non-linear fashion on temperature that could be the cause of your issues. This list is non-exhaustive, but I find that not giving up is essential to tackling COMSOL issues.
Please login with a confirmed email address before reporting spam
Thank you so much for your response Igor!
Unfortunately, I cannot share the file. So far I have tried changing Heat Source to Heat Flux. And updated my mesh carefully. Both times I got the same error as before.
I will continue to try your suggestions and let you know how it goes. If you or anyone else have more suggestions, let me know!
Please login with a confirmed email address before reporting spam
Just tried changing the solver from GMRES to PARDISO and got the following error: "The relative residual (1.7) is greater than the relative tolerance."
Because of the shorter computation time, I have kept it at PARDISO for now. I increased the relative tolerance to 0.01 and changed dependent variable scaling from automatic to manual (1) as suggested in another discussion, and am running the computation now. Is there anything else I should do? Or should I switch back to GMRES?
Please login with a confirmed email address before reporting spam
If your material properties depend in a non-linear fashion on temperature that could be the cause of your issues.
Possibly a stupid question, but how would I determine this?
Please login with a confirmed email address before reporting spam
On the left, the materials dropdown menu should show what materials you assigned to the domains. Click on one of your materials (for e.g. "Air" or "Water" if you used the predefined COMSOL materials). Once you click there, you will find thermal conductivity, density and other physical properties. You will maybe see some of them expressed as k(T), where the thermal conductivity is a function of temperature (see attached picture). Nonetheless, on second thought, I do not think this is your issue. It is hard for me to say what the exact issue is, so I suggest simplifying your problem further until you find what it is. What I mean by that is: - If you have a 3D geometry go to a 2D representation and try solving it that way. - If you have a complex CAD-file, the above still holds, try sketching a simpler geometry. - Remove the heat source, and try assigning a simple temperature boundary condition at your inlet, does the model work? - Try comparing your model to this COMSOL example: https://www.comsol.com/model/heat-sink-8574. It has fluid flow and heat transfer, the physics you need. Where is the difference? (I wager the temperature in your model is not constrained) In my experience, COMSOL suggests suitable solver settings most of the time, and typically a model set-up issue (e.g. wrong/missing boundary conditions, mesh issues) is the cause. Let me know how it goes.
Attachments:
Please login with a confirmed email address before reporting spam
Odette,
I agree with Igor that it would be very difficult to help you efficiently without being able to see how you set up your model. With that said, I can venture one more possibility, and that's that your model may not be internally consistent. An error one can make is to set up boundary conditions that are not consistent with the initial values inside the domains (especially in transient models), or not consistent among themselves. The software can only do so much to try and reconcile conflicting information. Transitioning from one value to the other via ramping functions such as smoothed Heaviside functions, either in space or in time, is often the recommended approach to deal with this.
Note that if the reason you can't share your mph file on this Discussion Forum is that the file is too big to upload, then you should clear all meshes and clear all solutions from it. This will reduce the file size dramatically and make it possible to upload.
Best,
Jeff
-------------------Jeff Hiller
Please login with a confirmed email address before reporting spam
Thank you so much to Igor and Jeff for your detailed and informative replies.
It seems that for my problem a stationary study would never be able to converge. Once I switched to a time depedent study and simplified my geometry a bit it did work.
Something weird did happen on my last study results though. When I run the study with one pressure value and one heat rate, the results show temperature flowing through the whole part. However, when I added two parameter sweeps (one for heat rate, one for pressure), apart from the heat source the entire part stays at the initial heat rate value. I am confused because the only thing I changed was the parameter sweeps. Does anyone know what happened?
The initial values: 1 W, 90 psi
Parameter sweep 1: 3kW, 6kW, 9kW, 12, kW, 15 kW Parameter sweep 2: 50 psi, 60 psi, 70 psi, 80 psi, 90 psi, 100 psi
Thanks, Odette
Please login with a confirmed email address before reporting spam
Update: got it to work! Thanks again Igor and Jeff
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.