11#include <util/param/ParamComposite.h>
12#include "GeometryMode.h"
13#include <util/containers/DArray.h>
207 void computeVolume();
One-dimensional spatial domain and discretization grid.
double dx() const
Get spatial grid step size.
bool isShell() const
Is this a cylindrical or spherical shell?
DArray< double > Field
Generic field type (base class)
double spatialAverage(Field const &f) const
Compute spatial average of a field.
void setSphereParameters(double xMax, int nx)
Set grid parameters for a sphere.
double xMin() const
Get minimum spatial coordinate.
void setShellParameters(GeometryMode mode, double xMin, double xMax, int nx)
Set grid parameters for a cylindrical or spherical shell.
double xMax() const
Get maximum spatial coordinate.
void setPlanarParameters(double xMin, double xMax, int nx)
Set grid parameters for a planar domain.
GeometryMode const & mode() const
Get coordinate system flag (Planar, Cylindrical or Spherical).
void readParameters(std::istream &in)
Read all parameters and initialize.
int nx() const
Get number of spatial grid points, including both endpoints.
void setCylinderParameters(double xMax, int nx)
Set grid parameters for a cylinder.
double volume() const
Get generalized volume of domain.
double innerProduct(Field const &f, Field const &g) const
Compute inner product of two real fields.
Dynamically allocatable contiguous array template.
An object that can read multiple parameters from file.
GeometryMode
Enumeration of geometrical modes for functions of one coordinate.
C++ namespace for polymer self-consistent field theory (PSCF).
Utility classes for scientific computation.