https://mooseframework.inl.gov
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"
15 #include "MFEMBlockRestrictable.h"
16 
23 {
24 public:
26 
28 
32  virtual void execute() override;
33 
37  virtual PostprocessorValue getValue() const override final;
38 
39 private:
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
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Postprocessor for MFEM results.
Real PostprocessorValue
various MOOSE typedefs
Definition: MooseTypes.h:230
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.
Compute the time average of the inner product between two complex MFEM vector FE variables, scaled by an optional scalar coefficient.
Base class for construction of an object that is restricted to a subset of subdomains of the problem ...