20 #ifndef JDFTX_ELECTRONIC_LINEARPCM_H 21 #define JDFTX_ELECTRONIC_LINEARPCM_H 23 #include <fluid/PCM.h> 39 void saveState(
const char* filename)
const;
54 #endif // JDFTX_ELECTRONIC_LINEARPCM_H void loadState(const char *filename)
Load state from file.
LinearPCM(const Everything &e, const FluidSolverParams &fsp)
Parameters same as createFluidSolver()
Definition: Minimize.h:85
std::shared_ptr< ScalarFieldTildeData > ScalarFieldTilde
A smart reference-counting pointer to ScalarFieldTildeData.
Definition: ScalarField.h:45
void saveState(const char *filename) const
Save state to file.
ScalarFieldTilde hessian(const ScalarFieldTilde &) const
Implements LinearSolvable::hessian for the dielectric poisson equation.
ScalarFieldTilde precondition(const ScalarFieldTilde &) const
Implements a modified inverse kinetic preconditioner.
Definition: NonlinearPCM.h:34
void minimizeFluid()
Converge using linear conjugate gradients.
ScalarFieldTilde rhoExplicitTilde
Charge density of explicit (electronic) system.
Definition: PCM.h:40
void set_internal(const ScalarFieldTilde &rhoExplicitTilde, const ScalarFieldTilde &nCavityTilde)
Fluid-dependent implementation of set()
G-space radial function stored on a uniform grid (of |G|)
Definition: RadialFunction.h:28
Definition: Everything.h:41
Base class for all PCMs.
Definition: PCM.h:29
Nonlinear minimization templates.
double get_Adiel_and_grad_internal(ScalarFieldTilde &grad_rhoExplicitTilde, ScalarFieldTilde &grad_nCavityTilde, IonicGradient *extraForces, bool electricOnly) const
Fluid-dependent implementation of get_Adiel_and_grad()
ScalarFieldTilde chi(const ScalarFieldTilde &) const
Apply susceptility operator (return fluid charge given net potential)
bool prefersGummel() const
Specify whether fluid prefers a gummel loop (true) or is minimized each time (false) ...
Definition: LinearPCM.h:31
Definition: LinearPCM.h:26
std::shared_ptr< ScalarFieldData > ScalarField
A smart reference-counting pointer to ScalarFieldData.
Definition: ScalarField.h:41
Extra parameters for fluids:
Definition: FluidSolverParams.h:93
Object to hold all the forces.
Definition: IonicMinimizer.h:31