https://mooseframework.inl.gov
NearestPositionsDivision.h
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 #pragma once
11 
12 #include "MeshDivision.h"
13 
14 class Positions;
15 
21 {
22 public:
24 
26 
27  virtual void initialize() override;
28  virtual unsigned int divisionIndex(const Point & pt) const override;
29  virtual unsigned int divisionIndex(const Elem & elem) const override;
30 
31 private:
32  // Positions object to use to create the nearest-neighbor division/partition
34 };
virtual void initialize() override
Set up any data members that would be necessary to obtain the division indices.
NearestPositionsDivision(const InputParameters &parameters)
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:127
Positions objects are under the hood Reporters.
Definition: Positions.h:20
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
Divides the mesh based on a nearest-neighbor algorithm applied to the positions from a Positions obje...
Base class for MeshDivision objects.
Definition: MeshDivision.h:35
const Positions *const _nearest_positions_obj
virtual unsigned int divisionIndex(const Point &pt) const override
Return the index of the division to which the point belongs.