www.mooseframework.org
Public Member Functions | Private Attributes | List of all members
PolycrystalColoringICAction Class Reference

Random Voronoi tesselation polycrystal action. More...

#include <PolycrystalColoringICAction.h>

Inheritance diagram for PolycrystalColoringICAction:
[legend]

Public Member Functions

 PolycrystalColoringICAction (const InputParameters &params)
 
virtual void act () override
 

Private Attributes

const unsigned int _op_num
 
const std::string _var_name_base
 

Detailed Description

Random Voronoi tesselation polycrystal action.

Definition at line 19 of file PolycrystalColoringICAction.h.

Constructor & Destructor Documentation

◆ PolycrystalColoringICAction()

PolycrystalColoringICAction::PolycrystalColoringICAction ( const InputParameters &  params)

Definition at line 31 of file PolycrystalColoringICAction.C.

32  : Action(params),
33  _op_num(getParam<unsigned int>("op_num")),
34  _var_name_base(getParam<std::string>("var_name_base"))
35 {
36 }

Member Function Documentation

◆ act()

void PolycrystalColoringICAction::act ( )
overridevirtual

Definition at line 39 of file PolycrystalColoringICAction.C.

40 {
41  // Loop through the number of order parameters
42  for (unsigned int op = 0; op < _op_num; op++)
43  {
44  // Set parameters for BoundingBoxIC
45  InputParameters poly_params = _factory.getValidParams("PolycrystalColoringIC");
46  poly_params.set<VariableName>("variable") = _var_name_base + Moose::stringify(op);
47  poly_params.set<unsigned int>("op_index") = op;
48  poly_params.set<UserObjectName>("polycrystal_ic_uo") =
49  getParam<UserObjectName>("polycrystal_ic_uo");
50 
51  // Add initial condition
52  _problem->addInitialCondition(
53  "PolycrystalColoringIC", "PolycrystalColoringIC_" + Moose::stringify(op), poly_params);
54  }
55 }

Member Data Documentation

◆ _op_num

const unsigned int PolycrystalColoringICAction::_op_num
private

Definition at line 27 of file PolycrystalColoringICAction.h.

Referenced by act().

◆ _var_name_base

const std::string PolycrystalColoringICAction::_var_name_base
private

Definition at line 28 of file PolycrystalColoringICAction.h.

Referenced by act().


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