mesh-adaptation / goalie

Goal-oriented error estimation and mesh adaptation for finite element problems solved using Firedrake
Other
1 stars 1 forks source link

Introduce a helper `Field` class #181

Open ddundo opened 2 months ago

ddundo commented 2 months ago

Currently information about each field is scattered around in different dictionaries of MeshSeq and TimePartition: fields, _fs, field_types, etc. I think we should introduce a class Field that would hold all of these at the same place.

So e.g. u = Field(name="velocity", type="unsteady") etc.

jwallwork23 commented 2 months ago

Sounds good, thanks. Note that I think fields were originally associated with TimePartition in case we wanted to support having different timesteps for different fields.