Permalink
Browse files

Merge pull request #12549 from andrsd/coef-td-imps

Fixings in CoefTimeDerivative kernel
  • Loading branch information...
jwpeterson committed Dec 10, 2018
2 parents 5153fa5 + 45dbf26 commit 8d780a446e80378c5b709b35ce1ed8a362b5d374
Showing with 5 additions and 11 deletions.
  1. +5 −9 framework/include/kernels/CoefTimeDerivative.h
  2. +0 −2 framework/src/kernels/CoefTimeDerivative.C
@@ -12,16 +12,14 @@

#include "TimeDerivative.h"

// Forward Declarations
class CoefTimeDerivative;

/**
* validParams returns the parameters that this Kernel accepts / needs
* The actual body of the function MUST be in the .C file.
*/
template <>
InputParameters validParams<CoefTimeDerivative>();

/**
* Time derivative term multiplied by a coefficient
*/
class CoefTimeDerivative : public TimeDerivative
{
public:
@@ -31,10 +29,8 @@ class CoefTimeDerivative : public TimeDerivative
virtual Real computeQpResidual();
virtual Real computeQpJacobian();

/**
* This MooseArray will hold the reference we need to our
* material property from the Material class
*/
/// The coefficient the time derivative is multiplied with
Real _coef;
};

#endif // COEFTIMEDERIVATIVE_H
@@ -28,8 +28,6 @@ CoefTimeDerivative::CoefTimeDerivative(const InputParameters & parameters)
Real
CoefTimeDerivative::computeQpResidual()
{
// We're reusing the TimeDerivative Kernel's residual
// so that we don't have to recode that.
return _coef * TimeDerivative::computeQpResidual();
}

0 comments on commit 8d780a4

Please sign in to comment.