dedalus.core.system

Classes for systems of coefficients/fields.

Module Contents

class CoeffSystem(subproblems, dtype, array_namespace)

Contiguous buffer for data from all subproblems.

Parameters:
  • subproblems (list of Subproblem objects) – Subproblems to represent

  • dtype (dtype) – Data type

  • array_namespace (array namespace) – Array namespace

Variables:
  • data (ndarray) – Contiguous buffer for data from all subproblems

  • views (dict) – Nested dictionary of views for each subproblem and subsystem

get_subdata(sp, ss=None)
data
class FieldSystem(fields, subproblems)

Collection of fields alongside a CoeffSystem buffer for efficient pencil and group manipulation.

Parameters:
  • field_names (list of strings) – Names of fields to build

  • domain (domain object) – Problem domain

Variables:
  • data (ndarray) – Contiguous buffer for field coefficients

  • fields (list) – Field objects

  • nfields (int) – Number of fields in system

  • field_dict (dict) – Dictionary of fields

gather()

Copy fields into system buffer.

scatter()

Extract fields from system buffer.

array_views
buffer
field_buffer
group_buffer
perm