https://mooseframework.inl.gov
VectorSecondTimeDerivative.C
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 
11 #include "Function.h"
12 
13 registerMooseObject("ElectromagneticsApp", VectorSecondTimeDerivative);
14 
17 {
19  params.addClassDescription("The second time derivative operator for vector variables.");
20  params.addParam<FunctionName>("coefficient", 1.0, "Coefficient function.");
21  return params;
22 }
23 
25  : VectorTimeKernel(parameters),
26  _u_dot_dot(dotDot()),
27  _du_dot_dot_du(dotDotDu()),
28  _coeff(getFunction("coefficient"))
29 {
30 }
31 
32 Real
34 {
35  return _test[_i][_qp] * _coeff.value(_t, _q_point[_qp]) * _u_dot_dot[_qp];
36 }
37 
38 Real
40 {
41  return _test[_i][_qp] * _coeff.value(_t, _q_point[_qp]) * _phi[_j][_qp] * _du_dot_dot_du[_qp];
42 }
const VariableValue & _du_dot_dot_du
du dot dot du Jacobian contribution of the second time derivative of the solution vector variable ...
virtual Real computeQpResidual() override
The second time derivative operator for vector variables.
const VectorVariableTestValue & _test
virtual Real computeQpJacobian() override
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
const Function & _coeff
Function coefficient.
static InputParameters validParams()
registerMooseObject("ElectromagneticsApp", VectorSecondTimeDerivative)
VectorSecondTimeDerivative(const InputParameters &parameters)
unsigned int _i
unsigned int _j
const VectorVariablePhiValue & _phi
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
virtual Real value(Real t, const Point &p) const
const MooseArray< Point > & _q_point
static InputParameters validParams()
unsigned int _qp
const VectorVariableValue & _u_dot_dot
Second time derivative of the solution vector variable.