-
Notifications
You must be signed in to change notification settings - Fork 9
/
EquationTerm.C
57 lines (51 loc) · 1.81 KB
/
EquationTerm.C
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
47
48
49
50
51
52
53
54
55
56
57
//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html
//
// Engy-5310: Computational Continuum Transport Phenomena
// UMass Lowell, Nuclear Chemical Engineering
// https://github.com/dpploy/engy-5310
#include "EquationTerm.h"
/**
* All MOOSE based object classes you create must be registered using this macro.
* The first argument is the name of the App you entered in when running the stork.sh
* script with an "App" suffix. If you ran "stork.sh Example", then the argument here
* becomes "ExampleApp". The second argument is the name of the C++ class you created.
*/
registerMooseObject("Engy5310App-FIXME", EquationTerm);
/**
* This function defines the valid parameters for
* this Kernel and their default values
*/
template<>
InputParameters validParams<EquationTerm>()
{
InputParameters params = validParams<Kernel>();
params.addClassDescription("The equation term ($...$), with the weak form of $...$.");
params.addParam<Real>("equationTermCoeff",1.0,"Equation Term Coefficient");
return params;
}
EquationTerm::EquationTerm(const InputParameters & parameters) : Kernel(parameters),
// Set the coefficient for the equation term
_equationTermCoeff(getParam<Real>("equationTermCoeff"))
{
}
Real
EquationTerm::computeQpResidual()
{
// Implement the return
// e.g. return - _diffCoeff * _grad_u[_qp] * _grad_test[_i][_qp];
FIXME return 0.0 // remove this line
}
Real
EquationTerm::computeQpJacobian()
{
// Implement the return
// e.g. return - _diffCoeff * _grad_phi[_j][_qp] * _grad_test[_i][_qp];
FIXME return 0.0 // remove this line
}