Poisson step and resets only after time resolution

This commit is contained in:
2024-05-15 09:12:43 +02:00
parent 77fa8d175a
commit fcbff96f17
4 changed files with 29 additions and 44 deletions
+3 -7
View File
@@ -55,12 +55,10 @@ class PoissonSolver {
std::vector<std::shared_ptr<Electrode>> electrodes,
double target_accuracy,
int num_cycles,
int solver_intervall,
int solver_offset,
bool reset_after_solving);
bool do_solver);
void solvePotential(const blitz::Array<double, 3> charge_density,
int cpu_sync, bool& reset);
const bool solve);
blitz::Array<double, 3> potential();
std::shared_ptr<VectorField> staticElectricField();
const CylinderBinning* densityBinning();
@@ -74,9 +72,7 @@ class PoissonSolver {
const CylinderBinning density_binning_;
const double target_accuracy_;
const int num_cycles_;
const int solver_intervall_;
const int solver_offset_;
const bool reset_after_solving_;
const bool do_solver_;
// density binning defined on the cell centers, potential defined
// such that it exists on the cell edges so that the azimuthal