Line data Source code
1 : /****************************************************************/ 2 : /* DO NOT MODIFY THIS HEADER */ 3 : /* BlackBear */ 4 : /* */ 5 : /* (c) 2017 Battelle Energy Alliance, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /* */ 8 : /* Prepared by Battelle Energy Alliance, LLC */ 9 : /* Under Contract No. DE-AC07-05ID14517 */ 10 : /* With the U. S. Department of Energy */ 11 : /* */ 12 : /* See COPYRIGHT for full restrictions */ 13 : /****************************************************************/ 14 : 15 : #include "ConcreteThermalTimeIntegration.h" 16 : #include "Material.h" 17 : 18 : registerMooseObject("BlackBearApp", ConcreteThermalTimeIntegration); 19 : 20 : InputParameters 21 418 : ConcreteThermalTimeIntegration::validParams() 22 : { 23 418 : InputParameters params = TimeDerivative::validParams(); 24 836 : params.addParam<std::string>( 25 : "property_name", "thermal_capacity", "Heat capacity material property"); 26 418 : params.addClassDescription("Time derivative term for heat transfer in concrete."); 27 418 : return params; 28 0 : } 29 : 30 220 : ConcreteThermalTimeIntegration::ConcreteThermalTimeIntegration(const InputParameters & parameters) 31 440 : : TimeDerivative(parameters), _thermal_capacity(getMaterialProperty<Real>("thermal_capacity")) 32 : { 33 220 : } 34 : 35 : Real 36 2561328 : ConcreteThermalTimeIntegration::computeQpResidual() 37 : { 38 2561328 : return _thermal_capacity[_qp] * TimeDerivative::computeQpResidual(); // self accumulation term 39 : } 40 : 41 : Real 42 815584 : ConcreteThermalTimeIntegration::computeQpJacobian() 43 : { 44 815584 : return _thermal_capacity[_qp] * TimeDerivative::computeQpJacobian(); 45 : } 46 : 47 : Real 48 807520 : ConcreteThermalTimeIntegration::computeQpOffDiagJacobian(unsigned int /*jvar*/) 49 : { 50 807520 : return 0.0; 51 : }