Line data Source code
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 : 16 : /** 17 : * Class for output information saved in MFEM ParaViewDataCollections 18 : */ 19 : class MFEMParaViewDataCollection : public MFEMDataCollection 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : MFEMParaViewDataCollection(const InputParameters & parameters); 25 : 26 2223 : virtual mfem::DataCollection & getDataCollection() override { return _pv_dc; } 27 : 28 : /// Register user-specified scalar coefficients to the DataCollection 29 : void 30 : registerScalarCoefficients(std::vector<MFEMScalarCoefficientName> & scalar_coefficient_names); 31 : /// Register user-specified vector coefficients to the DataCollection 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