source: src/Jobs/InterfaceVMGJob.hpp

Candidate_v1.6.1
Last change on this file was 17e4fd, checked in by Frederik Heber <heber@…>, 9 years ago

Added new option DoSmearElectronicCharges to FragmentationAutomationAction.

  • this uses ChargeSmearer: is prepared in InterfaceVMGJob and used in WindowGrid_converter.
  • VMGJob and VMGFragmentController need to pass along the DoSmearCharges option from the command-line.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1/*
2 * InterfaceVMGJob.hpp
3 *
4 * Created on: 10.06.2012
5 * Author: Frederik Heber
6 */
7
8#ifndef INTERFACEVMGJOB_HPP_
9#define INTERFACEVMGJOB_HPP_
10
11#ifdef HAVE_CONFIG_H
12#include <config.h>
13#endif
14
15#include <boost/function.hpp>
16
17#include "base/interface.hpp"
18#include "base/vector.hpp"
19#include "units/particle/bspline.hpp"
20#include "units/particle/particle.hpp"
21
22#include "Fragmentation/Summation/Containers/VMGData.hpp"
23#include "Fragmentation/Summation/SetValues/SamplingGrid.hpp"
24
25namespace VMG
26{
27class Grid;
28class MGGrid;
29class MGMultigrid;
30}
31
32namespace VMGInterfaces
33{
34
35class InterfaceVMGJob : public VMG::Interface
36{
37public:
38 enum ImportParticles_t {
39 DontImportParticles=0,
40 DoImportParticles=1,
41 };
42
43 InterfaceVMGJob(const SamplingGrid &_sampled_input,
44 VMGData &returndata,
45 const std::vector< std::vector< double > > &_particle_positions,
46 const std::vector< double > &_particle_charges,
47 VMG::Boundary boundary,
48 int levelMin,
49 int levelMax,
50 const VMG::Vector &_box_begin,
51 vmg_float _box_end,
52 const int& near_field_cells,
53 const ImportParticles_t _ImportParticles=DoImportParticles,
54 const bool _DoPrintDebug=false,
55 const bool _DoSmearCharges=false,
56 int coarseningSteps=9,
57 double alpha=1.6
58 );
59
60 ~InterfaceVMGJob() {}
61
62 void ImportRightHandSide(VMG::Multigrid& multigrid);
63 void ExportSolution(VMG::Grid& grid);
64
65protected:
66 unsigned int nfc;
67 const double meshwidth;
68 VMG::Particle::BSpline spl;
69
70private:
71 //!> sampled density on the grid as input
72 const SamplingGrid sampled_input;
73 //!> sampled potential on the grid as output
74 VMGData &returndata;
75 //!> number of grid points per axis as \f$2^{\mathrm{level}}\f$
76 const int level;
77 //!> nuclei charges
78 std::list<VMG::Particle::Particle> particles;
79
80 //!> contains start of grid intervals
81 double box_begin[3];
82 //!> contains end of grid intervals
83 double box_end[3];
84
85 //!> whether we import particles (true) or evaluate only
86 const ImportParticles_t ImportParticles;
87
88 //!> whether we do print grid for debug visualization or not
89 const bool DoPrintDebug;
90
91 //!> open boundary conditions or not
92 const bool OpenBoundaryCondition;
93
94 //!> whether to smear out electronic charge distributions with bsplines or not
95 const bool DoSmearCharges;
96};
97
98}
99
100#endif /* INTERFACEVMGJOB_HPP_ */
Note: See TracBrowser for help on using the repository browser.