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