12#include <pscf/mesh/Mesh.h>
20 template <
int D,
class T>
28 template <
int D,
class T>
35 template <
int D,
class T>
46 template <
int D,
class T>
50 cField_.allocate(meshPtr_->dimensions());
56 template <
int D,
class T>
61 const int nx = meshPtr_->size();
Description of a regular grid of points in a periodic domain.
int size() const
Get total number of grid points.
void compute(typename T::RField const &wField, double phiTot=1.0)
Compute concentration field, q, and phi or mu.
void associate(Mesh< D > const &mesh)
Create an association with a Mesh.
void allocate()
Allocate memory for a concentration field.
void setClassName(const char *className)
Set class name string.
#define UTIL_CHECK(condition)
Assertion macro suitable for serial or parallel production code.
double sum(Array< double > const &in)
Compute sum of array elements (real).
void mulEqS(Array< double > &a, double b)
Vector-scalar in-place multiplication, a[i] *= b (real).
void expVc(Array< double > &a, Array< double > const &b, const double c)
Exponentiation a scaled vector, a[i] = exp(b[i]*c) (real).
Class templates for real-valued periodic fields.
PSCF package top-level namespace.