NRL-Plasma-Physics-Division / turbopy

A lightweight computational physics framework, based on the organization of turboWAVE. Implements a "Simulation, PhysicsModule, ComputeTool, Diagnostic" class hierarchy.
https://turbopy.readthedocs.io/
Creative Commons Zero v1.0 Universal
10 stars 18 forks source link

Add 2D Grid functionality #179

Open OwenGrannis opened 3 years ago

OwenGrannis commented 3 years ago

The Grid class currently only exists in one dimension, which limits its functionality.

As far as I can tell, a subclass option overriding the initiator to accept a two-dimensional input using x and y to create a 2D numpy array would be a good solution.

We would need to figure out how to specify between 1D and 2D grids.