https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
12registerMooseObject("ThermalHydraulicsApp", CoupledForceRZ);
13
16{
18 params += RZSymmetry::validParams();
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
29Real
31{
32 const Real circumference = computeCircumference(_q_point[_qp]);
33 return circumference * CoupledForce::computeQpResidual();
34}
35
36Real
38{
39 const Real circumference = computeCircumference(_q_point[_qp]);
40 return circumference * CoupledForce::computeQpJacobian();
41}
42
43Real
45{
46 const Real circumference = computeCircumference(_q_point[_qp]);
47 return circumference * CoupledForce::computeQpOffDiagJacobian(jvar);
48}
registerMooseObject("ThermalHydraulicsApp", CoupledForceRZ)
Source term proportional to the coupled variable in RZ coordinates.
CoupledForceRZ(const InputParameters &parameters)
virtual Real computeQpResidual() override
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
static InputParameters validParams()
virtual Real computeQpJacobian() override
virtual GenericReal< is_ad > computeQpResidual() override
static InputParameters validParams()
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
void addClassDescription(const std::string &doc_string)
unsigned int _qp
const MooseArray< Point > & _q_point
virtual Real computeQpJacobian()
Interface class for enabling objects to be RZ symmetric about arbitrary axis.
Definition RZSymmetry.h:20
virtual Real computeCircumference(const RealVectorValue &pt)
Definition RZSymmetry.C:85
static InputParameters validParams()
Definition RZSymmetry.C:17