6#include <deal.II/base/exceptions.h>
7#include <deal.II/numerics/vector_tools.h>
9#include <boost/geometry/core/cs.hpp>
24#include <prismspf/config.h>
30template <
unsigned int dim,
unsigned int degree,
typename number>
119 if (
solve_context->get_simulation_timer().get_increment() == 0 &&
127 if (
solve_context->get_simulation_timer().get_increment() == 0)
129 solutions.apply_initial_condition_for_old_fields();
157 solutions.prepare_for_solution_transfer();
185 .load_ic_parameters.get_read_initial_conditions_from_file())
199 dealii::VectorTools::interpolate(
215 dealii::VectorTools::interpolate(
224 solutions.apply_initial_condition_for_old_fields();
Class that manages solution initialization and swapping with old solutions.
Definition group_solution_handler.h:72
Function for user-implemented initial conditions. These are only ever calculated for explicit time de...
Definition initial_conditions.h:37
Function for read-in of initial conditions.
Definition initial_conditions.h:69
This class provides context for a solver with ptrs to all the relevant dependencies.
Definition solve_context.h:36
Structure to hold the attributes of a solve-group.
Definition solve_group.h:59
std::set< Types::Index > field_indices
Indices of the fields to be solved in this group.
Definition solve_group.h:98
SolveTiming solve_timing
This is used to determine whether to initialize the solution vector with the initial conditions or ju...
Definition solve_group.h:93
Definition solver_base.h:32
void execute_solution_transfer()
Execute solution transfer (for AMR).
Definition solver_base.h:164
void set_initial_condition()
Set the initial conditions.
Definition solver_base.h:180
virtual void reinit()
Reinitialize the solution vectors & apply constraints.
Definition solver_base.h:98
virtual void update()
Update the fields.
Definition solver_base.h:137
std::vector< SolverBase< dim, degree, number > * > aux_solvers
Definition solver_base.h:271
const GroupSolutionHandler< dim, number > & get_solution_manager() const
Get the solution handler.
Definition solver_base.h:232
virtual void solve()
Solve for a single update step.
Definition solver_base.h:117
virtual void print()
Print information about the solver to summary.log.
Definition solver_base.h:173
SolveGroup solve_group
Information about the solve group this handler is responsible for.
Definition solver_base.h:259
void prepare_for_solution_transfer()
Prepare for solution transfer (for AMR).
Definition solver_base.h:155
virtual ~SolverBase()=default
Destructor.
SolverBase(const SolverBase &solver_base)=delete
Copy constructor.
SolverBase(SolverBase &&solver_base) noexcept=delete
Move constructor.
const SolveGroup & get_solve_group() const
Get the solver context.
Definition solver_base.h:250
virtual void init(const std::list< DependencyMap > &all_dependeny_sets)
Initialize the solver.
Definition solver_base.h:83
SolverBase & operator=(SolverBase &&solver_base) noexcept=delete
Move assignment.
GroupSolutionHandler< dim, number > solutions
Solution vectors for fields handled by this solver.
Definition solver_base.h:269
const SolveContext< dim, degree, number > * solve_context
Solver context provides access to external information.
Definition solver_base.h:264
virtual void solve_level(unsigned int relative_level=0)
Solve one level.
Definition solver_base.h:110
SolverBase(SolveGroup _solve_group, const SolveContext< dim, degree, number > &_solve_context)
Constructor.
Definition solver_base.h:37
SolverBase & operator=(const SolverBase &solver_base)=delete
Copy assignment.
virtual void update_ghosts()
Update the ghosts.
Definition solver_base.h:146
GroupSolutionHandler< dim, number > & get_solution_manager()
Get the solution handler.
Definition solver_base.h:241
This is the main class that handles the construction and solving of user-specified PDEs.
Definition system_wide.h:24
@ Value
Use value of the variable as a criterion for refinement.
Definition grid_refiner_criterion.h:31
Definition conditional_ostreams.cc:20
Definition vectorized_operations.h:17
@ Primary
Definition solve_group.h:31
Information about what fields need to be held onto. This will likely get refactored to be an oldest a...
Definition dependency_extents.h:31