suanPan
🧮 An Open Source, Parallel and Heterogeneous Finite Element Analysis Framework
Loading...
Searching...
No Matches
ParticleCollision3D.h
Go to the documentation of this file.
1/*******************************************************************************
2 * Copyright (C) 2017-2026 Theodore Chang
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 ******************************************************************************/
29#ifndef PARTICLECOLLISION3D_H
30#define PARTICLECOLLISION3D_H
31
32#include "ParticleCollision.h"
33
35 struct CellList {
36 int x = 0, y = 0, z = 0;
37 unsigned tag = 0;
38
39 CellList(const int in_x, const int in_y, const int in_z, const unsigned in_tag)
40 : x(in_x)
41 , y(in_y)
42 , z(in_z)
43 , tag(in_tag) {}
44 };
45
46 const double space = 1.;
47 const double alpha = 1.;
48
49 [[nodiscard]] double compute_f(double) const override;
50 [[nodiscard]] double compute_df(double) const override;
51
52 int process_meta(const shared_ptr<DomainBase>&, bool) override;
53
54public:
55 ParticleCollision3D(unsigned, double, double);
56};
57
58#endif
59
A ParticleCollision3D class.
Definition ParticleCollision3D.h:34
A ParticleCollision class.
Definition ParticleCollision.h:34