gtopt/node.hpp file

Generic carrier-tagged balance-node template.

Defines Node<Carrier> — a typed balance node for any energy carrier. Concrete instantiations (HydrogenNode, ThermalNode) inherit from this template, get their own class_name constant for LP row labels, and carry no other fields — they're pure "balance-row identifier" objects.

A Node<C> is the carrier-side analog of an electrical Bus: every flow with carrier C (storage charge/discharge, generator output, demand) sums to zero at the node. No voltage angle, no Kirchhoff's law, no reactance — those are electric-specific concepts that stay on Bus (which will later inherit from Node<Carrier::Electric> in a separate refactor).

Namespaces

namespace gtopt

Classes

template<Carrier C>
struct gtopt::Node
Generic carrier-tagged balance node.