-
Notifications
You must be signed in to change notification settings - Fork 1
/
CoefCoupledTimeDerivative.h
46 lines (38 loc) · 1.55 KB
/
CoefCoupledTimeDerivative.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC */
/* ALL RIGHTS RESERVED */
/* */
/* Prepared by Battelle Energy Alliance, LLC */
/* Under Contract No. DE-AC07-05ID14517 */
/* With the U. S. Department of Energy */
/* */
/* See COPYRIGHT for full restrictions */
/****************************************************************/
#ifndef COEFCOUPLEDTIMEDERIVATIVE_H
#define COEFCOUPLEDTIMEDERIVATIVE_H
#include "Kernel.h"
// Forward Declaration
class CoefCoupledTimeDerivative;
template<>
InputParameters validParams<CoefCoupledTimeDerivative>();
/**
* This calculates the time derivative for a coupled variable
**/
class CoefCoupledTimeDerivative : public Kernel
{
public:
CoefCoupledTimeDerivative(const std::string & name, InputParameters parameters);
protected:
virtual Real computeQpResidual();
virtual Real computeQpJacobian();
virtual Real computeQpOffDiagJacobian(unsigned int jvar);
private:
Real _coef;
VariableValue & _v_dot;
VariableValue & _dv_dot;
unsigned int _v_var;
};
#endif //COEFCOUPLEDTIMEDERIVATIVE_H