https://mooseframework.inl.gov
InterWrapperSolutionTransferBase.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 
14 class InterWrapperMesh;
15 
20 {
21 public:
23 
24  virtual void execute() override;
25  void initialSetup() override;
26 
27 protected:
31  void transferToMultiApps();
32 
38  void transferVarsToApp(unsigned int app_idx);
39 
40  void transferNodalVars(unsigned int app_idx);
41 
49  virtual Node * getFromNode(const InterWrapperMesh & from_mesh, const Point & src_node) = 0;
50 
52  const std::vector<AuxVariableName> & _var_names;
53 
54 public:
56 };
Base class for inter-wrapper meshes.
virtual Node * getFromNode(const InterWrapperMesh &from_mesh, const Point &src_node)=0
Find node on computational mesh given the visualization point.
Base class for transfering solutions from computational mesh onto visualization mesh.
void transferVarsToApp(unsigned int app_idx)
Transfer variables into the sub-app.
const std::vector< AuxVariableName > & _var_names
Variable names to transfer.
InterWrapperSolutionTransferBase(const InputParameters &parameters)
void transferToMultiApps()
Do the transfer into the sub-app.
const InputParameters & parameters() const