-
Notifications
You must be signed in to change notification settings - Fork 12
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
Source mesh total source strength scaling incorrectly with mesh discretization #168
Comments
A couple of things to try discussed in person:
|
What is the plasma volume reported by Cubit? |
The total volume should be independent of the number of CFS grid points!?!?! The total enclosed volume should only depend on the resolution of the outer surface. All internal volume should be part of some internal element. |
Is the code for these calcs in the repo somewhere? Perhaps as a 'utility' or something? |
The plasma volume reported by Cubit is 1.09764e+08 cm^3. It may be worth mentioning that only a single period is being modeled, so number of elements, total volume, etc. are for that single period. However, I've scaled the fusion power calculations to be for a full four-period source (not sure why but here we are). The change in total volume as CFS grid points varies is rather small (~2.3%) but agreed, it should be zero. I don't have the code for these calculations available in this repository but I could include them? Not sure how useful they'd be as an actual utility. Fusion power is calculated as a conversion of |
I wonder what happens if you go from N layers in the CFS directions to N+1 by dividing only a single layer? |
Using the same parameters we use for our source mesh tests, Inserting an additional grid point at Inserting an additional grid point at Inserting an additional grid point at |
Using the same poloidal and toroidal angle grids as above, using a CFS grid of It's worth noting that for each of these, there are tetrahedra present with negative volumes. For no CFS splitting, 6.56% of tetrahedra have negative volume. Splitting the CFS grid once results in 0.82% of tetrahedra having negative volume. |
I wonder if maybe some tetrahedra are being created multiple times? Or perhaps some tetrahedra are created incorrectly (e.g., the wrong vertices are used such that some tetrahedral volumes extend beyond where they're supposed to)? For the record, I checked our tetrahedral volume calculation against OpenMC's and they agreed for each tetrahedron (checking many thousands of tetrahedra). |
Can we check the tet count as we just add one layer in the CFS direction? Generally speaking, I'm a little concerned about this and not entirely sure how to test it properly. |
The number of tetrahedra created seems to check out. Using Inserting an additional grid point at |
And what's the change in volume in those two cases? Can get get the volume of the different CFS layers? |
For the first case, the total volume is 3.1599e7 cm3 and the volume per layer is As expected, it would seem that the volume discrepancy is coming from the layer that is split. The split layer has volumes 3.0502e6 cm3 and 2.9753e6 cm3, combined 6.0255e6, whereas the whole layer has volume 6.3808e6 cm3 (-5.57% change). |
That is a big change in those layers, especially since it's 100% internal and there should be no change.... 😕 |
Neighboring hexes need to be divided in an alternating pattern to avoid "pillow" or "overlapping" sets of triangles |
The expected scaling behavior for total source strength (sum of
SourceMesh.strengths
) with increasing mesh discretization is asymptotic. One would expect that with finer discretization, total source strength would approach some singular value (hopefully, the true value).In particular, what I would expect (though please check my logic) is that closed flux surface (CFS) discretization would have the largest impact on source strength accuracy, since source strength is directly dependent on CFS value. I would then expect poloidal and toroidal angle discretizations to have a lesser though still asymptotic impact since those are mostly related to accurately representing the shape of the plasma.
However, in the current source mesh implementation, as @Edgar-21 pointed out, this is not the observed behavior. Varying each mesh dimension independently, I observed the trends in the following plots, with fusion power representing total source strength.
Figure 1. Calculated fusion power as a function of CFS discretization. Number of poloidal grid points and number of toroidal grid points are kept constant at 61 each.
Figure 2. Calculated fusion power as a function of poloidal angle discretization. Number of CFS grid points and number of toroidal grid points are kept constant at 11 and 61, respectively.
Figure 3. Calculated fusion power as a function of toroidal angle discretization. Number of CFS grid points and number of poloidal grid points are kept constant at 11 and 61, respectively.
Doing the same for the source mesh implementation in PR #167, we observe an entirely different set of trends. This may warrant some discussion.
Figure 4. Calculated fusion power as a function of CFS discretization. Number of poloidal grid points and number of toroidal grid points are kept constant at 61 each.
Figure 5. Calculated fusion power as a function of poloidal angle discretization. Number of CFS grid points and number of toroidal grid points are kept constant at 11 and 61, respectively.
Figure 6. Calculated fusion power as a function of toroidal angle discretization. Number of CFS grid points and number of poloidal grid points are kept constant at 11 and 61, respectively.
The text was updated successfully, but these errors were encountered: