Loading...
Searching...
No Matches
CUDAWCSPHSolver2.hpp
Go to the documentation of this file.
1// This code is based on Jet framework.
2// Copyright (c) 2018 Doyub Kim
3// CubbyFlow is voxel-based fluid simulation engine for computer games.
4// Copyright (c) 2020 CubbyFlow Team
5// Core Part: Chris Ohk, Junwoo Hwang, Jihong Sin, Seungwoo Yoo
6// AI Part: Dongheon Cho, Minseo Kim
7// We are making my contributions/submissions to this project solely in our
8// personal capacity and are not conveying any rights to any intellectual
9// property of any third parties.
10
11#ifndef CUBBYFLOW_CUDA_WC_SPH_SOLVER2_HPP
12#define CUBBYFLOW_CUDA_WC_SPH_SOLVER2_HPP
13
14#ifdef CUBBYFLOW_USE_CUDA
15
17
18namespace CubbyFlow
19{
37{
38 public:
39 class Builder;
40
43
48
50 CUDAWCSPHSolver2(const CUDAWCSPHSolver2&) = delete;
51
54
57
60
63
65 [[nodiscard]] float EOSExponent() const;
66
75
77 static Builder GetBuilder();
78
81 void OnAdvanceTimeStep(double timeStepInSeconds) override;
82
83 private:
84 float m_eosExponent = 7.0f;
85};
86
89
95{
96 public:
98 [[nodiscard]] CUDAWCSPHSolver2 Build() const;
99
101 [[nodiscard]] CUDAWCSPHSolver2Ptr MakeShared() const;
102};
103} // namespace CubbyFlow
104
105#endif
106
107#endif
Definition pybind11Utils.hpp:21
Matrix< T, Rows, 1 > Vector
Definition Matrix.hpp:738