12#include <pscf/mesh/Mesh.h>
49 cField_.allocate(meshPtr_->dimensions());
58 int nx = meshPtr_->size();
61 for (
int i = 0; i < nx; ++i) {
68 for (
int i = 0; i < nx; ++i) {
69 cField_[i] = exp(-s*wField[i]);
80 if (ensemble_ == Species::Closed) {
89 for (
int i = 0; i < nx; ++i) {
90 cField_[i] *= prefactor;
Description of a regular grid of points in a periodic domain.
Field of real double precision values on an FFT mesh.
void associate(Mesh< D > const &mesh)
Create an association with the mesh.
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.
Descriptor for a solvent species.
void setClassName(const char *className)
Set class name string.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
PSCF package top-level namespace.