Line data Source code
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 : 13 : registerMooseObject("SubChannelApp", SCMSolutionTransfer); 14 : registerMooseObjectRenamed("SubChannelApp", 15 : SolutionTransfer, 16 : "06/30/2025 24:00", 17 : SCMSolutionTransfer); 18 : 19 : InputParameters 20 164 : SCMSolutionTransfer::validParams() 21 : { 22 164 : InputParameters params = SCMSolutionTransferBase::validParams(); 23 164 : params.addClassDescription( 24 : "Transfers subchannel solution from computational mesh onto visualization mesh"); 25 164 : return params; 26 0 : } 27 : 28 82 : SCMSolutionTransfer::SCMSolutionTransfer(const InputParameters & parameters) 29 82 : : SCMSolutionTransferBase(parameters) 30 : { 31 82 : } 32 : 33 : Node * 34 1794953 : SCMSolutionTransfer::getFromNode(const SubChannelMesh & from_mesh, const Point & src_node) 35 : { 36 1794953 : unsigned int sch_idx = from_mesh.channelIndex(src_node); 37 1794953 : unsigned iz = from_mesh.getZIndex(src_node); 38 1794953 : return from_mesh.getChannelNode(sch_idx, iz); 39 : }