3from .SolverCodeSnippets
import SolverCodeSnippets
9 Code snippet generator for all fixed time stepping solvers
19 double getTimeStepSize() const;
25double {{FULL_QUALIFIED_NAMESPACE}}::{{CLASSNAME}}::getTimeStepSize() const {
39 const double timeStepSize = repositories::{{SOLVER_INSTANCE}}.getTimeStepSize();
46 This is global, fixed time stepping, i.e. the new time step size will likely
47 be the same as the previous one, unless the mesh changes, as we work with
48 normalised time step sizes, i.e. in this case the time step size might change.
49 Anyway, the new time step size is only for stats anyway, as we'll pick a
50 global one when we determine timeStepSize the next time step.
54 const double newTimeStepSize = repositories::{{SOLVER_INSTANCE}}.getTimeStepSize();
Code snippet generator for all fixed time stepping solvers.
create_abstract_solver_user_declarations(self)
create_abstract_solver_user_definitions(self)
create_abstract_solver_constructor_statements(self)
Interface for all solvers' code snippets.
create_compute_new_time_step_size()
Very similar to create_compute_time_step_size(), this routine should return a code snippet which crea...
create_compute_time_step_size()
Within the actual compute kernels, the kernels ask the solver variant how to determine a new field.