Skip to content

Commit

Permalink
Rename PPs Ref idaholab#29513
Browse files Browse the repository at this point in the history
  • Loading branch information
kyriv1980 committed Nov 13, 2024
1 parent dcad07e commit be0bf71
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 41 deletions.
20 changes: 0 additions & 20 deletions modules/subchannel/doc/content/source/postprocessors/PlanarMean.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# SCMPlanarMean

!syntax description /Postprocessors/SCMPlanarMean

## Overview

<!-- -->

This is a postprocessor that calculates a mass-flow-rate-averaged mean value of a user specified [!param](/Postprocessors/SCMPlanarMean/variable) over all subchannels
at a user specified [!param](/Postprocessors/SCMPlanarMean/height).

## Example Input File Syntax

!listing /test/tests/problems/psbt/psbt.i block=Postprocessors language=cpp

!syntax parameters /Postprocessors/SCMPlanarMean

!syntax inputs /Postprocessors/SCMPlanarMean

!syntax children /Postprocessors/SCMPlanarMean
4 changes: 2 additions & 2 deletions modules/subchannel/examples/ORNL_19/ORNL_19.i
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,14 @@ P_out = 2.0e5 # Pa
[]

[Pin_Planar_Mean]
type = PlanarMean
type = SCMPlanarMean
variable = P
execute_on = 'TIMESTEP_END'
height = 0.0
[]

[Pout_Planar_Mean]
type = PlanarMean
type = SCMPlanarMean
variable = P
execute_on = 'TIMESTEP_END'
height = 1.2
Expand Down
6 changes: 3 additions & 3 deletions modules/subchannel/examples/TAMU/TAMU_61.i
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ P_out = 2.0e5 # Pa
[]

[Pin_Planar_Mean]
type = PlanarMean
type = SCMPlanarMean
variable = P
execute_on = 'TIMESTEP_END'
height = 0.0
[]

[Pout_Planar_Mean]
type = PlanarMean
type = SCMPlanarMean
variable = P
execute_on = 'TIMESTEP_END'
height = 2.0
Expand All @@ -199,7 +199,7 @@ P_out = 2.0e5 # Pa

### Assembly inlet density
[rho_in]
type = PlanarMean
type = SCMPlanarMean
variable = rho
execute_on = 'TIMESTEP_END'
height = 0.0
Expand Down
4 changes: 2 additions & 2 deletions modules/subchannel/examples/areva_FCTF/deformed_duct_pp.i
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
[]
########### Planar mean of temperature at plane B
[Temp_B]
type = PlanarMean
type = SCMPlanarMean
variable = T
execute_on = 'TIMESTEP_END'
height = 2.3987595
Expand Down Expand Up @@ -424,7 +424,7 @@
# []
# ########### Planar mean of temperature at plane C
# [Temp_C]
# type = PlanarMean
# type = SCMPlanarMean
# variable = T
# execute_on = 'TIMESTEP_END'
# height = 3.06375
Expand Down
4 changes: 2 additions & 2 deletions modules/subchannel/examples/areva_FCTF/non_deformed_duct_pp.i
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@
[]
########### Planar mean of temperature at plane B
[Temp_B]
type = PlanarMean
type = SCMPlanarMean
variable = T
execute_on = 'TIMESTEP_END'
height = 2.3987595
Expand Down Expand Up @@ -432,7 +432,7 @@
# []
# ########### Planar mean of temperature at plane C
# [Temp_C]
# type = PlanarMean
# type = SCMPlanarMean
# variable = T
# execute_on = 'TIMESTEP_END'
# height = 3.06375
Expand Down
4 changes: 2 additions & 2 deletions modules/subchannel/examples/psbt/psbt_ss/psbt_with_pin.i
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,14 @@ P_out = 4.923e6 # Pa

[Postprocessors]
[Pin_Planar_Mean]
type = PlanarMean
type = SCMPlanarMean
variable = P
execute_on = 'TIMESTEP_END'
height = 0.0
[]

[Pout_Planar_Mean]
type = PlanarMean
type = SCMPlanarMean
variable = P
execute_on = 'TIMESTEP_END'
height = 1.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
/**
* Calculates an overall Delta of a chosen variable for the subchannel assembly
*/
class PlanarMean : public GeneralPostprocessor
class SCMPlanarMean : public GeneralPostprocessor
{
public:
static InputParameters validParams();
PlanarMean(const InputParameters & params);
SCMPlanarMean(const InputParameters & params);
virtual void initialize() override {}
virtual void execute() override;
virtual void finalize() override {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/* See COPYRIGHT for full restrictions */
/********************************************************************/

#include "PlanarMean.h"
#include "SCMPlanarMean.h"
#include "SolutionHandle.h"
#include "FEProblemBase.h"
#include "Function.h"
Expand All @@ -21,10 +21,10 @@
#include "SubProblem.h"
#include "libmesh/system.h"

registerMooseObject("SubChannelApp", PlanarMean);
registerMooseObject("SubChannelApp", SCMPlanarMean);

InputParameters
PlanarMean::validParams()
SCMPlanarMean::validParams()
{
InputParameters params = GeneralPostprocessor::validParams();
params.addClassDescription("Calculates an overall mass-flow-rate averaged mean of the chosen "
Expand All @@ -34,7 +34,7 @@ PlanarMean::validParams()
return params;
}

PlanarMean::PlanarMean(const InputParameters & parameters)
SCMPlanarMean::SCMPlanarMean(const InputParameters & parameters)
: GeneralPostprocessor(parameters),
_mesh(libMesh::cast_ref<SubChannelMesh &>(_fe_problem.mesh())),
_variable(getParam<AuxVariableName>("variable")),
Expand All @@ -44,7 +44,7 @@ PlanarMean::PlanarMean(const InputParameters & parameters)
}

void
PlanarMean::execute()
SCMPlanarMean::execute()
{
auto nz = _mesh.getNumOfAxialCells();
auto n_channels = _mesh.getNumOfChannels();
Expand Down Expand Up @@ -94,7 +94,7 @@ PlanarMean::execute()
}

Real
PlanarMean::getValue() const
SCMPlanarMean::getValue() const
{
return _mean_value;
}
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ P_out = 2.0e5 # Pa

[Postprocessors]
[Temp_B]
type = PlanarMean
type = SCMPlanarMean
variable = T
execute_on = 'TIMESTEP_END'
height = 0.5
Expand Down
2 changes: 1 addition & 1 deletion modules/subchannel/test/tests/problems/psbt/psbt.i
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ pin_diameter = 0.00950
[]

[Mean_Temp_Out]
type = PlanarMean
type = SCMPlanarMean
variable = T
height = 1.2
[]
Expand Down

0 comments on commit be0bf71

Please sign in to comment.