Go to the documentation of this file.
18 #include "libmesh/meshfree_interpolation.h"
19 #include "libmesh/system.h"
30 "postprocessor",
"The name of the Postprocessors on the sub-app to transfer from/to.");
32 "The name of the VectorPostprocessor in "
33 "the MultiApp to transfer values "
36 "vector_name",
"Named vector quantity to transfer from/to in VectorPostprocessor.");
38 "VectorPostprocessor to Postprocessors located in "
40 " collects Postprocessor values from N sub-apps "
41 "into a VectorPostprocessor");
48 _sub_pp_name(getParam<PostprocessorName>(
"postprocessor")),
49 _master_vpp_name(getParam<VectorPostprocessorName>(
"vector_postprocessor")),
50 _vector_name(getParam<
std::string>(
"vector_name"))
53 paramError(
"direction",
"This transfer is only unidirectional");
65 " and number of sub-apps do not match: ",
70 for (
unsigned int i = 0; i <
_multi_app->numGlobalApps(); ++i)
84 " and number of sub-apps do not match: ",
93 for (
unsigned int i = 0; i <
_multi_app->numGlobalApps(); ++i)
104 _console <<
"Beginning VectorPostprocessorTransfer " <<
name() << std::endl;
111 _console <<
"Finished PostprocessorTransfer " <<
name() << std::endl;
const std::string & _vector_name
virtual void executeFromMultiapp()
MultiAppVectorPostprocessorTransfer(const InputParameters ¶meters)
registerMooseObject("MooseApp", MultiAppVectorPostprocessorTransfer)
std::shared_ptr< MultiApp > _multi_app
The MultiApp this Transfer is transferring data to or from.
void mooseError(Args &&... args) const
const VectorPostprocessorName & _master_vpp_name
defineLegacyParams(MultiAppVectorPostprocessorTransfer)
const PostprocessorName & _sub_pp_name
MooseEnum _current_direction
void paramError(const std::string ¶m, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.
unsigned int size() const
Return the number of active items in the MultiMooseEnum.
std::vector< Real > VectorPostprocessorValue
static InputParameters validParams()
Base class for all MultiAppTransfer objects.
static InputParameters validParams()
virtual void execute() override
Execute the transfer.
virtual void executeToMultiapp()
Copies the values of a VectorPostprocessor from the Master to postprocessors on each MultiApp or coll...
const MultiMooseEnum _directions
The directions this Transfer is to be executed on.
virtual const std::string & name() const
Get the name of the object.