https://mooseframework.inl.gov
Loading...
Searching...
No Matches
InterfaceTimeKernel.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
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
35Real
37{
38 return 0.;
39}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
InterfaceKernel and VectorInterfaceKernel is responsible for interfacing physics across subdomains.
static InputParameters validParams()
InterfaceTimeKernel(const InputParameters &parameters)
virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar)
compute off-diagonal jacobian components at quadrature points
static InputParameters validParams()
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type.
DGJacobianType
Definition MooseTypes.h:804