![]() |
PRISMS-PF Manual v3.0-pre
|
Base class for explicit solves. More...
#include <explicit_base.h>
Public Types | |
using | SystemMatrixType = customPDE< dim, degree, double > |
Public Member Functions | |
explicitBase (const userInputParameters< dim > &_user_inputs, const matrixfreeHandler< dim > &_matrix_free_handler, const invmHandler< dim, degree > &_invm_handler, const constraintHandler< dim > &_constraint_handler, const dofHandler< dim > &_dof_handler, const dealii::MappingQ1< dim > &_mapping, solutionHandler< dim > &_solution_handler) | |
Constructor. | |
~explicitBase ()=default | |
Destructor. | |
virtual void | init ()=0 |
Initialize system. | |
virtual void | solve ()=0 |
Solve a single update step. | |
Protected Member Functions | |
void | compute_subset_attributes (const fieldSolveType &field_solve_type) |
Compute the subset of variableAttributes that belongs to a given fieldSolveType. This function should only be used for concurrent fieldSolveTypes, such as EXPLICIT, NONEXPLICIT_CO_NONLINEAR, and EXPLICIT_POSTPROCESS. | |
void | compute_shared_dependencies () |
Compute the shared dependency set and copy it to all eval_flag_set_RHS. Also do something similar with dependency_set_RHS so that all the FEEvaluation objects are initialized. | |
void | set_initial_condition () |
Set the initial condition according to subset_attributes. | |
void | print () |
Print dependency_set_RHS to summary.log. | |
Protected Attributes | |
const userInputParameters< dim > & | user_inputs |
User-inputs. | |
const matrixfreeHandler< dim > & | matrix_free_handler |
Matrix-free object handler for non-multigrid data. | |
const invmHandler< dim, degree > & | invm_handler |
invm handler. | |
const constraintHandler< dim > & | constraint_handler |
Constraint handler. | |
const dofHandler< dim > & | dof_handler |
DoF handler. | |
const dealii::MappingQ1< dim > & | mapping |
Mappings to and from reference cell. | |
solutionHandler< dim > & | solution_handler |
Solution handler. | |
std::map< unsigned int, variableAttributes > | subset_attributes |
Subset of variable attributes. | |
std::unique_ptr< SystemMatrixType > | system_matrix |
PDE operator. | |
Base class for explicit solves.
|
pure virtual |
Initialize system.
Implemented in explicitConstantSolver< dim, degree >, explicitPostprocessSolver< dim, degree >, and explicitSolver< dim, degree >.
|
pure virtual |
Solve a single update step.
Implemented in explicitConstantSolver< dim, degree >, explicitPostprocessSolver< dim, degree >, and explicitSolver< dim, degree >.