feat(probe): vector overload for glVisView

glVisView can now also be called with a vector and finite element space as opposed to just a grid function and mesh
This commit is contained in:
2025-02-28 09:47:15 -05:00
parent 974842c633
commit 83ee05272c
3 changed files with 23 additions and 4 deletions

View File

@@ -32,13 +32,21 @@ namespace Probe {
* @param windowTitle The title of the visualization window.
*/
void glVisView(mfem::GridFunction& u, mfem::Mesh& mesh,
const std::string& windowTitle = "solution");
const std::string& windowTitle = "grid function");
/**
* @brief Visualize a vector using GLVis.
* @param vec The vector to visualize.
* @param mesh The mesh associated with the vector.
* @param windowTitle The title of the visualization window.
*/
void glVisView(mfem::Vector &vec, mfem::FiniteElementSpace &fes,
const std::string &windowTitle = "vector");
double getMeshRadius(mfem::Mesh& mesh);
std::vector<double> getRaySolution(mfem::GridFunction& u, mfem::Mesh& mesh,
const std::vector<double>& rayDirection,
int numSamples);
const std::vector<double>& rayDirection, int numSamples);
/**
* @brief Class to manage logging operations.