Last active
August 20, 2019 09:04
-
-
Save cmaurini/217763312575fa2d18a5c80b379f8222 to your computer and use it in GitHub Desktop.
basic fenics import for notebooks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dolfin | |
import mshr | |
import numpy as np | |
import matplotlib.pyplot as plt | |
dolfin.parameters["form_compiler"]["cpp_optimize"] = True | |
dolfin.parameters["form_compiler"]["representation"] = "uflacs" | |
plt.style.use('seaborn-notebook') | |
%matplotlib inline |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment