DensityProfile

class DensityProfile : public feasst::Analyze

Density profile

Public Functions

std::string header(const Criteria &criteria, const System &system, const TrialFactory &trials) const

Return the header for writing.

void initialize(Criteria *criteria, System *system, TrialFactory *trial_factory)

Initialize and precompute before trials.

void update(const Criteria &criteria, const System &system, const TrialFactory &trial_factory)

Perform update action.

std::vector<std::vector<std::vector<double>>> profile() const

Return the profile for a given type. The first index is the bin. The second index is the type. The third index is 0 - r, 1 - value.

std::string write(const Criteria &criteria, const System &system, const TrialFactory &trial_factory)

Perform write action.

Arguments

  • dimension: profile runs along this dimension (default: 0).

  • dr: profile bin size (default: 0.1).

  • center: specify the center of a single bin (default: 0.).