1#ifndef PSPC_SOLVENT_TPP
2#define PSPC_SOLVENT_TPP
12#include <pscf/mesh/Mesh.h>
48 int nx = meshPtr_->size();
51 for (
int i = 0; i < nx; ++i) {
58 for (
int i = 0; i < nx; ++i) {
59 cField_[i] = exp(-s*wField[i]);
70 if (ensemble_ == Species::Closed) {
79 for (
int i = 0; i < nx; ++i) {
80 cField_[i] *= prefactor;
Description of a regular grid of points in a periodic domain.
IntVec< D > dimensions() const
Get an IntVec<D> of the grid dimensions.
Field of real double precision values on an FFT mesh.
void compute(RField< D > const &wField, double phiTot=1.0)
Compute monomer concentration field, q and phi and/or mu.
void setDiscretization(Mesh< D > const &mesh)
Set association with Mesh and allocate concentration field array.
Descriptor for a solvent species.
void setClassName(const char *className)
Set class name string.
C++ namespace for polymer self-consistent field theory (PSCF).