2#include "addToRunTimeSelectionTable.H"
10Foam::IntegralFilter::IntegralFilter(
const dictionary& dict)
15 Info <<
"Is IntegralFilter" << endl;
19 const List<point>& convPoints,
const fvMesh&
mesh)
const
21 List<scalarList> weights(cells.size());
23 for (label
i = 0;
i < cells.size();
i++)
25 scalarList weightsi(cells[
i].size());
28 for (label j = 0; j < cells[
i].size(); j++)
30 scalar factori =
mesh.V()[cells[
i][j]] * mag(convPoints[
i] -
31 mesh.C()[cells[
i][j]]);
32 weightsi[j] = factori;
38 weights[
i] = weightsi / factor;
virtual List< scalarList > apply(const List< labelList > &cells, const List< point > &convPoints, const fvMesh &mesh) const
addToRunTimeSelectionTable(Filter, IntegralFilter, dictionary)
defineTypeNameAndDebug(Filter, 0)