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
RevLine 
[e9cfc4]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"
[cd77fc]19#include "units/particle/bspline.hpp"
20#include "units/particle/particle.hpp"
[e9cfc4]21
[fbf143]22#include "Fragmentation/Summation/Containers/VMGData.hpp"
23#include "Fragmentation/Summation/SetValues/SamplingGrid.hpp"
[8f3cdd]24
[e9cfc4]25namespace VMG
26{
[8f3cdd]27class Grid;
[e9cfc4]28class MGGrid;
29class MGMultigrid;
30}
31
32namespace VMGInterfaces
33{
34
35class InterfaceVMGJob : public VMG::Interface
36{
37public:
[e2925fd]38 enum ImportParticles_t {
39 DontImportParticles=0,
40 DoImportParticles=1,
41 };
42
[8f3cdd]43 InterfaceVMGJob(const SamplingGrid &_sampled_input,
[2bc560]44 VMGData &returndata,
[cd77fc]45 const std::vector< std::vector< double > > &_particle_positions,
46 const std::vector< double > &_particle_charges,
[442cee]47 VMG::Boundary boundary,
48 int levelMin,
49 int levelMax,
[8f3cdd]50 const VMG::Vector &_box_begin,
51 vmg_float _box_end,
[cd77fc]52 const int& near_field_cells,
[e2925fd]53 const ImportParticles_t _ImportParticles=DoImportParticles,
[b6b21a]54 const bool _DoPrintDebug=false,
[17e4fd]55 const bool _DoSmearCharges=false,
[ee9018]56 int coarseningSteps=9,
[b6b21a]57 double alpha=1.6
58 );
[e9cfc4]59
[b123a5]60 ~InterfaceVMGJob() {}
[e9cfc4]61
62 void ImportRightHandSide(VMG::Multigrid& multigrid);
63 void ExportSolution(VMG::Grid& grid);
64
[cd77fc]65protected:
[17e4fd]66 unsigned int nfc;
67 const double meshwidth;
[cd77fc]68 VMG::Particle::BSpline spl;
69
[e9cfc4]70private:
[cd77fc]71 //!> sampled density on the grid as input
[8f3cdd]72 const SamplingGrid sampled_input;
[cd77fc]73 //!> sampled potential on the grid as output
[2bc560]74 VMGData &returndata;
[c91572]75 //!> number of grid points per axis as \f$2^{\mathrm{level}}\f$
[d12d621]76 const int level;
[cd77fc]77 //!> nuclei charges
78 std::list<VMG::Particle::Particle> particles;
[8f3cdd]79
80 //!> contains start of grid intervals
81 double box_begin[3];
82 //!> contains end of grid intervals
83 double box_end[3];
[b6b21a]84
[e2925fd]85 //!> whether we import particles (true) or evaluate only
86 const ImportParticles_t ImportParticles;
87
[b6b21a]88 //!> whether we do print grid for debug visualization or not
89 const bool DoPrintDebug;
[b47f9c]90
91 //!> open boundary conditions or not
92 const bool OpenBoundaryCondition;
[17e4fd]93
94 //!> whether to smear out electronic charge distributions with bsplines or not
95 const bool DoSmearCharges;
[e9cfc4]96};
97
98}
99
100#endif /* INTERFACEVMGJOB_HPP_ */
Note: See TracBrowser for help on using the repository browser.