Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| from __future__ import print_function | |
| from bempp.lib import * | |
| import numpy as np | |
| def eval_neumann_data(point, normal, k): | |
| x, y, z = point | |
| r = np.sqrt(x**2 + y**2 + z**2) | |
| rho = np.sqrt(x**2 + y**2) | |
| # sintheta = rho/r |
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 os | |
| import sys | |
| import pickle | |
| import numpy as np | |
| import scipy | |
| import scipy.special | |
| legendre = scipy.special.eval_legendre |
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 os | |
| import sys | |
| import numpy as np | |
| import scipy | |
| import scipy.special | |
| legendre = scipy.special.eval_legendre | |
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
| #!/usr/bin/env python | |
| from collections import OrderedDict | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from mpl_toolkits.axes_grid1 import make_axes_locatable | |
| from matplotlib.table import table | |
| fig = plt.figure() |
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
| #!/usr/bin/env python | |
| from collections import OrderedDict | |
| import matplotlib.pyplot as plt | |
| import numpy as np | |
| from mpl_toolkits.axes_grid1 import make_axes_locatable | |
| from matplotlib.table import table | |
| fig = plt.figure() |
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
| """colorized unittest output | |
| taken from https://github.com/stevematney/redgreenunittests | |
| """ | |
| import sys | |
| from pygments import highlight | |
| from pygments.lexers import PythonTracebackLexer | |
| from pygments.formatters import TerminalFormatter |