rename lib
This commit is contained in:
parent
c1750e9fde
commit
0d91f0d43e
8 changed files with 8 additions and 6 deletions
7
fdtd.py
7
fdtd.py
|
|
@ -8,10 +8,10 @@ import sys
|
|||
import time
|
||||
|
||||
import numpy
|
||||
import lzma
|
||||
import lzma
|
||||
import dill
|
||||
|
||||
from fdtd.simulation import Simulation
|
||||
from opencl_fdtd import Simulation
|
||||
from masque import Pattern, shapes
|
||||
import gridlock
|
||||
import pcgen
|
||||
|
|
@ -133,7 +133,7 @@ def main():
|
|||
def field_source(i):
|
||||
t0 = i * sim.dt - delay
|
||||
return numpy.sin(w * t0) * numpy.exp(-alpha * t0**2)
|
||||
|
||||
|
||||
with open('sources.c', 'w') as f:
|
||||
f.write(sim.sources['E'])
|
||||
f.write('\n==========================================\n')
|
||||
|
|
@ -172,5 +172,6 @@ def main():
|
|||
d['S'] = unvec(sim.S.get())
|
||||
dill.dump(d, f)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue