SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
serif::probe Namespace Reference

The Probe namespace contains utility functions for debugging and logging. More...

Classes

class  LogManager
 Class to manage logging operations. More...
 

Functions

void pause ()
 Pause the execution and wait for user input.
 
void wait (int seconds)
 Wait for a specified number of seconds.
 
void glVisView (mfem::GridFunction &u, mfem::Mesh &mesh, const std::string &windowTitle="grid function", const std::string &keyset="")
 Visualize a solution using GLVis.
 
void glVisView (mfem::Vector &vec, mfem::FiniteElementSpace &fes, const std::string &windowTitle="vector", const std::string &keyset="")
 Visualize a vector using GLVis.
 
double getMeshRadius (mfem::Mesh &mesh)
 
std::pair< std::vector< double >, std::vector< double > > getRaySolution (mfem::GridFunction &u, mfem::Mesh &mesh, const std::vector< double > &rayDirection, int numSamples, std::string filename)
 
std::pair< std::vector< double >, std::vector< double > > getRaySolution (mfem::Vector &vec, mfem::FiniteElementSpace &fes, const std::vector< double > &rayDirection, int numSamples, std::string filename)
 

Detailed Description

The Probe namespace contains utility functions for debugging and logging.

Function Documentation

◆ getMeshRadius()

double serif::probe::getMeshRadius ( mfem::Mesh & mesh)

Definition at line 91 of file probe.cpp.

◆ getRaySolution() [1/2]

std::pair< std::vector< double >, std::vector< double > > serif::probe::getRaySolution ( mfem::GridFunction & u,
mfem::Mesh & mesh,
const std::vector< double > & rayDirection,
int numSamples,
std::string filename )

Definition at line 108 of file probe.cpp.

◆ getRaySolution() [2/2]

std::pair< std::vector< double >, std::vector< double > > serif::probe::getRaySolution ( mfem::Vector & vec,
mfem::FiniteElementSpace & fes,
const std::vector< double > & rayDirection,
int numSamples,
std::string filename )

Definition at line 196 of file probe.cpp.

◆ glVisView() [1/2]

void serif::probe::glVisView ( mfem::GridFunction & u,
mfem::Mesh & mesh,
const std::string & windowTitle = "grid function",
const std::string & keyset = "" )

Visualize a solution using GLVis.

Parameters
uThe GridFunction to visualize.
meshThe mesh associated with the GridFunction.
windowTitleThe title of the visualization window.
keysetThe keyset to use for visualization.

Definition at line 57 of file probe.cpp.

◆ glVisView() [2/2]

void serif::probe::glVisView ( mfem::Vector & vec,
mfem::FiniteElementSpace & fes,
const std::string & windowTitle = "vector",
const std::string & keyset = "" )

Visualize a vector using GLVis.

Parameters
vecThe vector to visualize.
meshThe mesh associated with the vector.
windowTitleThe title of the visualization window.
keysetThe keyset to use for visualization.

Definition at line 82 of file probe.cpp.

◆ pause()

void serif::probe::pause ( )

Pause the execution and wait for user input.

Definition at line 47 of file probe.cpp.

◆ wait()

void serif::probe::wait ( int seconds)

Wait for a specified number of seconds.

Parameters
secondsThe number of seconds to wait.

Definition at line 53 of file probe.cpp.