https://mooseframework.inl.gov
CoupledForceRZ.C
Go to the documentation of this file.
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 
16 {
18  params += RZSymmetry::validParams();
19  params.addClassDescription(
20  "Adds a coupled force term in XY coordinates interpreted as cylindrical coordinates");
21  return params;
22 }
23 
25  : CoupledForce(parameters), RZSymmetry(this, parameters)
26 {
27 }
28 
29 Real
31 {
32  const Real circumference = computeCircumference(_q_point[_qp]);
33  return circumference * CoupledForce::computeQpResidual();
34 }
35 
36 Real
38 {
39  const Real circumference = computeCircumference(_q_point[_qp]);
40  return circumference * CoupledForce::computeQpJacobian();
41 }
42 
43 Real
45 {
46  const Real circumference = computeCircumference(_q_point[_qp]);
47  return circumference * CoupledForce::computeQpOffDiagJacobian(jvar);
48 }
Interface class for enabling objects to be RZ symmetric about arbitrary axis.
Definition: RZSymmetry.h:19
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
static InputParameters validParams()
static InputParameters validParams()
virtual Real computeQpResidual() override
virtual Real computeQpJacobian()
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
virtual Real computeCircumference(const RealVectorValue &pt)
Definition: RZSymmetry.C:85
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Source term proportional to the coupled variable in RZ coordinates.
virtual GenericReal< is_ad > computeQpResidual() override
void addClassDescription(const std::string &doc_string)
CoupledForceRZ(const InputParameters &parameters)
virtual Real computeQpJacobian() override
static InputParameters validParams()
Definition: RZSymmetry.C:17
const MooseArray< Point > & _q_point
unsigned int _qp
registerMooseObject("ThermalHydraulicsApp", CoupledForceRZ)