https://mooseframework.inl.gov
ReporterPointMarker.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 "Marker.h"
13 #include "ReporterInterface.h"
14 
19 {
20 public:
23  virtual void markerSetup() override;
24 
25 protected:
26  virtual MarkerValue computeElementMarker() override;
27 
33  const std::vector<Real> & _x_coord;
35  const std::vector<Real> & _y_coord;
37  const std::vector<Real> & _z_coord;
39  std::unique_ptr<libMesh::PointLocatorBase> _pl;
41  std::set<dof_id_type> _point_elems;
42 };
std::unique_ptr< libMesh::PointLocatorBase > _pl
Pointer to PointLocatorBase object.
Definition: Marker.h:41
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const MarkerValue _inside
marker value to give elements containing a point
MarkerValue
This mirrors the main refinement flag values in libMesh in Elem::RefinementState but adds "dont_mark"...
Definition: Marker.h:59
const std::vector< Real > & _z_coord
z coordinate
const std::vector< Real > & _y_coord
y coordinate
virtual void markerSetup() override
Is called before any element looping is started so any "global" computation can be done...
static InputParameters validParams()
const MarkerValue _empty
marker for elements not containing points
Interface to allow object to consume Reporter values.
const std::vector< Real > & _x_coord
x coordinate
std::set< dof_id_type > _point_elems
list of sort uniqued elements containing points
Marks all elements as inside/empty if they do/don&#39;t contain a point.
virtual MarkerValue computeElementMarker() override
const InputParameters & parameters() const
Get the parameters of the object.
ReporterPointMarker(const InputParameters &parameters)