Skip to content

OM Refactor: Renaming #100

Description

@elenya-grant

Some naming was quickly introduced in PR #91 and it may be more clear to have some renaming of both folders, files, and components/groups/subsystems in bert.py

Renaming Folders/Files

The current file structure exists because of legacy ideas about the organization of the code which no longer apply. The proposed renaming are:

  • components/stack rename to components/degradation
  • components/cluster rename to components/dynamics
  • connectors/: maybe add subfolders to this to distinguish different types of connector components.
    • bounds_baseclass.py:
    • scale_power.py: maybe this should be moved to a new folder called scalars?
  • translators/ rename to ??
    • simple_power_translator.py
      • PowerToCurrentCurveCoeff
      • PowerToCurrent

Renaming subsystems and groups

The OpenMDAO refactor requires many more "side" components than the previous workflow. Currently, each cluster has the following 3 major subsystems:

  • converter: "pre-translator" that does calculations needed for the translator and simulation components
    • IJ_ref: gets reference points for Power-Current curve fit and outputs lower and upper bounds of current density and current
    • ref_cell: reference cell that calculated power consumption for each current reference point
    • p2i: calculates curve coefficients to convert power to current
  • translator:
    • cluster_to_stack: scale down power signal from cluster-level to stack-level
    • stack_to_cell: scale down power signal from stack-level to cell-level
    • command_to_current: takes in the coefficients from p2i and translates the power signal from the controller to current
  • simulation
    • dynamics
    • cell_nominal
    • degradation
    • cell_real

Possible renaming is:

  • converter: ?
    • IJ_ref: bounds
    • ref_cell: OK as-is
    • p2i: translator_coeffs?
  • translator: ?
    • cluster_to_stack:
    • stack_to_cell:
    • command_to_current: maybe use the control command name instead. So its hydrogen_to_current or power_to_current?
  • simulation: these are good
    • dynamics
    • cell_nominal
    • degradation
    • cell_real

Metadata

Metadata

Assignees

No one assigned

    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