feat(poly): lagrangian constrained weak form of 3D lane-Emden

added a basic implimentation of the 3D lane emden equation using a lagrangian multiplier to constrain the value at the center of a spherical domain
This commit is contained in:
2025-02-20 15:28:00 -05:00
parent deab5be0c1
commit 1fd1e624f2
4 changed files with 89 additions and 85 deletions

View File

@@ -8,6 +8,7 @@
#include "meshIO.h"
#include "polyCoeff.h"
#include "polyMFEMUtils.h"
class PolySolver {
@@ -28,8 +29,6 @@ private:
std::unique_ptr<mfem::GridFunction> u;
std::unique_ptr<mfem::Vector> oneVec;
std::unique_ptr<mfem::VectorConstantCoefficient> diffusionCoeff;
std::unique_ptr<mfem::ConstantCoefficient> nonLinearSourceCoeff;
std::unique_ptr<polyMFEMUtils::GaussianCoefficient> gaussianCoeff;
@@ -40,6 +39,7 @@ private:
public:
PolySolver(double n, double order);
~PolySolver();
void solve();
};