included generator files for the poisson solver
Adjusted binning in poisson_solver.* to fit with the generator
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#ifndef POISSONSOLVER_GENERATOR_H
|
||||
#define POISSONSOLVER_GENERATOR_H
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "poisson_solver/poisson_solver.h"
|
||||
#include "simulation/jansson_additionals.h"
|
||||
#include "simulation/parameter.h"
|
||||
|
||||
namespace generator {
|
||||
// no electrode stuff is included
|
||||
std::shared_ptr<PoissonSolver> buildPoissonSolver(
|
||||
Parameter& parameter);
|
||||
};
|
||||
|
||||
#endif /* POISSONSOLVER_GENERATOR_H */
|
||||
@@ -52,7 +52,7 @@ class PoissonSolver {
|
||||
GlobalBoundary top_boundary,
|
||||
GlobalBoundary hull_boundary,
|
||||
std::shared_ptr<Geometry> geometry,
|
||||
std::shared_ptr<CylinderBinning> density_binning,
|
||||
CylinderBinning& density_binning,
|
||||
std::vector<std::shared_ptr<Electrode>> electrodes,
|
||||
double target_accuracy,
|
||||
int num_cycles);
|
||||
@@ -67,13 +67,13 @@ class PoissonSolver {
|
||||
GlobalBoundary hull_boundary_;
|
||||
std::shared_ptr<Geometry> geometry_;
|
||||
std::vector<std::shared_ptr<Electrode>> electrodes_;
|
||||
std::shared_ptr<CylinderBinning> density_binning_;
|
||||
CylinderBinning density_binning_;
|
||||
double target_accuracy_;
|
||||
int num_cycles_;
|
||||
|
||||
// the potential is located on the grid corners (such that
|
||||
// it is defined on r=0) (note that the density_binning is taken
|
||||
// to be defined in the cell centers)
|
||||
// density binning defined on the cell centers, potential defined
|
||||
// such that it exists on the cell edges so that the azimuthal
|
||||
// position is the same as the one of the density binning
|
||||
blitz::Array<PotentialGridPoint, 3> potential_; //unit V
|
||||
|
||||
blitz::Array<double, 3> interpolateDensityToPotentialGrid(
|
||||
|
||||
Reference in New Issue
Block a user