https://mooseframework.inl.gov
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 {
25 public:
27 
29  const std::vector<Point> & points);
30 
32  void execute() override;
33 
34 protected:
35  void finalizeValues() override;
36 
37 private:
38  int getFESpaceContinuityType() const override;
39 
41  const mfem::ParComplexGridFunction & _var;
43  mfem::Vector _real_interp_vals;
45  mfem::Vector _imag_interp_vals;
47  std::vector<std::reference_wrapper<VectorPostprocessorValue>> _declared_real_vals;
49  std::vector<std::reference_wrapper<VectorPostprocessorValue>> _declared_imag_vals;
50 };
51 
52 #endif // MOOSE_MFEM_ENABLED
mfem::Vector _imag_interp_vals
Values interpolated from the imaginary part of the grid function.
MFEMComplexVariableValueSamplerBase(const InputParameters &parameters, const std::vector< Point > &points)
std::vector< std::reference_wrapper< VectorPostprocessorValue > > _declared_imag_vals
VectorPostprocessor output columns for the imaginary components.
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...
MFEM VectorPostprocessor base class for sampling a complex-valued variable at a set of points...
std::vector< std::reference_wrapper< VectorPostprocessorValue > > _declared_real_vals
VectorPostprocessor output columns for the real components.
Base class for sampling real or complex MFEM variables at points.
void execute() override
Interpolate the real and imaginary parts of the complex variable.
const mfem::ParComplexGridFunction & _var
Complex grid function being sampled.
int getFESpaceContinuityType() const override
Return the continuity type of the sampled variable&#39;s finite element collection.
mfem::Vector _real_interp_vals
Values interpolated from the real part of the grid function.
void finalizeValues() override
Copies interpolated values into the subclass VPP vectors.