|
Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
|
Abstract base class for all numerical solvers. More...
#include <ISolver.h>
Public Member Functions | |
| virtual | ~ISolver ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
| virtual bool | stepFrame ()=0 |
| Advances the solver by one step. | |
Abstract base class for all numerical solvers.
ISolver provides a minimal interface for solvers that operate on physics simulations or other iterative processes. The solver is called repeatedly by the physics system until it signals completion.
Solvers are intentionally decoupled from physics-specific code. They operate on generic callables (std::function) rather than physics objects directly. This allows the same solver infrastructure to be reused for different problem domains.
Example usage:
|
virtualdefault |
Virtual destructor for proper cleanup of derived classes.
|
pure virtual |
Advances the solver by one step.
This method is called by the physics system after each simulation step. The solver examines the current state and decides whether to continue or declare completion.
Forward solvers (InterceptSolver):
Inverse solvers (VectorRootSolver):
Implemented in InterceptSolver, and VectorRootSolver< InputT, OutputT >.