Skip to content

Errors in core and edge profile interpolation and extrapolation #14

@anchal-physics

Description

@anchal-physics

I ran a scan of core and edge profiles of electron density on our sample file to see how the interpolation functions are doing. While for some values of Z and R, they are working exactly as we would like them to, there are weird problems with them on some values of R, Z. See these plots:


Scan Z at different values of R. The X-point is near R=5.5, Z=-3.5

electron_density_profiles_at_R_4 5 electron_density_profiles_at_R_5 0
electron_density_profiles_at_R_5 5
electron_density_profiles_at_R_6 0
electron_density_profiles_at_R_6 5
electron_density_profiles_at_R_7 0
electron_density_profiles_at_R_7 5
electron_density_profiles_at_R_8 0

  1. At R=4.5m, 5.0m, and 5.5m, we expect the core profile to not have any values outside of core. But for some reason, it is returning this constant value at Z< -4m which is very similar to core value.
  2. In almost all the plots, there is some kind of peak in edge_profile below Z=-4m. This is actually because of the points' proximity to separatix. So even though this region is outside the SOLPS mesh, it is smoothly decreasing the electron density away from separatix. Is this ok?
  3. There is a sudden drop in core profile value near the center at R=6.5. Seems like a hole.

Scan R at different values of Z. The X-point is near R=5.5, Z=-3.5

electron_density_profiles_at_Z_-4 0
electron_density_profiles_at_Z_-3 5
electron_density_profiles_at_Z_-3 0
electron_density_profiles_at_Z_-2 5
electron_density_profiles_at_Z_-2 0
electron_density_profiles_at_Z_-1 5
electron_density_profiles_at_Z_-1 0
electron_density_profiles_at_Z_-0 5
electron_density_profiles_at_Z_0 0
electron_density_profiles_at_Z_0 5
electron_density_profiles_at_Z_1 0
electron_density_profiles_at_Z_1 5
electron_density_profiles_at_Z_2 0
electron_density_profiles_at_Z_2 5
electron_density_profiles_at_Z_3 0
electron_density_profiles_at_Z_3 5
electron_density_profiles_at_Z_4 0

  1. At Z=-4.0m, -4.5m, again we expect the core_profile to not have any zero value as the core does not exist in this region. But the core_profile_2d returned non-zero values in some region.
  2. At Z = -4.0, the behavior of edge_profile shows that the simple inverse distance weighing for interpolation has weird effects when closest known value can suddenly change like it happened a near R=5.5, we see a sudden drop. Maybe we should just not use this function outside the SOLPS boundary or make it output flat zero everywhere outside or throw an error if outside point is provided.
  3. Same as above, one hole can be seen at Z=0.5m scan near the center. The core profile suddenly drops to zero (which is not plotted in this logscale plot)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions