www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VoronoiICAux Class Reference

Visualize the location of grain boundaries in a polycrystalline simulation. More...

#include <VoronoiICAux.h>

Inheritance diagram for VoronoiICAux:
[legend]

Public Member Functions

 VoronoiICAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const PolycrystalUserObjectBase_poly_ic_uo
 
std::vector< unsigned int > _grain_ids
 

Detailed Description

Visualize the location of grain boundaries in a polycrystalline simulation.

Definition at line 25 of file VoronoiICAux.h.

Constructor & Destructor Documentation

◆ VoronoiICAux()

VoronoiICAux::VoronoiICAux ( const InputParameters &  parameters)

Definition at line 23 of file VoronoiICAux.C.

24  : AuxKernel(parameters),
25  _poly_ic_uo(getUserObject<PolycrystalUserObjectBase>("polycrystal_ic_uo"))
26 {
27 }
const PolycrystalUserObjectBase & _poly_ic_uo
Definition: VoronoiICAux.h:33

Member Function Documentation

◆ computeValue()

Real VoronoiICAux::computeValue ( )
protectedvirtual

Definition at line 30 of file VoronoiICAux.C.

31 {
33 
34  if (_grain_ids.empty())
35  return 0;
36  else
37  return _grain_ids[0];
38 }
const PolycrystalUserObjectBase & _poly_ic_uo
Definition: VoronoiICAux.h:33
virtual void getGrainsBasedOnElem(const Elem &elem, std::vector< unsigned int > &grains) const
This method may be defined in addition to the point based initialization to speed up lookups...
std::vector< unsigned int > _grain_ids
Definition: VoronoiICAux.h:35

Member Data Documentation

◆ _grain_ids

std::vector<unsigned int> VoronoiICAux::_grain_ids
protected

Definition at line 35 of file VoronoiICAux.h.

Referenced by computeValue().

◆ _poly_ic_uo

const PolycrystalUserObjectBase& VoronoiICAux::_poly_ic_uo
protected

Definition at line 33 of file VoronoiICAux.h.

Referenced by computeValue().


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