In [1]:
# !/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 20180410
@author: zhangji
"""
%pylab inline
pylab.rcParams['figure.figsize'] = (18.5, 10.5)
fontsize = 40
import os
import importlib
import numpy as np
import scipy as sp
import pandas as pd
import re
from scanf import scanf
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import axes3d, Axes3D
from scipy.interpolate import interp1d
from IPython.display import display, HTML
from scipy import interpolate, integrate, optimize
from codeStore import support_fun as spf
from src import slenderBodyTheory as slb
from src import stokesletsInPipe as stlpp
from tqdm.notebook import tqdm as tqdm_notebook
PWD = os.getcwd()
np.set_printoptions(linewidth=130, precision=5)
In [2]:
greenFun = stlpp.detail_light(threshold=100)
greenFun.solve_prepare_light()
Out[2]:
In [4]:
greenFun.set_b(b=0.1)
greenFun.solve_prepare_b()
mij = greenFun.solve_u_light(0.2, 0.2, 0.2)
In [7]:
t1 = np.random.sample(3)
%timeit greenFun.solve_u_light(*t1)