rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
CircuitCoupling.h File Reference

Closes an external electrical circuit on the channel's own resistance. More...

#include "PlasmaChannel1D.h"
#include <cstddef>
#include <functional>
#include <vector>

Go to the source code of this file.

Classes

struct  rizer::CircuitSample
 The circuit columns of one recorded frame. More...
class  rizer::ChannelCircuit
 The channel side of the circuit coupling. More...

Namespaces

namespace  rizer

Detailed Description

Closes an external electrical circuit on the channel's own resistance.

A seam, not a solver. The circuit itself lives in Python (rizer/electrical_model/circuit/); what crosses into C++ is one callback taking \((t, R_p)\) and returning the plasma terminal voltage. This file holds the half that belongs on this side: the cross-section quadrature that turns the live state into \(\int\sigma\,\mathrm{d}A\), the resistance it implies, and the two terminal voltages the driver interpolates the applied field between over one step.

Separate from PlasmaChannelSolver because it is a small state machine – five numbers with one writer – whose correctness is an ordering question (see closeOver()) rather than part of the time loop it sits inside.

Definition in file CircuitCoupling.h.