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 : #include "libmesh/elem.h" 12 : 13 : using libMesh::Elem; 14 : 15 : /** 16 : * Abstract base class for user objects that provide an index for a given element that is 17 : * independent of the block id, so that behavior can be different on subsets of element blocks. 18 : * This is used to apply independent generalized plane constraints to subsets of element blocks. 19 : */ 20 6 : class SubblockIndexProvider 21 : { 22 : public: 23 : virtual ~SubblockIndexProvider(){}; 24 : /** 25 : * The index of subblock this element is on. 26 : */ 27 : virtual unsigned int getSubblockIndex(const Elem & /* elem */) const = 0; 28 : /** 29 : * The max index of subblock. 30 : */ 31 : virtual unsigned int getMaxSubblockIndex() const = 0; 32 : };