https://mooseframework.inl.gov
MFEMParaViewDataCollection.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 "MFEMDataCollection.h"
15 
20 {
21 public:
23 
25 
26  virtual mfem::DataCollection & getDataCollection() override { return _pv_dc; }
27 
29  void
30  registerScalarCoefficients(std::vector<MFEMScalarCoefficientName> & scalar_coefficient_names);
32  void
33  registerVectorCoefficients(std::vector<MFEMVectorCoefficientName> & vector_coefficient_names);
34 
35 protected:
36  mfem::ParaViewDataCollection _pv_dc;
37  std::vector<MFEMScalarCoefficientName> _scalar_coefficient_names;
38  std::vector<MFEMVectorCoefficientName> _vector_coefficient_names;
39  const bool _high_order_output;
40  const unsigned int _refinements;
41  const mfem::VTKFormat _vtk_format;
42 };
43 
44 #endif
void registerScalarCoefficients(std::vector< MFEMScalarCoefficientName > &scalar_coefficient_names)
Register user-specified scalar coefficients to the DataCollection.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
Class for output information saved in MFEM DataCollections.
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
mfem::ParaViewDataCollection _pv_dc
std::vector< MFEMVectorCoefficientName > _vector_coefficient_names
void registerVectorCoefficients(std::vector< MFEMVectorCoefficientName > &vector_coefficient_names)
Register user-specified vector coefficients to the DataCollection.
std::vector< MFEMScalarCoefficientName > _scalar_coefficient_names
virtual mfem::DataCollection & getDataCollection() override
Class for output information saved in MFEM ParaViewDataCollections.
MFEMParaViewDataCollection(const InputParameters &parameters)