www.mooseframework.org
MomentBalancing.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 #ifndef MOMENTBALANCING_H
8 #define MOMENTBALANCING_H
9 
10 #include "Kernel.h"
11 
12 // Forward Declarations
13 class MomentBalancing;
14 class RankFourTensor;
15 class RankTwoTensor;
16 
17 template <>
18 InputParameters validParams<MomentBalancing>();
19 
30 class MomentBalancing : public Kernel
31 {
32 public:
33  MomentBalancing(const InputParameters & parameters);
34 
35 protected:
36  virtual Real computeQpResidual();
37  virtual Real computeQpJacobian();
38  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
39 
41  const MaterialProperty<RankTwoTensor> & _stress;
42 
47  const MaterialProperty<RankFourTensor> & _Jacobian_mult;
48 
50  const unsigned int _component;
51 
52  // number of Cosserat rotation components provided by the user
53  const unsigned int _nrots;
54 
56  std::vector<unsigned int> _wc_var;
57 
58  // number of displacement components provided by the user
59  const unsigned int _ndisp;
60 
62  std::vector<unsigned int> _disp_var;
63 };
64 
65 #endif // MOMENTBALANCING_H
std::vector< unsigned int > _disp_var
the moose variable numbers for the displacements
std::vector< unsigned int > _wc_var
the moose variable numbers for the Cosserat rotation degrees of freedom
const MaterialProperty< RankTwoTensor > & _stress
the stress tensor (not the moment stress) at the quad-point.
const unsigned int _nrots
This Kernel computes epsilon_ijk * stress_jk (sum over j and k) "i" is called _component in this clas...
const MaterialProperty< RankFourTensor > & _Jacobian_mult
d(stress tensor)/(d strain tensor) Here strain_ij = grad_j disp_i + epsilon_ijk * wc_k ...
virtual Real computeQpResidual()
const unsigned int _ndisp
virtual Real computeQpJacobian()
InputParameters validParams< MomentBalancing >()
MomentBalancing(const InputParameters &parameters)
const unsigned int _component
The Kernel computes epsilon_{component j k}*stress_{j k}.
virtual Real computeQpOffDiagJacobian(unsigned int jvar)