https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMVariableSamplerBase.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
16namespace Moose::MFEM
17{
18std::vector<Point>
19generateLinePoints(const Point & start_point, const Point & end_point, unsigned int num_points);
20}
21
30{
31public:
33
35 void initialSetup() override;
36
37protected:
38 MFEMVariableSamplerBase(const InputParameters & parameters, const std::vector<Point> & points);
39
41 const std::vector<VariableName> _var_names;
42
43private:
45 virtual int getFESpaceContinuityType(size_t i_var) const = 0;
46};
47
48#endif // MOOSE_MFEM_ENABLED
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Abstract base class for sampling MFEM quantities at points.
Base class for sampling real or complex MFEM variables at points.
virtual int getFESpaceContinuityType(size_t i_var) const =0
Return the continuity type of the i-th sampled variable's finite element collection.
static InputParameters validParams()
void initialSetup() override
Checks point locations and warns when sampled components may be discontinuous at boundaries.
const std::vector< VariableName > _var_names
Names of the variables being sampled.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
Utilities for converting between vector(s) of libMesh Points and MFEM Vector(s).
std::vector< Point > generateLinePoints(const Point &start_point, const Point &end_point, unsigned int num_points)