https://mooseframework.inl.gov
InterWrapperSolutionTransfer.C
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 
11 #include "InterWrapperMesh.h"
12 
14 
17 {
19  params.addClassDescription(
20  "Transfers Inter-Wrapper solution from computational mesh onto visualization mesh");
21  return params;
22 }
23 
26 {
27 }
28 
29 Node *
31  const Point & src_node)
32 {
33  unsigned int sch_idx = from_mesh.channelIndex(src_node);
34  unsigned iz = from_mesh.getZIndex(src_node);
35  return from_mesh.getChannelNode(sch_idx, iz);
36 }
registerMooseObject("SubChannelApp", InterWrapperSolutionTransfer)
Base class for inter-wrapper meshes.
Base class for transfering solutions from computational mesh onto visualization mesh.
virtual Node * getFromNode(const InterWrapperMesh &from_mesh, const Point &src_node)
Find node on computational mesh given the visualization point.
Transfers inter-wrapper solution from computational mesh onto visualization mesh. ...
virtual unsigned int getZIndex(const Point &point) const
Get axial index of point.
virtual Node * getChannelNode(unsigned int i_chan, unsigned iz) const =0
Get the inter-wrapper mesh node for a given channel index and elevation index.
void addClassDescription(const std::string &doc_string)
virtual unsigned int channelIndex(const Point &point) const =0
InterWrapperSolutionTransfer(const InputParameters &parameters)