refactor(poly/coeff): renamed coefficients to be more descriptive

This commit is contained in:
2025-03-05 12:54:47 -05:00
parent 11d41786e0
commit cd6da7065b
2 changed files with 8 additions and 22 deletions

View File

@@ -4,20 +4,15 @@
#include "polyCoeff.h"
namespace polycoeff{
double xi_coeff_func(const mfem::Vector &x)
double nonlinearSourceCoeff(const mfem::Vector &x)
{
return std::pow(x(0), 2);
// double r = x.Norml2();
return 1.0;
}
void vec_xi_coeff_func(const mfem::Vector &x, mfem::Vector &v)
void diffusionCoeff(const mfem::Vector &x, mfem::Vector &v)
{
v.SetSize(1);
v[0] = -std::pow(x(0), 2);
}
double theta_initial_guess(const mfem::Vector &x, double root)
{
double xi = x[0];
return 1 - std::pow(xi / root, 2);
v.SetSize(3);
for (int i = 0; i < 3; i++) { v(i) = -1; }
}
}