fe_utils.solvers package¶
Submodules¶
fe_utils.solvers.helmholtz module¶
Solve a model helmholtz problem using the finite element method. If run as a script, the result is plotted. This file can also be imported as a module and convergence tests run on the solver.
fe_utils.solvers.mastery module¶
Solve a nonlinear problem using the finite element method. If run as a script, the result is plotted. This file can also be imported as a module and convergence tests run on the solver.
- fe_utils.solvers.mastery.solve_mastery(resolution, analytic=False, return_error=False)[source]¶
This function should solve the mastery problem with the given resolution. It should return both the solution
Function
and the \(L^2\) error in the solution.If
analytic
isTrue
then it should not solve the equation but instead return the analytic solution. Ifreturn_error
is true then the difference between the analytic solution and the numerical solution should be returned in place of the solution.
fe_utils.solvers.poisson module¶
Solve a model poisson problem with Dirichlet boundary conditions using the finite element method.
If run as a script, the result is plotted. This file can also be imported as a module and convergence tests run on the solver.
- fe_utils.solvers.poisson.assemble(fs, f)[source]¶
Assemble the finite element system for the Poisson problem given the function space in which to solve and the right hand side function.