https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
23class CylinderComponent : public virtual ActionComponent,
29{
30public:
32 CylinderComponent(const InputParameters & params);
33
34protected:
35 virtual void addMeshGenerators() override;
36 virtual void setupComponent() override;
37 virtual void checkIntegrity() override;
38
40 const Real _radius;
42 const Real _height;
45
46 virtual Real volume() const override { return _height * libMesh::pi * Utility::pow<2>(_radius); }
47 virtual Real outerSurfaceArea() const override
48 {
49 return 2 * libMesh::pi * (Utility::pow<2>(_radius) + _radius * _height);
50 }
51 virtual Point translation() const override;
52};
Base class for components that are defined using an action.
Helper class to help Components accept boundary condition parameters that the Physics may use to gene...
Helper class to help Components define the initial conditions the Physics may need from the parameter...
Helper class to help Components define the material properties the Physics may need from the paramete...
Helper class to help Components be located with the orientation and position we want.
Helper class to help creating an entire physics Note: Trying out virtual inheritance.
Cylinder on which one can define a Physics.
const Real _radius
Radius of the cylinder.
const Real _height
Height of the cylinder.
virtual Real outerSurfaceArea() const override
Return the component outer boundary area.
virtual Point translation() const override
Return the translation of the component The default translation is the null vector.
virtual void setupComponent() override
virtual void checkIntegrity() override
Used for various checks notably:
static InputParameters validParams()
const bool _offset_position_to_center
Whether to center the cylinder.
virtual Real volume() const override
Return the component volume.
virtual void addMeshGenerators() override
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const Real pi