A modified vector_fe_ex4 failed to converge #3286
Replies: 3 comments 7 replies
-
No time to check out your specific modifications right now, but in general the second step after "I tried a new formulation but my iterative solver failed to converge" (looks like 5000 steps didn't even give you a descent direction for the first quasi-Newton step here!) is "try a small enough problem with it that a direct solver is usable". If |
Beta Was this translation helpful? Give feedback.
-
Hi qianhanhua,
What happens if you change the example in a more
incremental fashion ? For example, change only the boundary conditions to
the one that you want and see if the solver converges. That way we can
better understand if the constraints are an issue like @jwpeterson
mentioned.
Vikram Garg
…On Thu, May 12, 2022 at 9:24 AM qianhanhua ***@***.***> wrote:
Just use -ksp_type preonly -pc_type lu and drop the part about superlu.
That only works if you enabled superlu in your PETSc build. The command
line solver options should then override any solver options that are set in
the code.
My "doesn't work" meant that the command line options was not overriding
code specified solver. with the superlu the program starts fine but failed
for same reason and output.
—
Reply to this email directly, view it on GitHub
<#3286 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGNEEKWDVQVZI2MO2LYWCTVJUWFPANCNFSM5VYOGD6A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi, all, after changing BCs to simply zero at the boundary (model itself also added a layer of PML), the solver was able to give a result using direct solver. @jwpeterson Please ignore my previous comments on @vikramvgarg I think we can confirm that it was due to the BCs. I was trying to truncate the problem with the analytical solutions at some virtual surface that encloses the problem domain. Seems more work needs to be done to make this idea working. Now the modified curl curl example give the same results as the modified vector Poisson example ( Thanks to all for the help on fixing the solver problem! |
Beta Was this translation helpful? Give feedback.
-
Hi, dear maintainers,
I had a discussion [https://github.com//discussions/3243] about using libmesh to reproduce results of Mie scattering (Plane electromagnetic wave scattered by dielectric sphere). I was modifying
vector_fe_ex1
for such model. With your suggestions I was able to get some meaningful results, but there were always big differences around the surface of the sphere, as compared with the analytical solution.So I decided to try out with the curl curl example since the governing equation is very similar. I didn't change the main function much but mainly the
curl_curl_system.c
file, as attached here.scatter_system.c.txt
However, after compilation and executing, the solver failed to converge:
May I ask if there is any way to improve so the solver could produce a converged result? Thank you!
Beta Was this translation helpful? Give feedback.
All reactions