Package jline.solvers.fluid.handlers
Class TransientDataHandler
-
- All Implemented Interfaces:
-
org.apache.commons.math3.ode.sampling.StepHandler
public class TransientDataHandler implements StepHandler
Step handler for capturing transient data during fluid solver ODE integration.
This class implements the Apache Commons Math StepHandler interface to collect time series data during numerical integration of ordinary differential equations in fluid queueing network analysis. It captures state vectors at each integration step for transient performance analysis.
Key capabilities:
- Dynamic storage of time points and state vectors
- Automatic array resizing for long simulations
- Non-negative value enforcement for physical constraints
- Memory optimization through array shrinking
- Since:
1.0
-
-
Constructor Summary
Constructors Constructor Description TransientDataHandler(int numDimensions)
Constructs a transient data handler for the specified number of state dimensions.
-
Method Summary
Modifier and Type Method Description void
handleStep(StepInterpolator interpolator, boolean isLast)
Handles each integration step by storing the time and state vector data. void
init(double t0, Array<double> x0, double t)
-
-
Method Detail
-
handleStep
void handleStep(StepInterpolator interpolator, boolean isLast)
Handles each integration step by storing the time and state vector data.
This method is called by the ODE integrator at each step. It captures the current time and interpolated state vector, enforcing non-negative constraints and managing dynamic array resizing as needed.
- Parameters:
interpolator
- provides access to current time and interpolated stateisLast
- indicates if this is the final integration step
-
-
-
-