Skip to content

Commit

Permalink
Remove unused parameters from all fluid properties
Browse files Browse the repository at this point in the history
Improve parameter groups for SIMPLE
refs #29609
  • Loading branch information
GiudGiud committed Dec 25, 2024
1 parent 769d8fc commit 61c0820
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
10 changes: 10 additions & 0 deletions modules/fluid_properties/src/fluidproperties/FluidProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ FluidProperties::validParams()
params.set<std::string>("fp_type") = "unspecified-type";
params.addParamNamesToGroup("fp_type allow_imperfect_jacobians", "Advanced");
params.registerBase("FluidProperties");

// Suppress unused parameters
params.suppressParameter<bool>("use_displaced_mesh");
params.suppressParameter<ExecFlagEnum>("execute_on");
params.suppressParameter<bool>("allow_duplicate_execution_on_initial");
params.suppressParameter<bool>("force_preic");
params.suppressParameter<bool>("force_preaux");
params.suppressParameter<bool>("force_postaux");
params.suppressParameter<int>("execution_order_group");

return params;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ IdealRealGasMixtureFluidProperties::validParams()
"fp_secondary", "Name of fluid properties user object(s) for secondary vapor component(s)");
params.addParam<Real>("_T_mix_max", 1300., "Maximum temperature of the mixture");

// This is necessary because initialize() must be called before any interface
// can be used (which can occur as early as initialization of variables).
params.set<ExecFlagEnum>("execute_on") = EXEC_INITIAL;

return params;
}

Expand Down
4 changes: 2 additions & 2 deletions modules/navier_stokes/src/executioners/SIMPLESolveBase.C
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ SIMPLESolveBase::validParams()
params.addParamNamesToGroup(
"momentum_equation_relaxation momentum_petsc_options momentum_petsc_options_iname "
"momentum_petsc_options_value momentum_petsc_options_value momentum_absolute_tolerance "
"momentum_l_tol momentum_l_abs_tol momentum_l_max_its",
"momentum_l_tol momentum_l_abs_tol momentum_l_max_its momentum_systems",
"Momentum Equation");

/*
Expand Down Expand Up @@ -121,7 +121,7 @@ SIMPLESolveBase::validParams()
params.addParamNamesToGroup(
"pressure_variable_relaxation pressure_petsc_options pressure_petsc_options_iname "
"pressure_petsc_options_value pressure_petsc_options_value pressure_absolute_tolerance "
"pressure_l_tol pressure_l_abs_tol pressure_l_max_its",
"pressure_l_tol pressure_l_abs_tol pressure_l_max_its pressure_system",
"Pressure Equation");

/*
Expand Down
11 changes: 11 additions & 0 deletions modules/solid_properties/src/solidproperties/SolidProperties.C
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
//* https://www.gnu.org/licenses/lgpl-2.1.html

#include "SolidProperties.h"
#include "MooseObject.h"

InputParameters
SolidProperties::validParams()
Expand All @@ -18,6 +19,16 @@ SolidProperties::validParams()
false,
"true to allow unimplemented property derivative terms to be set to zero for the AD API");
params.registerBase("SolidProperties");

// Suppress unused parameters
params.suppressParameter<bool>("use_displaced_mesh");
params.suppressParameter<ExecFlagEnum>("execute_on");
params.suppressParameter<bool>("allow_duplicate_execution_on_initial");
params.suppressParameter<bool>("force_preic");
params.suppressParameter<bool>("force_preaux");
params.suppressParameter<bool>("force_postaux");
params.suppressParameter<int>("execution_order_group");

return params;
}

Expand Down

0 comments on commit 61c0820

Please sign in to comment.