https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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"
18
19class AuxiliarySystem;
20
22{
23public:
24 AuxRayKernel(const InputParameters & params);
25
27
28 virtual void onSegment() override = 0;
29
33 void addValue(const Real value);
34
39
40protected:
43
46
47private:
49 static Threads::spin_mutex _add_value_mutex;
50};
static Threads::spin_mutex _add_value_mutex
Spin mutex object for adding values.
static InputParameters validParams()
AuxiliarySystem & _aux
The aux system.
MooseVariableFE< Real > & variable()
Gets the variable this AuxRayKernel contributes to.
void addValue(const Real value)
Use to accumulate a value into the corresponding AuxVariable from this AuxRayKernel.
virtual void onSegment() override=0
Called on each segment of a Ray.
MooseVariableFE< Real > & _var
The AuxVariable this AuxRayKernel contributes to.
virtual const OutputTools< T >::VariableValue & value()
Base object for the RayKernel syntax.