https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
22public:
24
26
36 virtual EulerAngles getBlockOrientation(SubdomainID block) const;
37
41 virtual void initialize() override;
42
46 virtual void finalize() override {};
47
48protected:
49 // This map will hold our averages for each block
50 std::map<SubdomainID, EulerAngles> _block_ea_values;
51};
Computes the average value of a variable on each block.
virtual void finalize() override
Called once after execute has been called on all "objects".
virtual EulerAngles getBlockOrientation(SubdomainID block) const
Given a block ID return the block orientation of that block.
virtual void initialize() override
This is called before execute so you can reset any internal data.
std::map< SubdomainID, EulerAngles > _block_ea_values
Euler angle triplet.
Definition EulerAngles.h:25
const InputParameters & parameters() const