Skip to content

Commit

Permalink
Parameter adjustments for trapping physics
Browse files Browse the repository at this point in the history
  • Loading branch information
GiudGiud committed Aug 19, 2024
1 parent 43dd406 commit 829a3c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/physics/PointTrappingPhysics.C
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ registerMooseAction("TMAP8App", PointTrappingPhysics, "add_bc");
InputParameters
PointTrappingPhysics::validParams()
{
InputParameters params = PhysicsBase::validParams();
InputParameters params = SpeciesTrappingPhysicsBase::validParams();
params.addClassDescription("Add Physics for the trapping of species on enclosures / 0D components.");

params.addRequiredParam<std::vector<std::vector<Real>>>(
Expand Down Expand Up @@ -69,7 +69,7 @@ PointTrappingPhysics::addComponent(const ComponentAction & component)
checkComponentType<Enclosure0D>(component);
const auto & comp = dynamic_cast<const Enclosure0D &>(component);

// This must be added
// Keep track of the names of the components
_components.push_back(comp.name());
if (isParamSetByUser("components"))
paramError("components",
Expand All @@ -95,7 +95,7 @@ PointTrappingPhysics::addComponent(const ComponentAction & component)
true,
std::vector<Real>(0, n_species_component));
processComponentParameters<MooseFunctorName>(
"temperatures", comp.name(), _component_temperatures, std::to_string(comp.temperature()), false, 0);
"temperatures", comp.name(), _component_temperatures, std::to_string(comp.temperature()), false, "0");

// TODO: check that inputs are consistent once all components have been added.
// - the pressure, temperature and the scaling factors should be positive (defense in depth from
Expand Down
2 changes: 1 addition & 1 deletion src/physics/SpeciesTrappingPhysicsBase.C
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ SpeciesTrappingPhysicsBase::validParams()
{},
"Initial values for each species equation on each component. If a single vector is "
"specified, the same initial conditions will be used on every component");
params.addParam<std::vector<MooseFunctorName>>("temperatures", "Temperatures for each enclosure component");
params.addParam<std::vector<MooseFunctorName>>("temperatures", {}, "Temperatures for each enclosure component");
return params;
}

Expand Down

0 comments on commit 829a3c1

Please sign in to comment.