www.mooseframework.org
GrainBoundaryArea.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef GRAINBOUNDARYAREA_H
9 #define GRAINBOUNDARYAREA_H
10 
11 #include "ElementIntegralPostprocessor.h"
12 
13 class GrainBoundaryArea;
14 
15 template <>
16 InputParameters validParams<GrainBoundaryArea>();
17 
21 class GrainBoundaryArea : public ElementIntegralPostprocessor
22 {
23 public:
24  GrainBoundaryArea(const InputParameters & parameters);
25 
26  virtual Real getValue() override;
27 
28 protected:
29  virtual Real computeQpIntegral() override;
30 
32  const unsigned int _op_num;
33 
35  std::vector<const VariableGradient *> _grads;
36 
38  const Real _factor;
39 };
40 
41 #endif // GRAINBOUNDARYAREA_H
std::vector< const VariableGradient * > _grads
Order parameters.
const unsigned int _op_num
Number of order parameters.
GrainBoundaryArea(const InputParameters &parameters)
virtual Real getValue() override
const Real _factor
normalization factor, depending on order parameter range and grains per side
virtual Real computeQpIntegral() override
InputParameters validParams< GrainBoundaryArea >()
Calculate total grain boundary length in 2D and area in 3D.