11#include <pscf/chem/SolventSpecies.h>
12#include <prdc/cpu/RField.h>
16 template <
int D>
class Mesh;
24 using namespace Prdc::Cpu;
116 #ifndef RPC_SOLVENT_TPP
Description of a regular grid of points in a periodic domain.
Field of real double precision values on an FFT mesh.
Solver and descriptor for a solvent species.
void associate(Mesh< D > const &mesh)
Create an association with the mesh.
RField< D > const & cField() const
Get the monomer concentration field for this solvent.
void compute(RField< D > const &wField, double phiTot=1.0)
Compute monomer concentration field, q and phi and/or mu.
void allocate()
Allocate memory for concentrationf field.
SolventSpecies()
Constructor.
int monomerId() const
Get the monomer type id.
double size() const
Get the size (number of monomers) in this solvent.
double phi() const
Get the overall volume fraction for this species.
void setQ(double q)
Set q and compute phi or mu (depending on the ensemble).
double mu() const
Get the chemical potential for this species (units kT=1).
Ensemble ensemble() const
Get the statistical ensemble for this species (open or closed).
double q() const
Get the molecular partition function for this species.
Periodic fields and crystallography.
Real periodic fields, SCFT and PS-FTS (CPU).
PSCF package top-level namespace.