www.mooseframework.org
InterfaceTimeKernel.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "InterfaceTimeKernel.h"
11 
12 template <>
15 {
17 
18  params.set<MultiMooseEnum>("vector_tags") = "time";
19  params.set<MultiMooseEnum>("matrix_tags") = "system time";
20 
21  return params;
22 }
23 
25  : InterfaceKernel(parameters),
26  _u_dot(_is_transient ? _var.uDot() : _zero),
27  _du_dot_du(_is_transient ? _var.duDotDu() : _zero),
28  _neighbor_value_dot(_is_transient ? coupledNeighborValueDot("neighbor_var") : _zero),
29  _dneighbor_value_dot_du(_is_transient ? coupledNeighborValueDotDu("neighbor_var") : _zero)
30 
31 {
32  if (!_is_transient)
33  mooseError("In order to use an interface time kernel the executioner must be transient");
34 }
35 
36 Real
38 {
39  return 0.;
40 }
InputParameters validParams< InterfaceTimeKernel >()
InterfaceKernel and VectorInterfaceKernel is responsible for interfacing physics across subdomains...
InputParameters validParams< InterfaceKernel >()
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void mooseError(Args &&... args) const
Definition: MooseObject.h:147
DGJacobianType
Definition: MooseTypes.h:515
InterfaceTimeKernel(const InputParameters &parameters)
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar)
compute off-diagonal jacobian components at quadrature points