forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create NearestPointLayeredIntegral idaholab#14717
- Loading branch information
1 parent
bdf2a0d
commit 98460e0
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
framework/include/userobject/NearestPointLayeredIntegral.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,37 @@ | ||
//* 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 | ||
|
||
// MOOSE includes | ||
#include "ElementIntegralVariableUserObject.h" | ||
#include "NearestPointBase.h" | ||
#include "LayeredIntegral.h" | ||
|
||
// Forward Declarations | ||
class NearestPointLayeredIntegral; | ||
|
||
template <> | ||
InputParameters validParams<NearestPointLayeredIntegral>(); | ||
|
||
/** | ||
* This UserObject computes integrals of a variable storing partial | ||
* sums for the specified number of intervals in a direction (x,y,z). | ||
* | ||
* Given a list of points this object computes the layered integral | ||
* closest to each one of those points. | ||
*/ | ||
class NearestPointLayeredIntegral | ||
: public NearestPointBase<LayeredIntegral, ElementIntegralVariableUserObject> | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
NearestPointLayeredIntegral(const InputParameters & 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
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 | ||
|
||
// MOOSE includes | ||
#include "NearestPointLayeredIntegral.h" | ||
#include "LayeredIntegral.h" | ||
|
||
registerMooseObject("MooseApp", NearestPointLayeredIntegral); | ||
|
||
defineLegacyParams(NearestPointLayeredIntegral); | ||
|
||
InputParameters | ||
NearestPointLayeredIntegral::validParams() | ||
{ | ||
InputParameters params = | ||
nearestPointBaseValidParams<LayeredIntegral, ElementIntegralVariableUserObject>(); | ||
|
||
return params; | ||
} | ||
|
||
NearestPointLayeredIntegral::NearestPointLayeredIntegral(const InputParameters & parameters) | ||
: NearestPointBase<LayeredIntegral, ElementIntegralVariableUserObject>(parameters) | ||
{ | ||
} |