https://mooseframework.inl.gov
OrientSurfaceMeshGenerator.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 
13 
18 {
19 public:
21 
23 
24  std::unique_ptr<MeshBase> generate() override;
25 
26 protected:
27  // The flipping of normals is an option of the base class
28  void actOnElem(Elem * const /*elem*/,
29  const Point & /*normal*/,
30  const subdomain_id_type & /*sub_id*/,
31  MeshBase & /*mesh*/) override
32  {
33  _num_flipped++;
34  }
35 
36 private:
38  unsigned int _num_flipped;
39 };
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
OrientSurfaceMeshGenerator(const InputParameters &parameters)
void actOnElem(Elem *const, const Point &, const subdomain_id_type &, MeshBase &) override
Action to perform when flooding.
unsigned int _num_flipped
Keeps track of the number of element orientation flips, for output purposes.
This class will re-orient surface elements based on user-specified settings.
std::unique_ptr< MeshBase > generate() override
Generate / modify the mesh.
static InputParameters validParams()