https://mooseframework.inl.gov
NodalTranslationalInertia.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 "TimeNodalKernel.h"
13 
14 // Forward Declarations
15 class TimeIntegrator;
16 class AuxiliarySystem;
17 
22 {
23 public:
25 
27 
28 protected:
29  virtual Real computeQpResidual() override;
30 
31  virtual Real computeQpJacobian() override;
32 
34  const bool _has_mass;
35  const bool _has_beta;
36  const bool _has_gamma;
37  const bool _has_velocity;
38  const bool _has_acceleration;
40 
42  const Real _mass;
43 
46 
48  const Real _beta;
49 
51  const Real _gamma;
52 
54  const Real & _eta;
55 
57  const Real & _alpha;
58 
61 
63  unsigned int _vel_num;
64 
66  unsigned int _accel_num;
67 
69  std::map<dof_id_type, Real> _node_id_to_mass;
70 
71  // Velocity and acceleration calculated by time integrator
77 
80 };
const bool _has_mass
Booleans for validity of params.
const Real _mass
Mass associated with the node.
const Real _beta
Newmark time integration parameter.
static InputParameters validParams()
const Real & _eta
Mass proportional Rayliegh damping.
const Real & _alpha
HHT time integration parameter.
AuxiliarySystem * _aux_sys
Auxiliary system object.
const VariableValue * _u_dotdot_factor
const VariableValue * _du_dotdot_du
Calculates the inertial force and mass proportional damping for a nodal mass.
const TimeIntegrator & _time_integrator
The TimeIntegrator.
unsigned int _accel_num
Variable number corresponding to the acceleration aux variable.
OutputTools< Real >::VariableValue VariableValue
const VariableValue * _u_old
Old value of displacement.
NodalTranslationalInertia(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::map< dof_id_type, Real > _node_id_to_mass
Map between boundary nodes and nodal mass.
const VariableValue * _u_dot_factor
const InputParameters & parameters() const
unsigned int _vel_num
Variable number corresponding to the velocity aux variable.
const Real _gamma
Newmark time integration parameter.
virtual Real computeQpResidual() override
virtual Real computeQpJacobian() override