Skip to content

issues for ossfe, missing args from init #95

@shimwell

Description

@shimwell

Classes with incomplete init:

openmc.Cell (/home/jon/openmc/openmc/cell.py:107)

  • init accepts: cell_id, name, fill, region
  • Missing: temperature, rotation, translation, volume

openmc.RectLattice (/home/jon/openmc/openmc/lattice.py:406)

  • init accepts: lattice_id, name
  • Missing: lower_left, pitch, universes, outer

openmc.HexLattice (/home/jon/openmc/openmc/lattice.py:1098)

  • init accepts: lattice_id, name
  • Missing: center, pitch, universes, outer, orientation

openmc.Material (/home/jon/openmc/openmc/material.py:134) — partial

  • init covers most things via components dict
  • Missing: S(a,b) thermal scattering tables (requires add_s_alpha_beta() call)

openmc.Universe (base, /home/jon/openmc/openmc/universe.py:28)

  • init accepts: universe_id, name
  • Missing: cells — but CSGUniverse (line 422) does accept cells, so this is fine if we use the subclass

Classes that DO fully support init:

  • All Surfaces (XPlane, YPlane, ZPlane, ZCylinder, Sphere, XCone, etc.)
  • Settings (via **kwargs → setattr)
  • Tally (scores, filters, nuclides, estimator)
  • All Filters (CellFilter, EnergyFilter, ParticleFilter, etc.)
  • IndependentSource (space, angle, energy, time, strength, particle)
  • All openmc.stats distributions (Discrete, Uniform, Point, Box, etc.)
  • CSGUniverse (cells)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions