https://mooseframework.inl.gov
SCMSolutionTransfer.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 SubChannelMesh;
15 class FEProblemBase;
16 
21 {
22 public:
24 
25  virtual void execute() override;
26  void initialSetup() override;
27 
28 protected:
29  void transferToMultiApps();
30  void transferVarsToApp(unsigned int app_idx);
31  void transferNodalVars(unsigned int app_idx);
32  void validateVariableLocations(const SubChannelMesh & from_mesh, FEProblemBase & to_problem);
33  Node * getFromNode(const SubChannelMesh & from_mesh, const Point & src_node);
34 
36  const std::vector<AuxVariableName> & _var_names;
37 
39  const bool _pin_transfer;
40 
41 public:
43 };
virtual void execute() override
void transferVarsToApp(unsigned int app_idx)
const InputParameters & parameters() const
static InputParameters validParams()
const std::vector< AuxVariableName > & _var_names
Variable names to transfer.
void initialSetup() override
void validateVariableLocations(const SubChannelMesh &from_mesh, FEProblemBase &to_problem)
SCMSolutionTransfer(const InputParameters &parameters)
Transfers subchannel and pin solutions from a SubChannel mesh onto a visualization mesh...
Node * getFromNode(const SubChannelMesh &from_mesh, const Point &src_node)
void transferNodalVars(unsigned int app_idx)
const bool _pin_transfer
Whether pin fields should be transferred instead of subchannel fields.
Base class for subchannel meshes.