SERiF 0.0.1a
3+1D Stellar Structure and Evolution
|
Functions | |
mfem::SparseMatrix | build_reduced_matrix (const mfem::SparseMatrix &matrix, const mfem::Array< int > &trialEssentialDofs, const mfem::Array< int > &testEssentialDofs) |
mfem::Vector | build_dof_identification_vector (const mfem::Array< int > &allDofs, const::mfem::Array< int > &highlightDofs) |
Generate a vector of 1s and 0s where 1 elemetns cooresponds to queried dofs. Useful for degugging. | |
mfem::GridFunction | compute_curl (mfem::GridFunction &phi_gf) |
Computes the curl of a given H(div) grid function (e.g., from an RT space). | |
mfem::Vector serif::utilities::build_dof_identification_vector | ( | const mfem::Array< int > & | allDofs, |
const::mfem::Array< int > & | highlightDofs ) |
Generate a vector of 1s and 0s where 1 elemetns cooresponds to queried dofs. Useful for degugging.
allDofs | array, counding from 0, of all dofs in the system |
highlightDofs | the dofs that you want to identify |
Example Usage: One could use this to identify, for example, which dofs are being identified as the central dofs
Definition at line 98 of file utilities.cpp.
|
nodiscard |
Definition at line 6 of file utilities.cpp.
mfem::GridFunction serif::utilities::compute_curl | ( | mfem::GridFunction & | phi_gf | ) |
Computes the curl of a given H(div) grid function (e.g., from an RT space).
This function is crucial for diagnosing spurious, non-physical modes in mixed FEM formulations where the curl of a gradient field is expected to be zero.
phi_gf | The GridFunction representing the vector field (e.g., φ). It is expected to be in an H(div)-conforming space like Raviart-Thomas (RT). |
Definition at line 105 of file utilities.cpp.