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 : #pragma once 11 : 12 : // Moose includes 13 : #include "Positions.h" 14 : #include "BlockRestrictable.h" 15 : #include "BoundaryRestrictable.h" 16 : 17 : /** 18 : * Positions from nodes of elements in the mesh 19 : */ 20 : class NodePositions : public Positions, BlockRestrictable, BoundaryRestrictable 21 : { 22 : public: 23 : static InputParameters validParams(); 24 : NodePositions(const InputParameters & parameters); 25 104 : virtual ~NodePositions() = default; 26 : 27 : virtual void initialize() override; 28 : 29 : // We need to override finalize to prune duplicate positions on distributed meshes. 30 : virtual void finalize() override; 31 : 32 : MooseMesh & _mesh; 33 : };