https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMComplexVariableValueSamplerBase.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
15
24{
25public:
27
29 const std::vector<Point> & points);
30
32 void execute() override;
33
35 void finalize() override;
36
37private:
38 int getFESpaceContinuityType(size_t i_var) const override;
39
41 std::vector<std::reference_wrapper<const mfem::ParComplexGridFunction>> _vars;
43 std::vector<mfem::Vector> _real_interp_vals;
45 std::vector<mfem::Vector> _imag_interp_vals;
47 std::vector<std::vector<std::reference_wrapper<VectorPostprocessorValue>>> _declared_real_vals;
49 std::vector<std::vector<std::reference_wrapper<VectorPostprocessorValue>>> _declared_imag_vals;
50};
51
52#endif // MOOSE_MFEM_ENABLED
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
MFEM VectorPostprocessor base class for sampling a complex-valued variable at a set of points.
std::vector< mfem::Vector > _real_interp_vals
Values interpolated from the real part of the grid function.
std::vector< std::reference_wrapper< const mfem::ParComplexGridFunction > > _vars
Complex grid function being sampled.
std::vector< std::vector< std::reference_wrapper< VectorPostprocessorValue > > > _declared_real_vals
VectorPostprocessor output columns for the real components.
void execute() override
Interpolate the real and imaginary parts of the complex variable.
std::vector< std::vector< std::reference_wrapper< VectorPostprocessorValue > > > _declared_imag_vals
VectorPostprocessor output columns for the imaginary components.
int getFESpaceContinuityType(size_t i_var) const override
Return the continuity type of the i-th sampled variable's finite element collection.
void finalize() override
Copies interpolated values into the VPP vectors.
std::vector< mfem::Vector > _imag_interp_vals
Values interpolated from the imaginary part of the grid function.
Base class for sampling real or complex MFEM variables at points.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131