#include <EvaluateGridFunction.h>
Public Member Functions | |
bool | allComponentsRequired (const std::vector< Value * > &args, const std::vector< ActionWithVector * > &actions) |
void | applyForce (const ActionWithArguments *action, const std::vector< double > &args, const double &force, std::vector< double > &forcesToApply) const |
This is used to apply forces in interpolate. More... | |
void | calc (const ActionWithArguments *action, const std::vector< double > &args, std::vector< double > &vals, Matrix< double > &derivatives) const override |
virtual bool | derivativesImplemented () |
Override this function if you have not implemented the derivatives. More... | |
virtual bool | doWithTasks () const |
unsigned | getArgStart () const override |
virtual std::vector< Value * > | getArgumentsToCheck (const std::vector< Value * > &args) |
virtual std::vector< std::string > | getComponentsPerLabel () const |
virtual bool | getDerivativeZeroIfValueIsZero () const |
virtual std::string | getGraphInfo (const std::string &lab) const |
const GridCoordinatesObject & | getGridObject () const |
This gets the grid object. More... | |
const std::vector< double > & | getGridSpacing () const |
Get the grid spacing. More... | |
std::vector< std::string > | getMax () const |
Get the vector containing the maximum value of the grid in each dimension. More... | |
std::vector< std::string > | getMin () const |
Get the vector containing the minimum value of the grid in each dimension. More... | |
std::vector< unsigned > | getNbin () const |
Get the number of grid points in each direction. More... | |
std::vector< bool > | getPbc () const |
Get the periodicity of the grid. More... | |
void | read (ActionWithArguments *action) override |
void | registerKeywords (Keywords &keys) override |
This is used to setup the input gridobject's bounds with the grid data from values. More... | |
virtual void | setPeriodicityForOutputs (ActionWithValue *action) |
virtual void | setPrefactor (ActionWithArguments *action, const double pref) |
void | setup (ActionWithValue *action) override |
virtual bool | zeroRank () const |
Protected Member Functions | |
template<class T > | |
void | parse (Action *action, const std::string &key, T &t) |
Parse a keyword from the input as a value. More... | |
void | parseFlag (Action *action, const std::string &key, bool &t) |
Parse a keyword from the input as a flag. More... | |
template<class T > | |
void | parseVector (Action *action, const std::string &key, std::vector< T > &t) |
Parse a keyword from the input as a vector. More... | |
Protected Attributes | |
bool | noderiv = false |
Are we using derivatives. More... | |
Private Types | |
enum | { spline, linear, floor, ceiling } |
How are we doing interpolation. More... | |
Private Attributes | |
GridCoordinatesObject | gridobject |
Holds the information on the grid. More... | |
enum PLMD::gridtools::EvaluateGridFunction:: { ... } | interpolation_type |
How are we doing interpolation. More... | |
bool | set_zero_outside_range |
How should we set the value of this function outside the range. More... | |
std::unique_ptr< Interpolator > | spline_interpolator |
This does the interpolating. More... | |
|
inlineinherited |
void PLMD::gridtools::EvaluateGridFunction::applyForce | ( | const ActionWithArguments * | action, |
const std::vector< double > & | args, | ||
const double & | force, | ||
std::vector< double > & | forcesToApply | ||
) | const |
This is used to apply forces in interpolate.
|
overridevirtual |
Implements PLMD::function::FunctionTemplateBase.
|
inlinevirtualinherited |
Override this function if you have not implemented the derivatives.
Reimplemented in PLMD::function::Bessel.
|
inlinevirtualinherited |
Reimplemented in PLMD::function::Highest, PLMD::function::Sort, and PLMD::function::Moments.
|
inlineoverridevirtual |
Reimplemented from PLMD::function::FunctionTemplateBase.
|
inlinevirtualinherited |
Reimplemented in PLMD::function::Custom.
|
inlinevirtualinherited |
Reimplemented in PLMD::function::Sort, PLMD::function::Moments, and PLMD::symfunc::SphericalHarmonic.
|
inlinevirtualinherited |
Reimplemented in PLMD::function::Custom, PLMD::function::LessThan, PLMD::function::MoreThan, and PLMD::function::Between.
|
inlinevirtualinherited |
Reimplemented in PLMD::function::Custom.
|
inline |
This gets the grid object.
|
inline |
Get the grid spacing.
|
inline |
Get the vector containing the maximum value of the grid in each dimension.
|
inline |
Get the vector containing the minimum value of the grid in each dimension.
|
inline |
Get the number of grid points in each direction.
std::vector< bool > PLMD::gridtools::EvaluateGridFunction::getPbc | ( | ) | const |
Get the periodicity of the grid.
|
protectedinherited |
Parse a keyword from the input as a value.
|
inlineprotectedinherited |
Parse a keyword from the input as a flag.
|
protectedinherited |
Parse a keyword from the input as a vector.
|
overridevirtual |
Implements PLMD::function::FunctionTemplateBase.
|
overridevirtual |
This is used to setup the input gridobject's bounds with the grid data from values.
Implements PLMD::function::FunctionTemplateBase.
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Reimplemented in PLMD::function::Sum.
|
overridevirtual |
Reimplemented from PLMD::function::FunctionTemplateBase.
|
inlinevirtualinherited |
Reimplemented in PLMD::function::Highest, PLMD::function::Sort, PLMD::function::Moments, and PLMD::function::Sum.
|
private |
Holds the information on the grid.
enum { ... } PLMD::gridtools::EvaluateGridFunction::interpolation_type |
How are we doing interpolation.
|
protectedinherited |
Are we using derivatives.
|
private |
How should we set the value of this function outside the range.
|
private |
This does the interpolating.
Hosted by GitHub | 1.8.17 |