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
8
namespace
PressureCalculator
{
9
14
class
Explicit
:
public
Interface
{
15
public
:
20
std::vector<double>
calc
(
Particles
& particles)
override
;
21
~Explicit
()
override
;
22
23
Explicit
(
double
n0
,
double
soundSpeed
,
int
dimension,
double
particleDistance);
24
25
private
:
26
double
n0
;
27
double
soundSpeed
;
28
};
29
30
}
// namespace PressureCalculator
Particles
A collection of particles.
Definition
particles.hpp:10
PressureCalculator::Explicit
Class for explicit pressure calculation.
Definition
explicit.hpp:14
PressureCalculator::Explicit::~Explicit
~Explicit() override
Definition
explicit.cpp:12
PressureCalculator::Explicit::Explicit
Explicit(double n0, double soundSpeed, int dimension, double particleDistance)
Definition
explicit.cpp:7
PressureCalculator::Explicit::soundSpeed
double soundSpeed
Definition
explicit.hpp:27
PressureCalculator::Explicit::calc
std::vector< double > calc(Particles &particles) override
calculate pressure
Definition
explicit.cpp:15
PressureCalculator::Explicit::n0
double n0
Definition
explicit.hpp:26
PressureCalculator::Interface
Pressure calculator interface.
Definition
interface.hpp:15
PressureCalculator
Definition
dirichlet_boundary_condition.hpp:5
particles.hpp
interface.hpp
src
pressure_calculator
explicit.hpp
Generated by
1.12.0