| Line | |
|---|
| 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 |
|
|---|
| 14 | #include <list>
|
|---|
| 15 |
|
|---|
| 16 | #include "base/linked_cell_list.hpp"
|
|---|
| 17 | #include "base/particle.hpp"
|
|---|
| 18 | #include "comm/mpi/has_request_vec.hpp"
|
|---|
| 19 | #include "interface/interface.hpp"
|
|---|
| 20 | #include "samples/bspline.hpp"
|
|---|
| 21 |
|
|---|
| 22 | namespace VMG
|
|---|
| 23 | {
|
|---|
| 24 |
|
|---|
| 25 | class Grid;
|
|---|
| 26 | class Multigrid;
|
|---|
| 27 |
|
|---|
| 28 | class InterfaceParticles : public Interface, public HasRequestVec
|
|---|
| 29 | {
|
|---|
| 30 | public:
|
|---|
| 31 | InterfaceParticles(const Boundary& boundary, const int& levelMin, const int& levelMax,
|
|---|
| 32 | const Vector& box_offset, const vmg_float& box_size,
|
|---|
| 33 | const int& near_field_cells) :
|
|---|
| 34 | Interface(boundary, levelMin, levelMax, box_offset, box_size, 0, 1.0),
|
|---|
| 35 | HasRequestVec(),
|
|---|
| 36 | spl((near_field_cells+0.5)*Extent(MaxLevel()).MeshWidth().Max())
|
|---|
| 37 | {}
|
|---|
| 38 |
|
|---|
| 39 | void ImportRightHandSide(Multigrid& multigrid);
|
|---|
| 40 | void ExportSolution(Grid& grid);
|
|---|
| 41 |
|
|---|
| 42 | protected:
|
|---|
| 43 | BSpline spl;
|
|---|
| 44 |
|
|---|
| 45 | private:
|
|---|
| 46 | std::list<Particle::Particle> particles;
|
|---|
| 47 | };
|
|---|
| 48 |
|
|---|
| 49 | }
|
|---|
| 50 |
|
|---|
| 51 | #endif /* INTERFACE_PARTICLES_HPP */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.