https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
22public:
24
26 const std::vector<Point> & points);
27
29 void execute() override;
30
31protected:
32 void finalizeValues() override;
33
34private:
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
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Base class for sampling real or complex MFEM variables at points.
MFEM VectorPostprocessor base class for sampling a real-valued variable at a set of points.
int getFESpaceContinuityType() const override
Return the continuity type of the sampled variable's finite element collection.
void execute() override
Interpolate the real variable at all query points.
mfem::Vector _interp_vals
Values interpolated from the grid function.
const mfem::GridFunction & _var
Grid function being sampled.
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.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131