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
Networkclass: constructor options, key attributes, export methods, and stoichiometry matrices. -
Species
Work with individual
Specieobjects and theSpeciescatalogue: lookup, filtering, mass, charge, and elemental composition. -
Elements
Query the
Elementscatalogue derived from all species: density matrices, truth matrices, atomic properties. -
Reactions
Inspect individual
Reactionobjects and theReactionscatalogue: filtering, conservation checks, rate expressions, and code generation. -
jaffx CLI
Quick network inspection and rate-coefficient export from the command line — without running the full code-generation pipeline.