Skip to content

Commit

Permalink
Assign a protected variable name to the milne extrapolation coefficie…
Browse files Browse the repository at this point in the history
…nt value
  • Loading branch information
smpark7 committed Jun 4, 2024
1 parent 06f7e00 commit 4b53cc3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 6 additions & 1 deletion include/bcs/VacuumConcBC.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ class VacuumConcBC : public IntegratedBC, public ScalarTransportBase
MILNE
};

/// Ratio of u to du/dn
// Ratio of u to du/dn
Real _alpha;

// Milne vacuum boundary extrapolation coefficient
// Derived from the exact analytical solution to the Milne problem. See MooseDocs-based
// documentation for more information.
Real _milne_extrapolation_coefficient = 3 * 0.710446;
};
4 changes: 1 addition & 3 deletions src/bcs/VacuumConcBC.C
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ VacuumConcBC::VacuumConcBC(const InputParameters & parameters)
_alpha = std::sqrt(3.);
break;
case MILNE:
// Derived from the exact analytical solution to the Milne problem. See MooseDocs-based
// documentation for more information.
_alpha = 3 * 0.710446;
_alpha = _milne_extrapolation_coefficient;
break;
}
}
Expand Down

0 comments on commit 4b53cc3

Please sign in to comment.