STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
feedtwin.solve Namespace Reference

Namespaces

namespace  network
namespace  report
namespace  steady

Variables

list __all__

Detailed Description

Solving a feed system: steady now, transient in Phase 07.

    from feedtwin.solve import Network, solve_steady

    net = Network()
    net.add_node("tank", "LOX", temperature=90.0, pressure=30e5)
    net.add_node("inj",  "LOX", temperature=90.0, pressure=20e5)
    net.add_branch("FL-01", line, "tank", "inj")

    result = solve_steady(net)
    result.flows["FL-01"]        # kg/s
    result.pressures["inj"]      # Pa
    result.max_mass_residual     # how well mass actually balanced

Unknowns are one pressure per free node and one flow per branch; equations are
one mass balance per free node and one pressure relation per branch. Everything
else -- the sparsity, the damping, the derivative floor at zero flow -- is in
:mod:`feedtwin.solve.steady`, along with why each is needed.

Steady, isothermal, single-phase. Node temperatures are given rather than
solved. Phase 05 adds the gas side, Phase 07 the transient.

Variable Documentation

◆ __all__

list feedtwin.solve.__all__
private
Initial value:
1= [
2 "MIN_BRANCH_SLOPE",
3 "Branch",
4 "ConvergenceError",
5 "Network",
6 "NetworkError",
7 "Node",
8 "SteadyResult",
9 "pressure_ladder",
10 "solve_steady",
11]

Definition at line 35 of file __init__.py.