MPS-Basic
Loading...
Searching...
No Matches
explicit.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "../particles.hpp"
4#include "interface.hpp"
5
6#include <vector>
7
8namespace PressureCalculator {
9
14class Explicit : public Interface {
15public:
20 std::vector<double> calc(Particles& particles) override;
21 ~Explicit() override;
22
23 Explicit(double n0, double soundSpeed, int dimension, double particleDistance);
24
25private:
26 double n0;
27 double soundSpeed;
28};
29
30} // namespace PressureCalculator
A collection of particles.
Definition particles.hpp:10
Class for explicit pressure calculation.
Definition explicit.hpp:14
Explicit(double n0, double soundSpeed, int dimension, double particleDistance)
Definition explicit.cpp:7
std::vector< double > calc(Particles &particles) override
calculate pressure
Definition explicit.cpp:15
Pressure calculator interface.
Definition interface.hpp:15