ModelTableCart2DIntegr

class ModelTableCart2DIntegr : public feasst::ModelOneBody

A tabular potential based on cartesian coordinates. Assumes symmetry along the x, y planes and that the Domain has no tilt. Integration of material does not take periodicity into account. E.g., the shapes extend forever and are not periodic in the domain.

Public Functions

void compute_table(Shape *shape, Domain *domain, Random *random, argtype integration_args, const int site_type = 0)

Generate the table by integration of the shape of the confinement over the entire and domain.

param integration_args:

See Shape for documentation of integration_args.

void compute_table_omp(Shape *shape, Domain *domain, Random *random, argtype integration_args, const int site_type = 0, const int node = 0, const int num_node = 1)

Same as above, but parallelize the task with OMP.

param node:

See Thread for documentation of these two arguments.

double energy(const Position &wrapped_site, const Site &site, const Configuration &config, const ModelParams &model_params)

Return the energy given the wrapped coordinates, site, config and params.

void serialize(std::ostream &ostr) const

Output a serialized version of the existing model.