https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMScalarCoefficientPointValueSampler.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 "MFEMSamplerBase.h"
15
20{
21public:
23
25
27 void initialSetup() override;
28
30 void execute() override;
31
32protected:
33 void finalizeValues() override;
34
35private:
37 mfem::Coefficient * _coefficient;
39 mfem::Vector _interp_vals;
42};
43
44#endif // MOOSE_MFEM_ENABLED
std::vector< Real > VectorPostprocessorValue
Definition MooseTypes.h:231
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Abstract base class for sampling MFEM quantities at points.
Samples a real scalar MFEM coefficient at specified points.
mfem::Vector _interp_vals
Values evaluated on owning ranks and returned to the querying ranks.
mfem::Coefficient * _coefficient
Scalar coefficient being sampled, resolved after all coefficient-declaring objects exist.
VectorPostprocessorValue & _declared_vals
VectorPostprocessor output column for the coefficient.
void execute() override
Evaluates the coefficient in each point's owning element.
void finalizeValues() override
Copies interpolated values into the subclass VPP vectors.
void initialSetup() override
Checks point locations and warns when GSLIB selects an element at a boundary.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131