Removed possibility of Nphi > 1
This commit is contained in:
@@ -45,6 +45,7 @@ class RearWall : public Electrode {
|
||||
bool isOnElectrode(const Coordinate& position);
|
||||
};
|
||||
|
||||
// for (r,z) axially density
|
||||
class PoissonSolver {
|
||||
public:
|
||||
PoissonSolver(GlobalBoundary bottom_boundary,
|
||||
@@ -57,12 +58,12 @@ class PoissonSolver {
|
||||
int num_cycles,
|
||||
bool do_solver);
|
||||
|
||||
void solvePotential(const blitz::Array<double, 3> charge_density);
|
||||
blitz::Array<double, 3> potential();
|
||||
void solvePotential(const blitz::Array<double, 2> charge_density);
|
||||
blitz::Array<double, 2> potential();
|
||||
std::shared_ptr<VectorField> staticElectricField();
|
||||
const CylinderBinning* densityBinning();
|
||||
|
||||
void setPotential(blitz::Array<double, 3>& potential);
|
||||
void setPotential(blitz::Array<double, 2>& potential);
|
||||
|
||||
private:
|
||||
GlobalBoundary bottom_boundary_;
|
||||
@@ -78,13 +79,13 @@ class PoissonSolver {
|
||||
// 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<PotentialGridPoint, 2> potential_; //unit V
|
||||
|
||||
blitz::Array<double, 3> interpolateDensityToPotentialGrid(
|
||||
const blitz::Array<double, 3> charge_density);
|
||||
blitz::Array<double, 2> interpolateDensityToPotentialGrid(
|
||||
const blitz::Array<double, 2> charge_density);
|
||||
|
||||
void solverIteration(const blitz::Array<double, 3>& interpolated_density);
|
||||
bool converged(const blitz::Array<double, 3>& interpolated_density);
|
||||
void solverIteration(const blitz::Array<double, 2>& interpolated_density);
|
||||
bool converged(const blitz::Array<double, 2>& interpolated_density);
|
||||
};
|
||||
|
||||
// Electrodes can only be dirichlet boundary conditions
|
||||
|
||||
Reference in New Issue
Block a user