https://mooseframework.inl.gov
CylinderComponent.h
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 #pragma once
11 
12 // MOOSE includes
13 #include "ActionComponent.h"
19 
23 class CylinderComponent : public virtual ActionComponent,
29 {
30 public:
32  CylinderComponent(const InputParameters & params);
33 
34 protected:
35  virtual void addMeshGenerators() override;
36  virtual void setupComponent() override;
37  virtual void checkIntegrity() override;
38 
40  const Real _radius;
42  const Real _height;
43 
44  virtual Real volume() const override { return _height * libMesh::pi * Utility::pow<2>(_radius); }
45  virtual Real outerSurfaceArea() const override
46  {
48  }
49 };
const Real _height
Height of the cylinder.
virtual void setupComponent() override
Cylinder on which one can define a Physics.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Base class for components that are defined using an action.
virtual Real outerSurfaceArea() const override
Return the component outer boundary area.
Helper class to help Components be located with the orientation and position we want.
virtual void addMeshGenerators() override
Helper class to help creating an entire physics Note: Trying out virtual inheritance.
CylinderComponent(const InputParameters &params)
const Real _radius
Radius of the cylinder.
Helper class to help Components define the material properties the Physics may need from the paramete...
static InputParameters validParams()
Helper class to help Components accept boundary condition parameters that the Physics may use to gene...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real volume() const override
Return the component volume.
virtual void checkIntegrity() override
Used for various checks notably:
Helper class to help Components define the initial conditions the Physics may need from the parameter...
CTSub CT_OPERATOR_BINARY CTMul CTCompareLess CTCompareGreater CTCompareEqual _arg template pow< 2 >(tan(_arg))+1.0) *_arg.template D< dtag >()) CT_SIMPLE_UNARY_FUNCTION(sqrt
const Real pi