forked from idaholab/moose
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added NearestPointLayeredSideIntegralFunctor
Refs idaholab#25106
- Loading branch information
1 parent
0e4560b
commit 8185173
Showing
7 changed files
with
968 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
framework/doc/content/source/userobjects/NearestPointLayeredSideIntegralFunctor.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# NearestPointLayeredSideIntegralFunctor | ||
|
||
This object is the same as [NearestPointLayeredSideIntegral.md], but the layered integral may be taken | ||
of any [functor](Functors/index.md), not just a variable. | ||
|
||
!alert note title=Functor requirements | ||
This object requires the `ElemSideQpArg` [functor spatial argument](Functors/index.md) to be | ||
implemented for the [!param](/UserObjects/NearestPointLayeredSideIntegralFunctor/functor) parameter. | ||
|
||
!syntax parameters /UserObjects/NearestPointLayeredSideIntegralFunctor | ||
|
||
!syntax inputs /UserObjects/NearestPointLayeredSideIntegralFunctor | ||
|
||
!syntax children /UserObjects/NearestPointLayeredSideIntegralFunctor |
26 changes: 26 additions & 0 deletions
26
framework/include/userobjects/NearestPointLayeredSideIntegralFunctor.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#pragma once | ||
|
||
#include "SideIntegralFunctorUserObject.h" | ||
#include "NearestPointBase.h" | ||
#include "LayeredSideAverageFunctor.h" | ||
|
||
/** | ||
* Computes layered side integrals of a functor nearest to a set of points. | ||
*/ | ||
class NearestPointLayeredSideIntegralFunctor | ||
: public NearestPointBase<LayeredSideIntegralFunctor, SideIntegralFunctorUserObject> | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
NearestPointLayeredSideIntegralFunctor(const InputParameters & parameters); | ||
}; |
30 changes: 30 additions & 0 deletions
30
framework/src/userobjects/NearestPointLayeredSideIntegralFunctor.C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#include "NearestPointLayeredSideIntegralFunctor.h" | ||
|
||
registerMooseObject("MooseApp", NearestPointLayeredSideIntegralFunctor); | ||
|
||
InputParameters | ||
NearestPointLayeredSideIntegralFunctor::validParams() | ||
{ | ||
InputParameters params = | ||
NearestPointBase<LayeredSideIntegralFunctor, SideIntegralFunctorUserObject>::validParams(); | ||
|
||
params.addClassDescription( | ||
"Computes layered side integrals of a functor nearest to a set of points."); | ||
|
||
return params; | ||
} | ||
|
||
NearestPointLayeredSideIntegralFunctor::NearestPointLayeredSideIntegralFunctor( | ||
const InputParameters & parameters) | ||
: NearestPointBase<LayeredSideIntegralFunctor, SideIntegralFunctorUserObject>(parameters) | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.