https://mooseframework.inl.gov
AuxRayKernel.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 // Local Includes
13 #include "RayKernelBase.h"
14 
15 // MOOSE includes
16 #include "MooseVariableFE.h"
17 #include "MooseVariableInterface.h"
18 
19 class AuxiliarySystem;
20 
22 {
23 public:
24  AuxRayKernel(const InputParameters & params);
25 
27 
28  virtual void onSegment() override = 0;
29 
33  void addValue(const Real value);
34 
39 
40 protected:
43 
46 
47 private:
49  static Threads::spin_mutex _add_value_mutex;
50 };
void addValue(const Real value)
Use to accumulate a value into the corresponding AuxVariable from this AuxRayKernel.
Definition: AuxRayKernel.C:48
AuxRayKernel(const InputParameters &params)
Definition: AuxRayKernel.C:29
MooseVariableFE< Real > & _var
The AuxVariable this AuxRayKernel contributes to.
Definition: AuxRayKernel.h:45
Base object for the RayKernel syntax.
Definition: RayKernelBase.h:27
static InputParameters validParams()
Definition: AuxRayKernel.C:16
AuxiliarySystem & _aux
The aux system.
Definition: AuxRayKernel.h:42
MooseVariableFE< Real > & variable()
Gets the variable this AuxRayKernel contributes to.
Definition: AuxRayKernel.h:38
virtual const OutputTools< Real >::VariableValue & value()
static Threads::spin_mutex _add_value_mutex
Spin mutex object for adding values.
Definition: AuxRayKernel.h:49
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual void onSegment() override=0
Called on each segment of a Ray.