Skip to content

Commit

Permalink
Apply suggestions from code review ref idaholab#21258
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Giudicelli <guillaume.giudicelli@gmail.com>
  • Loading branch information
2 people authored and crb3874 committed Jun 27, 2022
1 parent 636038d commit 44a1074
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 36 deletions.
@@ -0,0 +1,16 @@
# NearestPointLayeredSideDiffusiveFluxAverage

The domain is virtually divided into a number of layered subdivision according
to the nearest points and the layering direction provided by users. And then
the layered side average diffusive flux is computed for the sides on each
individual subdivision separately.

!syntax description /UserObjects/NearestPointLayeredSideDiffusiveFluxAverage

!syntax parameters /UserObjects/NearestPointLayeredSideDiffusiveFluxAverage

!syntax inputs /UserObjects/NearestPointLayeredSideDiffusiveFluxAverage

!syntax children /UserObjects/NearestPointLayeredSideDiffusiveFluxAverage

!bibtex bibliography

This file was deleted.

Expand Up @@ -21,11 +21,11 @@
* Given a list of points this object computes the layered average flux
* closest to each one of those points.
*/
class NearestPointLayeredSideFluxAverage
class NearestPointLayeredSideDiffusiveFluxAverage
: public NearestPointBase<LayeredSideDiffusiveFluxAverage, SideIntegralVariableUserObject>
{
public:
static InputParameters validParams();

NearestPointLayeredSideFluxAverage(const InputParameters & parameters);
NearestPointLayeredSideDiffusiveFluxAverage(const InputParameters & parameters);
};
Expand Up @@ -7,24 +7,28 @@
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgpl-2.1.html

#include "NearestPointLayeredSideFluxAverage.h"
#include "NearestPointLayeredSideDiffusiveFluxAverage.h"
#include "LayeredSideDiffusiveFluxAverage.h"

registerMooseObject("MooseApp", NearestPointLayeredSideFluxAverage);
registerMooseObject("MooseApp", NearestPointLayeredSideDiffusiveFluxAverage);
registerMooseObjectRenamed("MooseApp",
NearestPointLayeredSideFluxAverage,
"12/31/2022 24:00",
NearestPointLayeredSideDiffusiveFluxAverage);

InputParameters
NearestPointLayeredSideFluxAverage::validParams()
NearestPointLayeredSideDiffusiveFluxAverage::validParams()
{
InputParameters params = NearestPointBase<LayeredSideDiffusiveFluxAverage,
SideIntegralVariableUserObject>::validParams();

params.addClassDescription(
"Compute layered side flux averages for nearest-point based subdomains");
"Compute layered side diffusive flux averages for nearest-point based subdivisions");

return params;
}

NearestPointLayeredSideFluxAverage::NearestPointLayeredSideFluxAverage(
NearestPointLayeredSideDiffusiveFluxAverage::NearestPointLayeredSideDiffusiveFluxAverage(
const InputParameters & parameters)
: NearestPointBase<LayeredSideDiffusiveFluxAverage, SideIntegralVariableUserObject>(parameters)
{
Expand Down
Binary file not shown.
@@ -1,9 +1,9 @@
[Mesh]
type = GeneratedMesh
dim = 3
nx = 40
ny = 10
nz = 10
nx = 10
ny = 4
nz = 4
[]

[Variables]
Expand Down Expand Up @@ -37,7 +37,7 @@

[UserObjects]
[./nplsfa]
type = NearestPointLayeredSideFluxAverage
type = NearestPointLayeredSideDiffusiveFluxAverage
direction = x
points='0.25 0 0.25 0.75 0 0.25 0.25 0 0.75 0.75 0 0.75'
num_layers = 10
Expand Down
@@ -0,0 +1,10 @@
[Tests]
[./test]
type = 'Exodiff'
input = 'nearest_point_layered_side_diffusive_flux_average.i'
exodiff = 'nearest_point_layered_side_diffusive_flux_average_out.e'
requirement = 'The system shall compute layered side averages of the diffusive flux that are computed based on the flux values closest to a list of points'
design = 'NearestPointLayeredSideDiffusiveFluxAverage.md'
issues = '#21258'
[../]
[]
Binary file not shown.

This file was deleted.

0 comments on commit 44a1074

Please sign in to comment.