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