| [48b662] | 1 | /**
|
|---|
| 2 | * @file interface_particles.hpp
|
|---|
| 3 | * @author Julian Iseringhausen <isering@ins.uni-bonn.de>
|
|---|
| 4 | * @date Tue Apr 12 17:40:36 2011
|
|---|
| 5 | *
|
|---|
| 6 | * @brief Interface for computing forces and energies in
|
|---|
| 7 | * particle systems.
|
|---|
| 8 | *
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | #ifndef INTERFACE_PARTICLES_HPP
|
|---|
| 12 | #define INTERFACE_PARTIVLES_HPP
|
|---|
| 13 |
|
|---|
| [dfed1c] | 14 | #include <list>
|
|---|
| 15 |
|
|---|
| 16 | #include "base/linked_cell_list.hpp"
|
|---|
| 17 | #include "base/particle.hpp"
|
|---|
| 18 | #include "comm/mpi/has_request_vec.hpp"
|
|---|
| [48b662] | 19 | #include "interface/interface.hpp"
|
|---|
| [dfed1c] | 20 | #include "samples/bspline.hpp"
|
|---|
| [48b662] | 21 |
|
|---|
| 22 | namespace VMG
|
|---|
| 23 | {
|
|---|
| 24 |
|
|---|
| 25 | class Grid;
|
|---|
| 26 | class Multigrid;
|
|---|
| 27 |
|
|---|
| [894a5f] | 28 | class InterfaceParticles : public Interface, public HasRequestVec
|
|---|
| [48b662] | 29 | {
|
|---|
| 30 | public:
|
|---|
| [dfed1c] | 31 | InterfaceParticles(const Boundary& boundary, const int& levelMin, const int& levelMax,
|
|---|
| 32 | const Vector& box_offset, const vmg_float& box_size,
|
|---|
| [ac6d04] | 33 | const int& near_field_cells,
|
|---|
| 34 | const int& coarsening_steps, const vmg_float& alpha) :
|
|---|
| 35 | Interface(boundary, levelMin, levelMax, box_offset, box_size, coarsening_steps, alpha),
|
|---|
| [dfed1c] | 36 | HasRequestVec(),
|
|---|
| [4571da] | 37 | spl(near_field_cells*Extent(MaxLevel()).MeshWidth().Max())
|
|---|
| [48b662] | 38 | {}
|
|---|
| 39 |
|
|---|
| 40 | void ImportRightHandSide(Multigrid& multigrid);
|
|---|
| 41 | void ExportSolution(Grid& grid);
|
|---|
| [dfed1c] | 42 |
|
|---|
| 43 | protected:
|
|---|
| 44 | BSpline spl;
|
|---|
| 45 |
|
|---|
| 46 | private:
|
|---|
| 47 | std::list<Particle::Particle> particles;
|
|---|
| [48b662] | 48 | };
|
|---|
| 49 |
|
|---|
| 50 | }
|
|---|
| 51 |
|
|---|
| 52 | #endif /* INTERFACE_PARTICLES_HPP */
|
|---|