ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
Loading...
Searching...
No Matches
Observables::ProfileObservable Class Reference

Cartesian profile observable. More...

#include <ProfileObservable.hpp>

+ Inheritance diagram for Observables::ProfileObservable:
+ Collaboration diagram for Observables::ProfileObservable:

Public Member Functions

 ProfileObservable (int n_x_bins, int n_y_bins, int n_z_bins, double min_x, double max_x, double min_y, double max_y, double min_z, double max_z)
 
std::vector< std::size_t > shape () const override
 
auto n_bins () const
 
auto limits () const
 
std::array< std::vector< double >, 3 > edges () const
 Calculate the bin edges for each dimension.
 
- Public Member Functions inherited from Observables::Observable
 Observable ()=default
 
virtual ~Observable ()=default
 
virtual std::vector< double > operator() (boost::mpi::communicator const &comm) const =0
 Calculate the set of values measured by the observable.
 
std::size_t n_values () const
 Size of the flat array returned by the observable.
 

Detailed Description

Cartesian profile observable.

Definition at line 36 of file core/observables/ProfileObservable.hpp.

Constructor & Destructor Documentation

◆ ProfileObservable()

Observables::ProfileObservable::ProfileObservable ( int  n_x_bins,
int  n_y_bins,
int  n_z_bins,
double  min_x,
double  max_x,
double  min_y,
double  max_y,
double  min_z,
double  max_z 
)
inline

Definition at line 44 of file core/observables/ProfileObservable.hpp.

Member Function Documentation

◆ edges()

std::array< std::vector< double >, 3 > Observables::ProfileObservable::edges ( ) const
inline

Calculate the bin edges for each dimension.

Definition at line 75 of file core/observables/ProfileObservable.hpp.

References Utils::make_lin_space().

◆ limits()

◆ n_bins()

◆ shape()

std::vector< std::size_t > Observables::ProfileObservable::shape ( ) const
inlineoverridevirtual

Implements Observables::Observable.

Definition at line 66 of file core/observables/ProfileObservable.hpp.


The documentation for this class was generated from the following file: