https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MultiAppFXTransfer.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#pragma once
11
12#include "MultiAppTransfer.h"
13
15
20{
21public:
23
25
26 // Overrides from MultiAppTransfer
27 virtual void execute() override;
28 virtual void initialSetup() override;
29
30protected:
32 const std::string _this_app_object_name;
33
35 const std::string _multi_app_object_name;
36
37private:
42 const std::string & object_name,
43 THREAD_ID thread);
44
49 const std::string & object_name,
50 THREAD_ID thread);
51
57 FEProblemBase & base, const std::string & object_name, THREAD_ID thread);
58
59protected:
65 const std::string & object_name,
66 const std::string & app_name);
67
70
73};
unsigned int THREAD_ID
const InputParameters & parameters() const
Transfers mutable coefficient arrays between supported object types.
virtual GetProblemObject scanProblemBaseForObject(FEProblemBase &base, const std::string &object_name, const std::string &app_name)
Searches an FEProblemBase for a MutableCoefficientsInterface-based object and returns a function poin...
MutableCoefficientsInterface & getMutableCoefficientsFunction(FEProblemBase &base, const std::string &object_name, THREAD_ID thread)
Gets a MutableCoefficientsInterface-based Function, intented for use via function pointer.
const std::string _multi_app_object_name
Name of the MutableCoefficientsInterface-derived object in the MultiApp.
GetProblemObject getSubAppObject
Function pointer for grabbing the SubApp object.
MutableCoefficientsInterface & getMutableCoefficientsUserOject(FEProblemBase &base, const std::string &object_name, THREAD_ID thread)
Gets a MutableCoefficientsInterface-based UserObject, intended for use via function pointer.
virtual void initialSetup() override
virtual void execute() override
const std::string _this_app_object_name
Name of the MutableCoefficientsInterface-derived object in the creating app.
static InputParameters validParams()
MutableCoefficientsInterface &(MultiAppFXTransfer::* GetProblemObject)(FEProblemBase &base, const std::string &object_name, THREAD_ID thread)
Function pointer typedef for functions used to find, convert, and return the appropriate MutableCoeff...
GetProblemObject getMultiAppObject
Function pointer for grabbing the MultiApp object.
This class is designed to provide a uniform interface for any class that uses an array of coefficient...