Restructuring of poisson solver offset;

inclusion of stride for poisson solver
This commit is contained in:
2024-03-28 15:57:04 +01:00
parent 26f730ca29
commit 52a580ac63
4 changed files with 60 additions and 39 deletions
+9 -4
View File
@@ -54,9 +54,12 @@ class PoissonSolver {
CylinderBinning& density_binning,
std::vector<std::shared_ptr<Electrode>> electrodes,
double target_accuracy,
int num_cycles);
int num_cycles,
int solver_intervall,
int solver_offset);
void solvePotential(const blitz::Array<double, 3> charge_density);
void solvePotential(const blitz::Array<double, 3> charge_density,
int cpu_sync);
blitz::Array<double, 3> potential();
std::shared_ptr<VectorField> staticElectricField();
const CylinderBinning* densityBinning();
@@ -68,8 +71,10 @@ class PoissonSolver {
std::shared_ptr<Geometry> geometry_;
std::vector<std::shared_ptr<Electrode>> electrodes_;
const CylinderBinning density_binning_;
double target_accuracy_;
int num_cycles_;
const double target_accuracy_;
const int num_cycles_;
const int solver_intervall_;
const int solver_offset_;
// density binning defined on the cell centers, potential defined
// such that it exists on the cell edges so that the azimuthal