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