12 #ifndef CD_FieldSolverImplem_H
13 #define CD_FieldSolverImplem_H
17 #include <CD_NamespaceHeader.H>
22 CH_TIME(
"FieldSolver::getDielectricPermittivity(RealVect a_pos)");
33 Real minDist = std::numeric_limits<Real>::infinity();
36 for (
int i = 0; i < dielectrics.size(); i++) {
37 const RefCountedPtr<BaseIF> func = dielectrics[i].getImplicitFunction();
39 const Real curDist = func->value(a_pos);
41 if (std::abs(curDist) <= std::abs(minDist)) {
47 relPerm = dielectrics[closest].getPermittivity(a_pos);
50 CH_assert(dielectrics.size() > 0);
51 CH_assert(relPerm > 0.0);
56 #include <CD_NamespaceFooter.H>
Contains declaration of a base electrostatics solver class.
RefCountedPtr< MultiFluidIndexSpace > m_multifluidIndexSpace
Multifluid index space.
Definition: CD_FieldSolver.H:573
RefCountedPtr< ComputationalGeometry > m_computationalGeometry
Computational geometry.
Definition: CD_FieldSolver.H:578
Real getDielectricPermittivity(const RealVect &a_pos) const
Get relative permittivity at some point in space.
Definition: CD_FieldSolverImplem.H:20