minor corrections, beginning of electric field calc

This commit is contained in:
2024-01-22 16:58:51 +01:00
parent 08e6c17db8
commit dde76c333f
2 changed files with 42 additions and 17 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ class PoissonSolver {
void solvePotential(const blitz::Array<double, 3> charge_density);
blitz::Array<double, 3> potential();
// std::shared_ptr<VectorField> staticElectricField();
std::shared_ptr<VectorField> staticElectricField();
private:
GlobalBoundary bottom_boundary_;
@@ -74,7 +74,7 @@ class PoissonSolver {
// 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)
blitz::Array<PotentialGridPoint, 3> potential_;
blitz::Array<PotentialGridPoint, 3> potential_; //unit V
blitz::Array<double, 3> interpolateDensityToPotentialGrid(
const blitz::Array<double, 3> charge_density);