NESSi  v1.0.2
The NonEquilibrium Systems Simulation Library

◆ set_norm()

void cntr::smooth_box::set_norm ( void  )
inline

Definition at line 395 of file cntr_equilibrium_impl.hpp.

References fourier::adft_func::dft(), lo_, N_, and fourier::adft_func::sample().

Referenced by operator()().

395  {
396  typedef std::complex<double> cplx;
397  cplx res, err;
398  N_ = 1.0;
399  fourier::adft_func adft;
400  adft.sample(0.0, lo_, hi_, *this, 20, 100);
401  adft.dft(0.0, res, err);
402  N_ = res.real();
403  }
Class adft_func contains functions for computing accurate Fourier transforms by adaptive splitting o...
Definition: fourier.hpp:42
double lo_
Internal value determining the higher edge of the Fourier transform region
std::complex< double > cplx
Definition: fourier.cpp:11
double N_
Smoothness parameter of the box
void sample(double w, double a, double b, function &fz, int n, int limit)
Fourier samples the given function to determine the individual intervals.
Definition: fourier.hpp:366
void dft(double w, cplx &result, cplx &err)
Computes the cubically corrected DFT.
Definition: fourier.hpp:317
+ Here is the call graph for this function:
+ Here is the caller graph for this function: