Functions
MeanValue.hpp File Reference

Defines function mean_value and mean_value_on_boundary. More...

#include <cstddef>
#include <utility>
#include "Domain/Side.hpp"
#include "NumericalAlgorithms/LinearOperators/DefiniteIntegral.hpp"
#include "Utilities/ConstantExpressions.hpp"
#include "Utilities/Gsl.hpp"

Go to the source code of this file.

Functions

template<size_t Dim>
double mean_value (const DataVector &f, const Mesh< Dim > &mesh) noexcept
 Compute the mean value of a grid-function over a manifold. \(mean value = \int f dV / \int dV\). More...
 
template<size_t Dim>
double mean_value_on_boundary (const DataVector &f, const Mesh< Dim > &mesh, size_t d, Side side) noexcept
 
template<size_t Dim>
double mean_value_on_boundary (gsl::not_null< DataVector *> boundary_buffer, const DataVector &f, const Mesh< Dim > &mesh, size_t d, Side side) noexcept
 
double mean_value_on_boundary (gsl::not_null< DataVector *>, const DataVector &f, const Mesh< 1 > &mesh, size_t d, Side side) noexcept
 
template<size_t Dim>
double mean_value_on_boundary (gsl::not_null< DataVector *> boundary_buffer, gsl::span< std::pair< size_t, size_t >> volume_and_slice_indices, const DataVector &f, const Mesh< Dim > &mesh, size_t d, Side) noexcept
 
double mean_value_on_boundary (gsl::not_null< DataVector *>, gsl::span< std::pair< size_t, size_t >>, const DataVector &f, const Mesh< 1 > &mesh, size_t d, Side side) noexcept
 

Detailed Description

Defines function mean_value and mean_value_on_boundary.