Skip to content

Working with Networks

Once a network is loaded, JAFF exposes a rich set of attributes and methods for inspecting species, reactions, and elements — and for exporting the network in various formats.

from jaff import Network

net = Network("networks/h_photoionization/h_photo.jet")

print(f"Label:     {net.label}")
print(f"Species:   {net.species.count}")
print(f"Reactions: {net.reactions.count}")
print(f"Elements:  {net.elements.count}")
  • Network


    Top-level Network class: constructor options, key attributes, export methods, and stoichiometry matrices.

    Network

  • Species


    Work with individual Specie objects and the Species catalogue: lookup, filtering, mass, charge, and elemental composition.

    Species

  • Elements


    Query the Elements catalogue derived from all species: density matrices, truth matrices, atomic properties.

    Elements

  • Reactions


    Inspect individual Reaction objects and the Reactions catalogue: filtering, conservation checks, rate expressions, and code generation.

    Reactions

  • jaffx CLI


    Quick network inspection and rate-coefficient export from the command line — without running the full code-generation pipeline.

    jaffx