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 17 : CoupledForceRZ::validParams() 16 : { 17 17 : InputParameters params = CoupledForce::validParams(); 18 17 : params += RZSymmetry::validParams(); 19 17 : params.addClassDescription( 20 : "Adds a coupled force term in XY coordinates interpreted as cylindrical coordinates"); 21 17 : return params; 22 0 : } 23 : 24 9 : CoupledForceRZ::CoupledForceRZ(const InputParameters & parameters) 25 9 : : CoupledForce(parameters), RZSymmetry(this, parameters) 26 : { 27 9 : } 28 : 29 : Real 30 281600 : CoupledForceRZ::computeQpResidual() 31 : { 32 281600 : const Real circumference = computeCircumference(_q_point[_qp]); 33 281600 : return circumference * CoupledForce::computeQpResidual(); 34 : } 35 : 36 : Real 37 225280 : CoupledForceRZ::computeQpJacobian() 38 : { 39 225280 : const Real circumference = computeCircumference(_q_point[_qp]); 40 225280 : 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 : }