www.mooseframework.org
TestSubblockIndexProvider.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "SubblockIndexProvider.h"
13 
15 
16 template <>
18 
25 {
26 public:
27  static InputParameters validParams();
28 
29  TestSubblockIndexProvider(const InputParameters & params);
30 
31  virtual void initialize() override {};
32  virtual void execute() override {};
33  virtual void finalize() override {};
34 
38  virtual unsigned int getSubblockIndex(const Elem & /* elem */) const override;
39 
43  virtual unsigned int getMaxSubblockIndex() const override;
44 };
SubblockIndexProvider.h
TestSubblockIndexProvider::finalize
virtual void finalize() override
Definition: TestSubblockIndexProvider.h:33
TestSubblockIndexProvider::TestSubblockIndexProvider
TestSubblockIndexProvider(const InputParameters &params)
Definition: TestSubblockIndexProvider.C:24
TestSubblockIndexProvider::initialize
virtual void initialize() override
Definition: TestSubblockIndexProvider.h:31
SubblockIndexProvider
Abstract base class for user objects that provide an index for a given element that is independent of...
Definition: SubblockIndexProvider.h:24
TestSubblockIndexProvider
A class used to set the subblock index for testing generalized plane strain calculations when more th...
Definition: TestSubblockIndexProvider.h:24
validParams< TestSubblockIndexProvider >
InputParameters validParams< TestSubblockIndexProvider >()
TestSubblockIndexProvider::getMaxSubblockIndex
virtual unsigned int getMaxSubblockIndex() const override
The max index of subblock.
Definition: TestSubblockIndexProvider.C:41
TestSubblockIndexProvider::getSubblockIndex
virtual unsigned int getSubblockIndex(const Elem &) const override
The index of subblock this element is on.
Definition: TestSubblockIndexProvider.C:30
TestSubblockIndexProvider::execute
virtual void execute() override
Definition: TestSubblockIndexProvider.h:32
TestSubblockIndexProvider::validParams
static InputParameters validParams()
Definition: TestSubblockIndexProvider.C:17