www.mooseframework.org
Public Member Functions | Static 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...
 

Static Public Member Functions

static InputParameters validParams ()
 

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 24 of file TestSubblockIndexProvider.h.

Constructor & Destructor Documentation

◆ TestSubblockIndexProvider()

TestSubblockIndexProvider::TestSubblockIndexProvider ( const InputParameters &  params)

Definition at line 24 of file TestSubblockIndexProvider.C.

25 : SubblockIndexProvider(parameters)
26 {
27 }

Member Function Documentation

◆ execute()

virtual void TestSubblockIndexProvider::execute ( )
inlineoverridevirtual

Definition at line 32 of file TestSubblockIndexProvider.h.

32 {};

◆ finalize()

virtual void TestSubblockIndexProvider::finalize ( )
inlineoverridevirtual

Definition at line 33 of file TestSubblockIndexProvider.h.

33 {};

◆ getMaxSubblockIndex()

unsigned int TestSubblockIndexProvider::getMaxSubblockIndex ( ) const
overridevirtual

The max index of subblock.

Implements SubblockIndexProvider.

Definition at line 41 of file TestSubblockIndexProvider.C.

42 {
43  return 1;
44 }

◆ getSubblockIndex()

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

The index of subblock this element is on.

Implements SubblockIndexProvider.

Definition at line 30 of file TestSubblockIndexProvider.C.

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

◆ initialize()

virtual void TestSubblockIndexProvider::initialize ( )
inlineoverridevirtual

Definition at line 31 of file TestSubblockIndexProvider.h.

31 {};

◆ validParams()

InputParameters TestSubblockIndexProvider::validParams ( )
static

Definition at line 17 of file TestSubblockIndexProvider.C.

18 {
19  InputParameters params = SubblockIndexProvider::validParams();
20  params.set<ExecFlagEnum>( "execute_on" ) = EXEC_INITIAL;
21  return params;
22 }

The documentation for this class was generated from the following files:
SubblockIndexProvider::SubblockIndexProvider
SubblockIndexProvider(const InputParameters &params)
Definition: SubblockIndexProvider.h:29
SubblockIndexProvider::validParams
static InputParameters validParams()
Definition: SubblockIndexProvider.C:15