Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #include "CoupledForceRZ.h" 11 : 12 : registerMooseObject("ThermalHydraulicsApp", CoupledForceRZ); 13 : 14 : InputParameters 15 39 : CoupledForceRZ::validParams() 16 : { 17 39 : InputParameters params = CoupledForce::validParams(); 18 39 : params += RZSymmetry::validParams(); 19 39 : params.addClassDescription( 20 : "Adds a coupled force term in XY coordinates interpreted as cylindrical coordinates"); 21 39 : return params; 22 0 : } 23 : 24 21 : CoupledForceRZ::CoupledForceRZ(const InputParameters & parameters) 25 21 : : CoupledForce(parameters), RZSymmetry(this, parameters) 26 : { 27 21 : } 28 : 29 : Real 30 506880 : CoupledForceRZ::computeQpResidual() 31 : { 32 506880 : const Real circumference = computeCircumference(_q_point[_qp]); 33 506880 : return circumference * CoupledForce::computeQpResidual(); 34 : } 35 : 36 : Real 37 389120 : CoupledForceRZ::computeQpJacobian() 38 : { 39 389120 : const Real circumference = computeCircumference(_q_point[_qp]); 40 389120 : return circumference * CoupledForce::computeQpJacobian(); 41 : } 42 : 43 : Real 44 0 : CoupledForceRZ::computeQpOffDiagJacobian(unsigned int jvar) 45 : { 46 0 : const Real circumference = computeCircumference(_q_point[_qp]); 47 0 : return circumference * CoupledForce::computeQpOffDiagJacobian(jvar); 48 : }