fmihpc / vlasiator

Vlasiator - ten letters you can count on
https://www.helsinki.fi/en/researchgroups/vlasiator
Other
47 stars 38 forks source link

Updates to the Kelvin-Helmholtz instability project #960

Closed vetarvus closed 4 months ago

vetarvus commented 5 months ago

Fixes and updates to the existing 'KHB' Vlasiator project.

The updated version has a pressure balance across the simulation domain and options for a multichromatic initial perturbation with random phases.

Also added an example config file to samples/, which can be used as a quick test/demonstration.

markusbattarbee commented 4 months ago

I was now testing this, and the memory footprint is massive. The cause is, I think, that this project doesn't inherit the TriAxisSearch class, thus defaulting to the base project v-space initialization which in fact initializes all blocks (and because shrink_to_fit is bypassed, the footprint remains huge).

The solution is to make this inherit TriAxisSearch, but that requires that it implements a getV0() function which impacts initialization in general.

markusbattarbee commented 4 months ago

Implemented in https://github.com/vetarvus/vlasiator/pull/1