https://mooseframework.inl.gov
ComponentMeshTransformHelper.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 #include "ActionComponent.h"
13 #include "InputParameters.h"
14 #include "MooseTypes.h"
15 
22 {
23 public:
25 
27 
30  {
31  mooseAssert(_direction, "No direction specified");
32  return *_direction;
33  }
37  {
38  mooseAssert(_rotation, "No rotation specified");
39  return *_rotation;
40  }
43  virtual Point translation() const { return _translation; }
44 
45 protected:
46  virtual void addMeshGenerators() override;
47 
49  const RealVectorValue * const _rotation;
51  const RealVectorValue * const _direction;
53  const Point _translation;
54 };
const RealVectorValue *const _direction
Direction vector (easier to conceptualize than rotation)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Point translation() const
Return the translation of the component The default translation is the null vector.
Base class for components that are defined using an action.
Helper class to help Components be located with the orientation and position we want.
const RealVectorValue *const _rotation
Rotation angles.
RealVectorValue direction() const
Return the direction (axis for a cylinder for example) of the component.
const Point _translation
Translation vector.
RealVectorValue rotation() const
Return the XZX angle rotation for the component NOTE: it is often easier to work with the direction i...
ComponentMeshTransformHelper(const InputParameters &params)