37 void init(
bool initFlows);
39 void advance(
int* tstep);
42 int getElapsedTime() {
return currentTime; }
43 double getPeakKwatts() {
return peakKwatts; }
49 enum EngineState {CLOSED, OPENED, INITIALIZED};
50 EngineState engineState;
72 void initMatrixSolver();
75 int timeToPatternChange();
76 int timeToActivateControl();
77 int timeToCloseTank();
79 void updateCurrentConditions();
81 void updatePatterns();
82 void updateEnergyUsage();
84 bool isPressureDeficient();
85 int resolvePressureDeficiency(
int& trials);
86 void reportDiagnostics(
int statusCode,
int trials);
Abstract class for solving a set of linear equations.
Definition: matrixsolver.h:27
Simulates extended period hydraulics.
Definition: hydengine.h:25
Interface for an equilibrium network hydraulic solver.
Definition: hydsolver.h:26
Contains the data elements that describe a pipe network.
Definition: network.h:41