https://mooseframework.inl.gov
Namespaces | Functions
SegregatedSolverUtils.h File Reference

Go to the source code of this file.

Namespaces

 NS
 
 NS::FV
 

Functions

void NS::FV::relaxMatrix (SparseMatrix< Number > &matrix_in, const Real relaxation_parameter, NumericVector< Number > &diff_diagonal)
 Relax the matrix to ensure diagonal dominance, we hold onto the difference in diagonals for later use in relaxing the right hand side. More...
 
void NS::FV::relaxRightHandSide (NumericVector< Number > &rhs_in, const NumericVector< Number > &solution_in, const NumericVector< Number > &diff_diagonal)
 Relax the right hand side of an equation, this needs to be called once and the system matrix has been relaxed and the field describing the difference in the diagonals of the system matrix is already available. More...
 
void NS::FV::relaxSolutionUpdate (NumericVector< Number > &vec_new, const NumericVector< Number > &vec_old, const Real relaxation_factor)
 Relax the update on a solution field using the following approach: $u = u_{old}+ (u - u_{old})$. More...
 
void NS::FV::limitSolutionUpdate (NumericVector< Number > &solution, const Real min_limit=std::numeric_limits< Real >::epsilon(), const Real max_limit=1e10)
 Limit a solution to its minimum and maximum bounds: $u = min(max(u, min_limit), max_limit)$. More...
 
Real NS::FV::computeNormalizationFactor (const NumericVector< Number > &solution, const SparseMatrix< Number > &mat, const NumericVector< Number > &rhs)
 Compute a normalization factor which is applied to the linear residual to determine convergence. More...
 
void NS::FV::constrainSystem (SparseMatrix< Number > &mx, NumericVector< Number > &rhs, const Real desired_value, const dof_id_type dof_id)
 Implicitly constrain the system by adding a factor*(u-u_desired) to it at a desired dof value. More...
 
dof_id_type NS::FV::findPointDoFID (const MooseVariableFieldBase &variable, const MooseMesh &mesh, const Point &point)
 Find the ID of the degree of freedom which corresponds to the variable and a given point on the mesh. More...
 
bool NS::FV::converged (const std::vector< std::pair< unsigned int, Real >> &residuals, const std::vector< Real > &abs_tolerances)
 Based on the residuals, determine if the iterative process converged or not. More...