BOUT-dev icon indicating copy to clipboard operation
BOUT-dev copied to clipboard

WIP: FV::Div_a_Grad_perp operator

Open bendudson opened this issue 1 year ago • 2 comments

Going through this operator (again). Reviewing how metric elements are interpolated to cell edges.

To do:

  • [ ] Tests
  • [ ] Documentation

bendudson avatar Dec 20 '23 05:12 bendudson

Failing test should be fixed by #2824

dschwoerer avatar Dec 20 '23 09:12 dschwoerer

Thanks for this @bendudson. I've put this through our puff test. For everyone else, we are facing a very tough to debug problem where our neutrals are spontaneously increasing in temperature and decreasing in density around the X-point. We have ruled out a lot of things and our current suspect is the operator. We came up with a test where we take a simplified model with a fixed plasma background of constant temperature and density and impose a neutral source near the X-point. We then observe how the diffusive transport behaves, particularly how the density falloff evolves with distance from the puff source.

I am seeing no difference with this new operator. There is a bifurcation near the source which is identical in both cases. The bifurcation can be seen near X=0 in the RHS plot we see several points of similar distance but different density. It may be that this is due to cell size after all, i.e. because the cell value represents the average across the entire cell, meaning that a larger cell covering a greater distance from the puff source would have a lower density value (I think?).

Old results: image

New results: image

mikekryjak avatar Dec 20 '23 10:12 mikekryjak