Line data Source code
1 : /**********************************************************************/ 2 : /* DO NOT MODIFY THIS HEADER */ 3 : /* MAGPIE - Mesoscale Atomistic Glue Program for Integrated Execution */ 4 : /* */ 5 : /* Copyright 2017 Battelle Energy Alliance, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /**********************************************************************/ 8 : 9 : #include "MyTRIMElementHeatSource.h" 10 : #include "MyTRIMElementRun.h" 11 : 12 : registerMooseObject("MagpieApp", MyTRIMElementHeatSource); 13 : 14 : InputParameters 15 9 : MyTRIMElementHeatSource::validParams() 16 : { 17 9 : InputParameters params = MyTRIMElementEnergyAccess<Kernel>::validParams(); 18 9 : return params; 19 : } 20 : 21 5 : MyTRIMElementHeatSource::MyTRIMElementHeatSource(const InputParameters & parameters) 22 5 : : MyTRIMElementEnergyAccess<Kernel>(parameters), _dt(_fe_problem.dt()) 23 : { 24 5 : } 25 : 26 : Real 27 4960000 : MyTRIMElementHeatSource::computeQpResidual() 28 : { 29 4960000 : return -getEnergyDensity() / _dt * _test[_i][_qp]; 30 : }