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 "SideSetsFromNodeSetsGenerator.h" 11 : 12 : #include "CastUniquePointer.h" 13 : 14 : registerMooseObject("MooseApp", SideSetsFromNodeSetsGenerator); 15 : 16 : InputParameters 17 14285 : SideSetsFromNodeSetsGenerator::validParams() 18 : { 19 14285 : InputParameters params = MeshGenerator::validParams(); 20 : 21 14285 : params.addClassDescription("Mesh generator which constructs side sets from node sets"); 22 14285 : params.addRequiredParam<MeshGeneratorName>("input", 23 : "Input mesh the operation will be applied to"); 24 14285 : return params; 25 0 : } 26 : 27 10 : SideSetsFromNodeSetsGenerator::SideSetsFromNodeSetsGenerator(const InputParameters & parameters) 28 10 : : MeshGenerator(parameters), _input(getMesh("input")) 29 : { 30 10 : } 31 : 32 : std::unique_ptr<MeshBase> 33 10 : SideSetsFromNodeSetsGenerator::generate() 34 : { 35 10 : _input->get_boundary_info().build_side_list_from_node_list(); 36 : 37 10 : return dynamic_pointer_cast<MeshBase>(_input); 38 : }