dedalus.core.system

Classes for systems of coefficients/fields.

Module Contents

class CoeffSystem(nfields, domain)

Representation of a collection of fields that don’t need to be transformed, and are therefore stored as a contigous set of coefficient data for efficient pencil and group manipulation.

Parameters:
  • nfields (int) – Number of fields to represent
  • domain (domain object) – Problem domain
Variables:

data (ndarray) – Contiguous buffer for field coefficients

get_pencil(self, pencil)

Return pencil view from system buffer.

set_pencil(self, pencil, data)

Set pencil data in system buffer.

class FieldSystem(field_names, domain)

Bases:dedalus.core.system.CoeffSystem

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
classmethod from_fields(cls, fields)
gather(self)

Copy fields into system buffer.

scatter(self)

Extract fields from system buffer.