https://mooseframework.inl.gov
MFEMDataCollection.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 "FileOutput.h"
15 #include "MFEMProblem.h"
16 
21 {
22 public:
25  virtual mfem::DataCollection & getDataCollection() = 0;
26 
27 protected:
29  void registerFields();
31  void output() override;
33  void setFileBaseInternal(const std::string & file_base) override;
38  mfem::ParMesh & _pmesh;
40  const std::vector<VariableName> & _shown;
42  const std::vector<VariableName> & _hidden;
43 };
44 
45 #endif
const std::vector< VariableName > & _hidden
List of variables to hide.
Base problem data struct.
MFEMProblemData & _problem_data
Reference to the MFEMProblemData struct storing the output variables.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
Class for output information saved in MFEM DataCollections.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const std::vector< VariableName > & _shown
List of variables to show.
mfem::ParMesh & _pmesh
Mesh set of output variables are defined on.
void registerFields()
Register fields (GridFunctions) to be saved in the DataCollection.
MFEMDataCollection(const InputParameters &parameters)
static InputParameters validParams()
void output() override
Write out data.
An outputter with filename support.
Definition: FileOutput.h:20
virtual mfem::DataCollection & getDataCollection()=0
void setFileBaseInternal(const std::string &file_base) override
Update the DataCollection path when the internal file base path is set.