https://mooseframework.inl.gov
Loading...
Searching...
No Matches
InertialTorque.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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 "TimeKernel.h"
13#include "Material.h"
14
15// Forward Declarations
16
25{
26public:
28
30
31protected:
32 virtual Real computeQpResidual() override;
33 virtual Real computeQpJacobian() override;
34 virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
35
36private:
39
41 const Real _beta;
42
44 const Real _gamma;
45
48
50 const Real _alpha;
51
57 const unsigned _component;
58
60 const unsigned _ndisp;
61
63 const std::vector<unsigned> _disp_num;
64
66 const std::vector<const VariableValue *> _disp;
67
69 const std::vector<const VariableValue *> _disp_old;
70
72 const std::vector<const VariableValue *> _vel_old;
73
75 const std::vector<const VariableValue *> _accel_old;
76
78 std::vector<Real> _accel;
79
81 std::vector<Real> _vel;
82
84 std::vector<Real> _daccel;
85
87 std::vector<Real> _dvel;
88};
Computes the inertial torque, which is density * displacement x acceleration (a cross-product is used...
const MaterialProperty< Real > & _eta
Rayleigh-damping eta parameter.
const unsigned _component
Component of the cross-product desired.
const std::vector< const VariableValue * > _disp
Displacements.
std::vector< Real > _vel
Velocity (instantiating this vector avoids re-creating a new vector every residual calculation)
std::vector< Real > _accel
Acceleration (instantiating this vector avoids re-creating a new vector every residual calculation)
std::vector< Real > _daccel
Derivative of acceleration with respect to displacement.
const Real _beta
Newmark beta parameter.
const MaterialProperty< Real > & _density
density
const std::vector< const VariableValue * > _accel_old
Old value of accelerations.
const std::vector< unsigned > _disp_num
MOOSE internal variable numbers corresponding to the displacments.
const unsigned _ndisp
Number of displacement variables. This must be 3.
std::vector< Real > _dvel
Derivative of velocity with respect to displacement.
const std::vector< const VariableValue * > _vel_old
Old value of velocities.
const Real _gamma
Newmark gamma parameter.
const std::vector< const VariableValue * > _disp_old
Old value of displacements.
static InputParameters validParams()
virtual Real computeQpJacobian() override
const Real _alpha
HHT alpha parameter.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
virtual Real computeQpResidual() override
const InputParameters & parameters() const