www.mooseframework.org
RankTwoScalarAux.h
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 #pragma once
11 
12 #include "NodalPatchRecovery.h"
13 #include "RankTwoTensor.h"
14 
15 class RankTwoScalarAux;
16 
17 template <>
18 InputParameters validParams<RankTwoScalarAux>();
19 
24 class RankTwoScalarAux : public NodalPatchRecovery
25 {
26 public:
27  static InputParameters validParams();
28 
29  RankTwoScalarAux(const InputParameters & parameters);
30 
31 protected:
32  virtual Real computeValue();
33 
34  const MaterialProperty<RankTwoTensor> & _tensor;
35 
40  MooseEnum _scalar_type;
41 
43  const bool _has_selected_qp;
44 
46  const unsigned int _selected_qp;
47 
48  const Point _point1;
49  const Point _point2;
51 };
validParams< RankTwoScalarAux >
InputParameters validParams< RankTwoScalarAux >()
RankTwoScalarAux::validParams
static InputParameters validParams()
Definition: RankTwoScalarAux.C:18
RankTwoScalarAux
RankTwoScalarAux uses the namespace RankTwoScalarTools to compute scalar values from Rank-2 tensors.
Definition: RankTwoScalarAux.h:24
RankTwoScalarAux::_tensor
const MaterialProperty< RankTwoTensor > & _tensor
Definition: RankTwoScalarAux.h:34
RankTwoScalarAux::_has_selected_qp
const bool _has_selected_qp
whether or not selected_qp has been set
Definition: RankTwoScalarAux.h:43
RankTwoScalarAux::computeValue
virtual Real computeValue()
Definition: RankTwoScalarAux.C:57
RankTwoScalarAux::_scalar_type
MooseEnum _scalar_type
Determines the information to be extracted from the tensor by using the RankTwoScalarTools namespace,...
Definition: RankTwoScalarAux.h:40
RankTwoScalarAux::RankTwoScalarAux
RankTwoScalarAux(const InputParameters &parameters)
Definition: RankTwoScalarAux.C:44
RankTwoScalarAux::_point2
const Point _point2
Definition: RankTwoScalarAux.h:49
RankTwoScalarAux::_point1
const Point _point1
Definition: RankTwoScalarAux.h:48
RankTwoScalarAux::_input_direction
Point _input_direction
Definition: RankTwoScalarAux.h:50
RankTwoScalarAux::_selected_qp
const unsigned int _selected_qp
The std::vector will be evaluated at this quadpoint only if defined.
Definition: RankTwoScalarAux.h:46