Exemplo n.º 1
0
#!/usr/bin/env python
import torch
import numpy as np

import module.plot as pl
import module.sim as sim

print('cudnn  :', torch.backends.cudnn.version())

W = 300
H = 40
N = (W, W, H)
wave = sim.wave(N, dx=5 / W, z_boundary=-1)
mesh = pl.mesh(wave)
pl.plot3d(mesh)
Exemplo n.º 2
0
#!/usr/bin/env python
import torch
import numpy as np

import module.plot as pl
import module.sim as sim

print('cudnn  :', torch.backends.cudnn.version())

W = 1000
N = (W, W)
wave = sim.wave(N, dx=5/W, cyclic_length=1, sigma=0.7)
mesh = pl.mesh(wave)
pl.plot3d(mesh)
Exemplo n.º 3
0
#!/usr/bin/env python
import torch
import numpy as np

import module.plot as pl
import module.sim as sim

print('cudnn  :', torch.backends.cudnn.version())

W = 1000
N = (W, W)
wave = sim.wave(N, dx=5 / W)
mesh = pl.mesh(wave)
pl.plot3d(mesh)
Exemplo n.º 4
0
#!/usr/bin/env python

import module.plot as pl
import module.sim as sim

wave = sim.wave()
mesh = pl.mesh(wave)
pl.plot3d(mesh)
Exemplo n.º 5
0
#!/usr/bin/env python
import torch
import numpy as np

import module.plot as pl
import module.sim as sim

print('cudnn  :', torch.backends.cudnn.version())

W = 1000
N = (W, W)
wave = sim.wave(N, dx=4 / W)
mesh = pl.mesh(wave)
pl.plot3d(mesh)