https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GhostingFromUOAux.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 "AuxKernel.h"
13
14#include "libmesh/ghosting_functor.h"
15
17
22{
23public:
25
27
28protected:
29 virtual Real computeValue() override;
30 virtual void precalculateValue() override;
31
33 processor_id_type _pid;
34
37
40
42 Real _value;
43
46
49};
Outputs to an auxiliary variable the ghosting of a GhostingUserObject.
Moose::RelationshipManagerType _rm_type
The type of ghosting functor to get.
static InputParameters validParams()
const GhostingUserObject & _ghost_uo
The reference to the ghosting user object.
virtual void precalculateValue() override
This callback is used for AuxKernelTempls that need to perform a per-element calculation.
bool _include_local
Whether or not to include local elements in the display field.
libMesh::GhostingFunctor::map_type _ghosted_elems
Ghosted elems.
processor_id_type _pid
The PID to show the ghosting for.
virtual Real computeValue() override
Compute and return the value of the aux variable.
Real _value
precalculated element value
This object loops over all of the underlying ghosting functors added by libMesh or MOOSE through Rela...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
std::map< const Elem *, const CouplingMatrix *, CompareDofObjectsByPIDAndThenID > map_type
RelationshipManagerType
Main types of Relationship Managers.