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 : #pragma once 11 : 12 : #include "AuxKernel.h" 13 : 14 : /** 15 : * Calculates the radial displacement for cylindrical geometries. 16 : * Works for 2D and 3D Cartesian systems and axisymmetric systems 17 : */ 18 : 19 : class RadialDisplacementCylinderAux : public AuxKernel 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : RadialDisplacementCylinderAux(const InputParameters & parameters); 25 : 26 36 : virtual ~RadialDisplacementCylinderAux() {} 27 : 28 : protected: 29 : /// Compute the value of the radial displacement 30 : virtual Real computeValue(); 31 : 32 : /// Type of coordinate system 33 : Moose::CoordinateSystemType _coord_system; 34 : 35 : /// Number of displacment components. 36 : unsigned int _ndisp; 37 : /// Coupled variable values of the displacement components. 38 : const std::vector<const VariableValue *> _disp_vals; 39 : 40 : /// Axis direction 41 : RealVectorValue _axis_vector; 42 : 43 : /// Point used to define the origin of the cylinder axis for Cartesian systems 44 : RealVectorValue _origin; 45 : };