fix(poly): phi boundary values now coorespond to theta flux through polytrope surface

This commit is contained in:
2025-04-25 10:32:06 -04:00
parent 58840d82cd
commit 2acc037111
7 changed files with 146 additions and 94 deletions

View File

@@ -97,6 +97,8 @@ namespace polyMFEMUtils {
}
// Calculate the Jacobian
// TODO: Check for when theta ~ 0?
const double u_safe = std::max(u_val, 0.0);
const double d_u_nl = m_polytropicIndex * std::pow(u_safe, m_polytropicIndex - 1);
const double x2_d_u_nl = d_u_nl;