Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SymPy for preprocessing examples #118

Closed
gdmcbain opened this issue Jan 30, 2019 · 1 comment
Closed

SymPy for preprocessing examples #118

gdmcbain opened this issue Jan 30, 2019 · 1 comment

Comments

@gdmcbain
Copy link
Contributor

While dependence on SymPy was dropped in #37 for computing basis functions, it might be useful for preprocessing certain examples. It would not then be a dependence for the scikit-fem package, just for the examples.

One is suggested by the FEniCS tutorial example ft05_nonlinear_poisson.py. The example is basically like docs/examples/ex10.py, except that it adds an artificial right-hand side to balance the equation for a specified solution; i.e. it uses the method of manufactured solutions. That right-hand side is computed from the stipulated exact solution using SymPy.

A translation of the FEniCS example into scikit-fem is at https://github.com/gdmcbain/fenics-tuto-in-skfem/tree/master/05_poisson_nonlinear. It goes beyond the original in using:

There are a few examples (ex12, ex13, ex14, ex16, ex17, ex18, ex19, ex20) which involve exact solutions; I wonder whether it would be worth modifying one or more of them to use SymPy to compute the exact solution to show how it's done here.

@gdmcbain
Copy link
Contributor Author

gdmcbain commented Jun 4, 2019

According to Cellier & Ruyer-Quil (2019), Scikit-FDiff uses SymPy to allow ‘easy and automated finite difference discretization’; might be worth a look for inspiration or comparison.

  • Cellier, N. & Ruyer-Quil, C. (2019). scikit-finite-diff, a new tool for PDE solving. Journal of Open Source Software, 4, 1356. doi:10.21105/joss.01356

Repository owner locked and limited conversation to collaborators Aug 30, 2021
@kinnala kinnala closed this as completed Aug 30, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants