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

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

#include <BndsCalcAux.h>

Inheritance diagram for BndsCalcAux:
[legend]

Public Member Functions

 BndsCalcAux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeValue ()
 

Protected Attributes

const unsigned int _op_num
 
std::vector< const VariableValue * > _vals
 

Detailed Description

Visualize the location of grain boundaries in a polycrystalline simulation.

Definition at line 21 of file BndsCalcAux.h.

Constructor & Destructor Documentation

BndsCalcAux::BndsCalcAux ( const InputParameters &  parameters)

Definition at line 20 of file BndsCalcAux.C.

21  : AuxKernel(parameters), _op_num(coupledComponents("v")), _vals(_op_num)
22 {
23  for (unsigned int i = 0; i < _op_num; ++i)
24  _vals[i] = &coupledValue("v", i);
25 }
const unsigned int _op_num
Definition: BndsCalcAux.h:29
std::vector< const VariableValue * > _vals
Definition: BndsCalcAux.h:30

Member Function Documentation

Real BndsCalcAux::computeValue ( )
protectedvirtual

Definition at line 28 of file BndsCalcAux.C.

29 {
30  Real value = 0.0;
31 
32  for (unsigned int i = 0; i < _op_num; ++i)
33  value += (*_vals[i])[_qp] * (*_vals[i])[_qp];
34 
35  return value;
36 }
const unsigned int _op_num
Definition: BndsCalcAux.h:29
std::vector< const VariableValue * > _vals
Definition: BndsCalcAux.h:30

Member Data Documentation

const unsigned int BndsCalcAux::_op_num
protected

Definition at line 29 of file BndsCalcAux.h.

Referenced by BndsCalcAux(), and computeValue().

std::vector<const VariableValue *> BndsCalcAux::_vals
protected

Definition at line 30 of file BndsCalcAux.h.

Referenced by BndsCalcAux(), and computeValue().


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