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 16 of file PolycrystalColoringICAction.h.

Constructor & Destructor Documentation

PolycrystalColoringICAction::PolycrystalColoringICAction ( const InputParameters &  params)

Definition at line 26 of file PolycrystalColoringICAction.C.

27  : Action(params),
28  _op_num(getParam<unsigned int>("op_num")),
29  _var_name_base(getParam<std::string>("var_name_base"))
30 {
31 }

Member Function Documentation

void PolycrystalColoringICAction::act ( )
overridevirtual

Definition at line 34 of file PolycrystalColoringICAction.C.

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

Member Data Documentation

const unsigned int PolycrystalColoringICAction::_op_num
private

Definition at line 24 of file PolycrystalColoringICAction.h.

Referenced by act().

const std::string PolycrystalColoringICAction::_var_name_base
private

Definition at line 25 of file PolycrystalColoringICAction.h.

Referenced by act().


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