https://mooseframework.inl.gov
MFEMVariableValueSamplerBase.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 
21 {
22 public:
24 
26  const std::vector<Point> & points);
27 
29  void execute() override;
30 
31 protected:
32  void finalizeValues() override;
33 
34 private:
35  int getFESpaceContinuityType() const override;
36 
38  const mfem::GridFunction & _var;
40  mfem::Vector _interp_vals;
42  std::vector<std::reference_wrapper<VectorPostprocessorValue>> _declared_vals;
43 };
44 
45 #endif // MOOSE_MFEM_ENABLED
void execute() override
Interpolate the real variable at all query points.
const mfem::GridFunction & _var
Grid function being sampled.
int getFESpaceContinuityType() const override
Return the continuity type of the sampled variable&#39;s finite element collection.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
MFEM VectorPostprocessor base class for sampling a real-valued variable at a set of points...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
MFEMVariableValueSamplerBase(const InputParameters &parameters, const std::vector< Point > &points)
Base class for sampling real or complex MFEM variables at points.
std::vector< std::reference_wrapper< VectorPostprocessorValue > > _declared_vals
VectorPostprocessor output columns for the variable components.
void finalizeValues() override
Copies interpolated values into the subclass VPP vectors.
mfem::Vector _interp_vals
Values interpolated from the grid function.