-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathMFEMVectorBoundaryFluxIntegralPostprocessor.h
More file actions
50 lines (41 loc) · 1.34 KB
/
MFEMVectorBoundaryFluxIntegralPostprocessor.h
File metadata and controls
50 lines (41 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
//* This file is part of the MOOSE framework
//* https://mooseframework.inl.gov
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
#ifdef MOOSE_MFEM_ENABLED
#pragma once
#include "MFEMPostprocessor.h"
#include "MFEMBoundaryRestrictable.h"
/**
* Compute the integral of the flux of an MFEM vector variable across a boundary,
* scaled by an optional scalar coefficient.
*/
class MFEMVectorBoundaryFluxIntegralPostprocessor : public MFEMPostprocessor,
public MFEMBoundaryRestrictable
{
public:
static InputParameters validParams();
MFEMVectorBoundaryFluxIntegralPostprocessor(const InputParameters & parameters);
/**
* Evaluate integral.
*/
virtual void execute() override;
/**
* Return the last evaluated integral value.
*/
virtual PostprocessorValue getValue() const override final;
private:
mfem::real_t _integral;
mfem::ParGridFunction & _var;
mfem::Coefficient & _scalar_coef;
mfem::RT_FECollection _rt_fec;
mfem::ParFiniteElementSpace _rt_vector_fespace;
mfem::ParGridFunction _rt_var;
mfem::VectorGridFunctionCoefficient _var_coef;
mfem::ParLinearForm _boundary_integrator;
};
#endif