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 
14 {
16 
17  params.set<MultiMooseEnum>("vector_tags") = "time";
18  params.set<MultiMooseEnum>("matrix_tags") = "system time";
19 
20  return params;
21 }
22 
24  : InterfaceKernel(parameters),
25  _u_dot(_is_transient ? _var.uDot() : _zero),
26  _du_dot_du(_is_transient ? _var.duDotDu() : _zero),
27  _neighbor_value_dot(_is_transient ? coupledNeighborValueDot("neighbor_var") : _zero),
28  _dneighbor_value_dot_du(_is_transient ? coupledNeighborValueDotDu("neighbor_var") : _zero)
29 
30 {
31  if (!_is_transient)
32  mooseError("In order to use an interface time kernel the executioner must be transient");
33 }
34 
35 Real
37 {
38  return 0.;
39 }
InterfaceKernel and VectorInterfaceKernel is responsible for interfacing physics across subdomains...
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...
static InputParameters validParams()
DGJacobianType
Definition: MooseTypes.h:662
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
InterfaceTimeKernel(const InputParameters &parameters)
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
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
static InputParameters validParams()