#pragma once #include "fluid_holder.hpp" namespace sim::coolant { class pump { fluid_holder* const src; fluid_holder* const dst; const double mass; // grams const double radius; // meters const double l_per_rev; // litres const double friction; // J/rev double velocity = 0; // m/s public: double power = 0; // watts pump(fluid_holder& src, fluid_holder& dst, double mass, double radius, double l_per_rev, double friction); double get_flow() const; // L/s double get_rpm() const; // rev/min void update(double dt); }; };