https://mooseframework.inl.gov
MFEMSubMeshTransfer.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 "MFEMExecutedObject.h"
15 
21 {
22 public:
24 
26 
27  virtual std::optional<std::string> suppliedVariableName() const override;
28 
30  virtual void execute() override;
31 
32 private:
34  const VariableName & _source_var_name;
36  const mfem::ParGridFunction & _source_var;
38  const VariableName & _result_var_name;
40  mfem::ParGridFunction & _result_var;
41 };
42 
43 #endif
MFEMSubMeshTransfer(const InputParameters &parameters)
static InputParameters validParams()
Base class for MFEM objects that participate in execution ordering but are not UserObjects.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
const mfem::ParGridFunction & _source_var
Reference to source gridfunction.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VariableName & _source_var_name
Name of source MFEMVariable to transfer DoF data from.
Class to transfer MFEM variable data to or from a restricted copy of the variable defined on an a sub...
mfem::ParGridFunction & _result_var
Reference to result gridfunction.
virtual void execute() override
Executes the transfer.
const VariableName & _result_var_name
Name of MFEMVariable to store the transferred output in.
virtual std::optional< std::string > suppliedVariableName() const override
Return the variable name supplied by this object, or std::nullopt if none.