40 "The \"FIELDSOLVER\" statement defines data for a the field solver") {
42 "TYPE",
"Name of the attached field solver.", {
"NONE",
"FFT",
"CG ",
"OPEN",
"P3M"});
58 "BCFFTX",
"Boundary conditions in x.", {
"OPEN",
"DIRICHLET",
"PERIODIC"},
"OPEN");
61 "BCFFTY",
"Boundary conditions in y.", {
"OPEN",
"DIRICHLET",
"PERIODIC"},
"OPEN");
64 "BCFFTZ",
"Boundary conditions in z.", {
"OPEN",
"DIRICHLET",
"PERIODIC"},
"OPEN");
67 "GREENSF",
"Which Greensfunction to be used.", {
"STANDARD",
"INTEGRATED"},
"INTEGRATED");
95 throw OpalException(
"FieldSolverCmd::find()",
"FieldSolverCmd \"" + name +
"\" not found.");
140 static const std::map<std::string, FieldSolverCmdType> stringType_s = {
149 "FieldSolverCmd::setFieldSolverCmdType",
150 "The attribute \"TYPE\" isn't set for \"FIELDSOLVER\"!");
161 os <<
"* ************* F I E L D S O L V E R ********************************************** "
165 <<
"* RANKS " << ippl::Comm->size() <<
'\n'
173 os <<
"* XDIM parallel " << endl;
175 os <<
"* XDIM serial " << endl;
179 os <<
"* YDIM parallel " << endl;
181 os <<
"* YDIM serial " << endl;
185 os <<
"* ZDIM parallel " << endl;
187 os <<
"* ZDIM serial " << endl;
190 os <<
"* ********************************************************************************** "
Representation objects and parsers for attribute expressions.
Attribute makeBool(const std::string &name, const std::string &help)
Make logical attribute.
double getReal(const Attribute &attr)
Return real value.
Attribute makePredefinedString(const std::string &name, const std::string &help, const std::initializer_list< std::string > &predefinedStrings)
Make predefined string attribute.
Attribute makeReal(const std::string &name, const std::string &help)
Make real attribute.
bool getBool(const Attribute &attr)
Return logical value.
void setReal(Attribute &attr, double val)
Set real value.
std::string getString(const Attribute &attr)
Get string value.
Definition(int size, const char *name, const char *help)
Constructor for exemplars.
const std::string & getOpalName() const
Return object name.
std::vector< Attribute > itsAttr
The object attributes.
Object * find(const std::string &name)
Find entry.
static OpalData * getInstance()
virtual void execute()
Execute (init) the field solver data.
virtual FieldSolverCmd * clone(const std::string &name)
Make clone.
FieldSolverCmdType fsType_m
static FieldSolverCmd * find(const std::string &name)
Find named FieldSolverCmd.
Inform & printInfo(Inform &os) const
FieldSolverCmd()
Exemplar constructor.
double getNX() const
Return meshsize.
virtual ~FieldSolverCmd()
double getNY() const
Return meshsize.
double getNZ() const
Return meshsize.
virtual void update()
Update the field solver data.
double getBoxIncr() const
void setFieldSolverCmdType()
The base class for all OPAL exceptions.