implementations.problem_classes.polynomial_test_problem module¶
- class polynomial_testequation(degree=1, seed=26266, useGPU=False)[source]¶
Bases:
ProblemDummy problem for tests only! In particular, the solve_system function just returns the exact solution instead of solving an appropriate system. This class is indented to be used for tests of operations that are exact on polynomials.
- dtype_f¶
alias of
mesh
- dtype_u¶
alias of
mesh
- solve_system(rhs, factor, u0, t)[source]¶
Just return the exact solution…
- Parameters:
- Returns:
me – The solution as mesh.
- Return type:
- u_exact(t, **kwargs)[source]¶
Evaluate the polynomial.
- Parameters:
t (float) – Time of the exact solution.
u_init (pySDC.problem.testequation0d.dtype_u) – Initial solution.
t_init (float) – The initial time.
- Returns:
me – The exact solution.
- Return type:
- xp = <module 'numpy' from '/home/runner/micromamba/envs/pySDC/lib/python3.14/site-packages/numpy/__init__.py'>¶
- class polynomial_testequation_IMEX(degree=1, seed=26266, useGPU=False)[source]¶
Bases:
polynomial_testequationIMEX version of the polynomial test problem that assigns half the derivative to the implicit part and the other half to the explicit part. Keep in mind that you still cannot Really perform any solves.
- dtype_f¶
alias of
imex_mesh