11#include <util/param/ParamComposite.h>
12#include "GeometryMode.h"
13#include <util/containers/DArray.h>
207 void computeVolume();
bool isShell() const
Is this a cylindrical or spherical shell?
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 xMax() const
Get maximum spatial coordinate.
void setPlanarParameters(double xMin, double xMax, int nx)
Set grid parameters for a planar domain.
void readParameters(std::istream &in)
Read all parameters and initialize.
void setShellParameters(GeometryMode mode, double xMin, double xMax, int nx)
Set grid parameters for a cylindrical or spherical shell.
double dx() const
Get spatial grid step size.
void setSphereParameters(double xMax, int nx)
Set grid parameters for a sphere.
double volume() const
Get generalized volume of domain.
double innerProduct(Field const &f, Field const &g) const
Compute inner product of two real fields.
DArray< double > Field
Generic field type (base class).
double spatialAverage(Field const &f) const
Compute spatial average of a field.
GeometryMode const & mode() const
Get coordinate system flag (Planar, Cylindrical or Spherical).
double xMin() const
Get minimum spatial coordinate.
Dynamically allocatable contiguous array template.
ParamComposite()
Constructor.
GeometryMode
Enumeration of geometrical modes for functions of one coordinate.
SCFT with real 1D fields.
PSCF package top-level namespace.