Skip to content

Does change_grid function work with nonuniform grids? #149

@malamast

Description

@malamast

Hi all,

I’m trying to use the change_grid function to remap restart files onto a higher-resolution grid:
https://github.com/boutproject/boutdata/blob/master/src/boutdata/restart.py#L1013

However, I’m finding that the interpolated solution differs significantly from the solution.

It seems that the interpolation is performed in a normalized index space, e.g.:
https://github.com/boutproject/boutdata/blob/master/src/boutdata/restart.py#L1176
which I think assumes a uniform grid in x within each region. In my case, the grid was generated with Hypnotoad and is non-uniform in the radial direction.

I’m planning to modify the function to account for non-uniform grids, but I wanted to ask:
What coordinate would be most appropriate for interpolation in this case? Perhaps the physical coordinates such as Rxy and Zxy?

Any guidance would be appreciated.
Cheers!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions