www.mooseframework.org
BndsCalcAux.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "BndsCalcAux.h"
11 #include "BndsCalculator.h"
12 
13 registerMooseObject("PhaseFieldApp", BndsCalcAux);
14 
15 template <>
16 InputParameters
18 {
19  InputParameters params = validParams<AuxKernel>();
20  params.addClassDescription("Calculate location of grain boundaries in a polycrystalline sample");
21  params.addRequiredCoupledVarWithAutoBuild(
22  "v", "var_name_base", "op_num", "Array of coupled variables");
23  return params;
24 }
25 
26 BndsCalcAux::BndsCalcAux(const InputParameters & parameters)
27  : AuxKernel(parameters), _op_num(coupledComponents("v")), _vals(_op_num)
28 {
29  for (unsigned int i = 0; i < _op_num; ++i)
30  _vals[i] = &coupledValue("v", i);
31 }
32 
33 Real
35 {
37 }
BndsCalcAux::_op_num
const unsigned int _op_num
Definition: BndsCalcAux.h:31
BndsCalcAux::BndsCalcAux
BndsCalcAux(const InputParameters &parameters)
Definition: BndsCalcAux.C:26
BndsCalculator::computeBndsVariable
Real computeBndsVariable(const std::vector< T * > &var, unsigned int qp)
Definition: BndsCalculator.h:17
validParams< BndsCalcAux >
InputParameters validParams< BndsCalcAux >()
Definition: BndsCalcAux.C:17
BndsCalcAux
Visualize the location of grain boundaries in a polycrystalline simulation.
Definition: BndsCalcAux.h:23
BndsCalcAux::_vals
std::vector< const VariableValue * > _vals
Definition: BndsCalcAux.h:32
BndsCalcAux.h
BndsCalculator.h
registerMooseObject
registerMooseObject("PhaseFieldApp", BndsCalcAux)
BndsCalcAux::computeValue
virtual Real computeValue()
Definition: BndsCalcAux.C:34