-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convergence (Laplace, 1st kind) needs stricter params #15
Comments
Conclusion The 1st-kind formulation shows the expected convergence with stricter parameters, as shown above: p = 12, k = 4, told = 1e-6.
The 2nd-kind formulation appears to not be so sensitive, as the convergence line plot looked fine with the lower p and lower k. This formulation also requires very few iterations to converge. |
Maybe this helps in clarifying more the "The 2nd-kind formulation appears to not be so sensitive".
I've read this in Chris thesis, and in Lu. et al 2006 - (4th page second column) though I couldn't find the 1st source that explain this. @cdcooper84 do you have any good source to recommend where they explain better de dependence and independence on the number of elements in the condition number for 1st and 2nd kind formulation respectively? |
Hey, this is a interesting discussion! I think there are two different things here: one is the strange convergence behavior of the first kind equation, and the other is the condition number with respect to number of elements.
I remember seeing that it converged as 1/\sqrt{N} when I used the potential on one panel to test convergence, but this was not a smart move as the location of the panel wasn't exactly the same for every mesh. When I used an integral quantity (the energy) I did see 1/N convergence. @tingyu66, What are you guys using to test convergence? Are using the value of dphi/dn at a single point? |
we used the l2 norm of the relative error of dphi / dn, so it is On Friday, March 11, 2016, cdcooper84 [email protected] wrote:
Tingyu Wang (Vince) |
@cdcooper84 -- look what it says in Simon's thesis ... I'm sure he got this from you! So, which is it? |
@cdcooper84 Adding to Lorena's question another issue. You reported on your thesis (i.e First kind formulation) O(1/N) but I read in Geng & Krasny-2013 (i.e Second kind) that they got O(1/sqrt(N)). What is right the opposite of Simon's thesis says. |
Oh, I hadn't realized that they were the opposite! I think that both should converge as first order. The problem is that, as far as I'm aware, nobody has been able to analytically show the convergence of collocation in BEM, even though experience shows that it does converge. This is the main reason why BEM people from the math side avoid collocation and use Galerkin. Hence, there is no way of saying "this should converge in such way", and people just trust equivalent codes. This is something that I remember having discussed with Simon, and I did see the same behavior when I was not using an integral quantity to compare, but once I compared the energy (which is the quantity I was worried about), I did see 1st order. At that time, I blamed this behavior to the fact that the center of each panel does not exactly lie on the surface of the sphere, so when I looked at the norm of the error of dphi/dn, actually, I was not comparing at the same point. Perhaps you could try calculating phi in a point away from the surface, and compare that. In fact, this is what Liu does to look at errors in his Fast BEM book. About the 1/sqrt(N) convergence in Geng & Krasny, I think this might be due to low accuracy in singular/near singular integrals, but I would need to test it to be sure. In fact, in the second kind formulation, they need to integrate the adjoint of the double layer, which is hard to do (check Tausch, Wang, White 2001). Again, this is just my impression. |
Hey, Chris, thanks for the reply. I went through Liu's FMM-BEM book, where he gave two examples of FMM-BEM for potentials problems: in the annual heat conducting plate example, phi & phi/dn on the surface are used as the quantity to compare with analytical solution; in the later example of electrostatic field around conducting spheres, charge densities on the spheres are used. So I didn't found the case where he picks an exterior point to calculate the phi. I tried to use a high k for singular & near singular integrals, but still it yields to the same convergence curve (with a slope -0.75). |
Just re-checked Liu's book, and I see I was confused. The point is at the surface, however, they test the same point every time, which is on the surface for the mesh and the actual sphere. |
An update: @tingyu66 did a new test with larger ncrit=700 (previous was 400) and was able to get almost linear convergence, with slope ~0.96 ... "close enough" ... My question to him was how many of those runs do any FMM at all, because it could be mostly P2P. He will check. But the interesting thing is that mat-vec with FMM in this case is affecting the convergence (no relaxation here). |
Excellent! That is great news! |
- red line: relative error of phi on an **external point** (p=12, k=4, ncrit=400, tol=1e-6)
- black line: L2 norm of the relative error of phi on **surface panels** (p=12, k=7, ncrit=700, tol=1e-5)
- solid line: 1st-kind
- dotted line: 2nd-kind
result update, again.
|
The new convergence tests with Laplace equation produced a line plot that curves upward at high N (i.e., losing convergence order) with the original parameters used: p = 10, tol = 1e-6.
After much head-scratching, we looked at the number of Gauss points. In the method section of Simon's thesis, it says the number of Gauss points is set to k = 3 or 4 for far integrals, and ~20 for near-singular integrals. The code has a default setting of k = 3, but you can modify it in args. We don't know the value of k used for the convergence plot in the thesis.
The text was updated successfully, but these errors were encountered: