https://mooseframework.inl.gov
SCMSolutionTransfer.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 
10 #include "SCMSolutionTransfer.h"
11 #include "SubChannelMesh.h"
12 
14 registerMooseObjectRenamed("SubChannelApp",
15  SolutionTransfer,
16  "06/30/2025 24:00",
18 
21 {
23  params.addClassDescription(
24  "Transfers subchannel solution from computational mesh onto visualization mesh");
25  return params;
26 }
27 
29  : SCMSolutionTransferBase(parameters)
30 {
31 }
32 
33 Node *
34 SCMSolutionTransfer::getFromNode(const SubChannelMesh & from_mesh, const Point & src_node)
35 {
36  unsigned int sch_idx = from_mesh.channelIndex(src_node);
37  unsigned iz = from_mesh.getZIndex(src_node);
38  return from_mesh.getChannelNode(sch_idx, iz);
39 }
static InputParameters validParams()
registerMooseObjectRenamed("SubChannelApp", SolutionTransfer, "06/30/2025 24:00", SCMSolutionTransfer)
virtual Node * getChannelNode(unsigned int i_chan, unsigned iz) const =0
Get the subchannel mesh node for a given channel index and elevation index.
SCMSolutionTransfer(const InputParameters &parameters)
Transfers subchannel solution from computational mesh onto visualization mesh.
Base class for transfering solutions from computational mesh onto visualization mesh.
Node * getFromNode(const SubChannelMesh &from_mesh, const Point &src_node) override
Find node on computational mesh given the visualization point.
static InputParameters validParams()
virtual unsigned int channelIndex(const Point &point) const =0
registerMooseObject("SubChannelApp", SCMSolutionTransfer)
void addClassDescription(const std::string &doc_string)
Base class for subchannel meshes.
virtual unsigned int getZIndex(const Point &point) const
Get axial index of point.