www.mooseframework.org
MaterialTensorCalculator.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 MATERIALTENSORCALCULATOR_H
9 #define MATERIALTENSORCALCULATOR_H
10 
11 // MOOSE includes
12 #include "InputParameters.h"
13 #include "MooseEnum.h"
14 #include "SymmTensor.h"
15 
16 #include "libmesh/vector_value.h"
17 
19 
20 template <>
22 
24 {
25 public:
27  {
44  };
45 
46  MaterialTensorCalculator(const InputParameters & parameters);
47 
49 
50 protected:
51  const int _index;
54 
55  const Point _p1;
56  const Point _p2;
57  const Point _direction;
58 
59 public:
60  Real getTensorQuantity(const SymmTensor & tensor,
61  const Point & curr_point,
62  RealVectorValue & direction);
63 };
64 
65 #endif // MATERIALTENSORCALCULATOR_H
InputParameters validParams< MaterialTensorCalculator >()
Real getTensorQuantity(const SymmTensor &tensor, const Point &curr_point, RealVectorValue &direction)
MaterialTensorCalculator(const InputParameters &parameters)