www.mooseframework.org
Public Member Functions | List of all members
TestSubblockIndexProvider Class Reference

A class used to set the subblock index for testing generalized plane strain calculations when more than one out-of-plane strain is provided on different subsets of elements. More...

#include <TestSubblockIndexProvider.h>

Inheritance diagram for TestSubblockIndexProvider:
[legend]

Public Member Functions

 TestSubblockIndexProvider (const InputParameters &params)
 
virtual void initialize () override
 
virtual void execute () override
 
virtual void finalize () override
 
virtual unsigned int getSubblockIndex (const Elem &) const override
 The index of subblock this element is on. More...
 
virtual unsigned int getMaxSubblockIndex () const override
 The max index of subblock. More...
 

Detailed Description

A class used to set the subblock index for testing generalized plane strain calculations when more than one out-of-plane strain is provided on different subsets of elements.

Definition at line 25 of file TestSubblockIndexProvider.h.

Constructor & Destructor Documentation

◆ TestSubblockIndexProvider()

TestSubblockIndexProvider::TestSubblockIndexProvider ( const InputParameters &  params)

Definition at line 23 of file TestSubblockIndexProvider.C.

24 : SubblockIndexProvider(parameters)
25 {
26 }
SubblockIndexProvider(const InputParameters &params)

Member Function Documentation

◆ execute()

virtual void TestSubblockIndexProvider::execute ( )
inlineoverridevirtual

Definition at line 31 of file TestSubblockIndexProvider.h.

31 {};

◆ finalize()

virtual void TestSubblockIndexProvider::finalize ( )
inlineoverridevirtual

Definition at line 32 of file TestSubblockIndexProvider.h.

32 {};

◆ getMaxSubblockIndex()

unsigned int TestSubblockIndexProvider::getMaxSubblockIndex ( ) const
overridevirtual

The max index of subblock.

Implements SubblockIndexProvider.

Definition at line 40 of file TestSubblockIndexProvider.C.

41 {
42  return 1;
43 }

◆ getSubblockIndex()

unsigned int TestSubblockIndexProvider::getSubblockIndex ( const Elem &  elem) const
overridevirtual

The index of subblock this element is on.

Implements SubblockIndexProvider.

Definition at line 29 of file TestSubblockIndexProvider.C.

30 {
31  Point p = *elem.get_node(0);
32 
33  if (MooseUtils::relativeFuzzyLessThan(p(0), 0.5))
34  return 0;
35  else
36  return 1;
37 }

◆ initialize()

virtual void TestSubblockIndexProvider::initialize ( )
inlineoverridevirtual

Definition at line 30 of file TestSubblockIndexProvider.h.

30 {};

The documentation for this class was generated from the following files: