Added potential solution in the empty domain
and usage of the resulting E-field for the first events
This commit is contained in:
@@ -67,6 +67,15 @@ PoissonSolver::PoissonSolver(GlobalBoundary bottom_boundary,
|
||||
}
|
||||
}
|
||||
}
|
||||
blitz::Array<double, 3> zero_chargedensity(
|
||||
blitz::Range(density_binning.binIndexMin()(0),
|
||||
density_binning.binIndexMax()(0)),
|
||||
blitz::Range(density_binning.binIndexMin()(1),
|
||||
density_binning.binIndexMax()(1)),
|
||||
blitz::Range(density_binning.binIndexMin()(2),
|
||||
density_binning.binIndexMax()(2)));
|
||||
zero_chargedensity = 0.;
|
||||
solvePotential(zero_chargedensity);
|
||||
}
|
||||
|
||||
void PoissonSolver::solverIteration(
|
||||
|
||||
@@ -55,6 +55,7 @@ void Simulation::init(Parameter& parameter) {
|
||||
|
||||
DEBUG_LEVEL_0("Init poisson solver.");
|
||||
poisson_solver_ = generator::buildPoissonSolver(parameter);
|
||||
electric_field_->updateDynamicField(poisson_solver_->staticElectricField());
|
||||
|
||||
DEBUG_LEVEL_0("Init output.");
|
||||
output_ = generator::buildSimulationOutput(
|
||||
|
||||
Reference in New Issue
Block a user