12#include <prdc/cuda/resources.h>
13#include <pscf/mesh/Mesh.h>
39 int nx = meshPtr_->size();
48 Q = Reduce::sum(cField_) / ((double) nx);
58 double prefactor =
phi()/Q;
Field of real double precision values on an FFT mesh.
double phi() const
Get the overall volume fraction for this species.
void compute(RField< D > const &wField, double phiTot=1.0)
Compute monomer concentration field, q and phi and/or mu.
double size() const
Get the size (number of monomers) in this solvent.
void setQ(double q)
Set q and compute phi or mu (depending on the ensemble).
void setClassName(const char *className)
Set class name string.
void expVc(DeviceArray< cudaReal > &a, DeviceArray< cudaReal > const &b, cudaReal const c)
Vector exponentiation w/ coefficient, a[i] = exp(b[i]*c), kernel wrapper.
void mulEqS(DeviceArray< cudaReal > &a, const cudaReal b, const int beginIdA, const int n)
Vector multiplication in-place, a[i] *= b, kernel wrapper (cudaReal).
SCFT and PS-FTS with real periodic fields (GPU)
PSCF package top-level namespace.