https://mooseframework.inl.gov
ComputeBlockOrientationBase.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "ElementUserObject.h"
13 
14 #include "libmesh/mesh_tools.h"
15 #include "EulerAngles.h"
16 
21 {
22 public:
24 
26 
36  virtual EulerAngles getBlockOrientation(SubdomainID block) const;
37 
41  virtual void initialize() override;
42 
46  virtual void finalize() override {};
47 
48 protected:
49  // This map will hold our averages for each block
50  std::map<SubdomainID, EulerAngles> _block_ea_values;
51 };
std::map< SubdomainID, EulerAngles > _block_ea_values
virtual void finalize() override
Called once after execute has been called on all "objects".
static InputParameters validParams()
const InputParameters & parameters() const
ComputeBlockOrientationBase(const InputParameters &parameters)
Computes the average value of a variable on each block.
virtual void initialize() override
This is called before execute so you can reset any internal data.
Euler angle triplet.
Definition: EulerAngles.h:24
virtual EulerAngles getBlockOrientation(SubdomainID block) const
Given a block ID return the block orientation of that block.