https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMComplexVectorPeriodAveragedPostprocessor.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#ifdef MOOSE_MFEM_ENABLED
11
12#pragma once
13
14#include "MFEMPostprocessor.h"
16
23{
24public:
26
28
32 virtual void execute() override;
33
37 virtual PostprocessorValue getValue() const override final;
38
39private:
41 mfem::real_t _integral;
42
44 mfem::L2_FECollection _l2_fec;
45 mfem::ParFiniteElementSpace _scalar_test_fespace;
46 mfem::ParGridFunction _scalar_var;
47 mfem::Coefficient & _scalar_coef;
48
50 mfem::VectorCoefficient & _primal_var_real_coef;
51 mfem::VectorCoefficient & _primal_var_imag_coef;
52 mfem::VectorCoefficient & _dual_var_real_coef;
53 mfem::VectorCoefficient & _dual_var_imag_coef;
54
55 // Inner products and their weighted sum
56 mfem::InnerProductCoefficient _real_inner_product_coef;
57 mfem::InnerProductCoefficient _imag_inner_product_coef;
58 mfem::SumCoefficient _sum_coef;
59 mfem::ParLinearForm _subdomain_integrator;
60};
61
62#endif
Real PostprocessorValue
various MOOSE typedefs
Definition MooseTypes.h:230
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Base class for construction of an object that is restricted to a subset of subdomains of the problem ...
Compute the time average of the inner product between two complex MFEM vector FE variables,...
virtual PostprocessorValue getValue() const override final
Return the last evaluated integral value.
mfem::VectorCoefficient & _primal_var_real_coef
Coefficients extracted from real and imaginary parts of complex variables.
Postprocessor for MFEM results.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131