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