www.mooseframework.org
ODETimeKernel.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 "ODETimeKernel.h"
11 
12 // MOOSE includes
13 #include "Assembly.h"
14 #include "MooseVariableScalar.h"
15 #include "SystemBase.h"
16 
17 template <>
20 {
22 
23  params.set<MultiMooseEnum>("vector_tags") = "time";
24  params.set<MultiMooseEnum>("matrix_tags") = "system time";
25 
26  return params;
27 }
28 
30  : ODEKernel(parameters), _u_dot(_var.uDot()), _du_dot_du(_var.duDotDu())
31 {
32 }
33 
34 void
36 {
38 
39  for (_i = 0; _i < _var.order(); _i++)
41 
43 }
void accumulateTaggedLocalResidual()
Local residual blocks will be appended by adding the current local kernel residual.
unsigned int number() const
Get variable number coming from libMesh.
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...
InputParameters validParams< ODETimeKernel >()
Definition: ODETimeKernel.C:19
Assembly & _assembly
Definition: ScalarKernel.h:73
MooseVariableScalar & _var
Scalar variable.
Definition: ScalarKernel.h:75
InputParameters validParams< ODEKernel >()
Definition: ODEKernel.C:19
Order order() const
Get the order of this variable Note: Order enum can be implicitly converted to unsigned int...
DenseVector< Number > _local_re
Holds residual entries as they are accumulated by this Kernel.
virtual Real computeQpResidual()=0
ODETimeKernel(const InputParameters &parameters)
Definition: ODETimeKernel.C:29
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
void prepareVectorTag(Assembly &assembly, unsigned int ivar)
Prepare data for computing element residual the according to active tags.
unsigned int _i
Definition: ScalarKernel.h:78
virtual void computeResidual() override
Definition: ODETimeKernel.C:35