Changed name of the svirl solver class to GLSolver.

This commit is contained in:
Shriram Jagannathan 2020-11-11 19:24:28 -08:00
Родитель 41903e5df9
Коммит 30bc30f96e
16 изменённых файлов: 32 добавлений и 32 удалений

Просмотреть файл

@ -31,9 +31,9 @@ Requires:
Example:
```python
import numpy as np
from svirl import GinzburgLandauSolver
from svirl import GLSolver
gl = GinzburgLandauSolver(
gl = GLSolver(
dx = 0.5, dy = 0.5,
Lx = 64, Ly = 64,
order_parameter = 'random',

Просмотреть файл

@ -30,9 +30,9 @@ Main features:
Example::
import numpy as np
from svirl import GinzburgLandauSolver
from svirl import GLSolver
gl = GinzburgLandauSolver(
gl = GLSolver(
dx = 0.5, dy = 0.5,
Lx = 64, Ly = 64,
order_parameter = 'random',

Просмотреть файл

@ -3,11 +3,11 @@ sys.path.append(os.path.abspath("../"))
import numpy as np
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from svirl import plotter
print('Create GL solver')
gl = GinzburgLandauSolver(
gl = GLSolver(
Lx = 60, Ly = 60,
dx = 0.5, dy = 0.5,
order_parameter = 'random',

Просмотреть файл

@ -3,7 +3,7 @@ sys.path.append(os.path.abspath("../"))
import numpy as np
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from svirl import plotter
print('Define geometry')
@ -17,7 +17,7 @@ def material(x, y):
))
print('Create GL solver')
gl = GinzburgLandauSolver(
gl = GLSolver(
Lx = 250, Ly = 250,
dx = 0.5, dy = 0.5,
order_parameter = 'random',

Просмотреть файл

@ -3,11 +3,11 @@ sys.path.append(os.path.abspath("../"))
import numpy as np
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from svirl import plotter
print('Create GL solver')
gl = GinzburgLandauSolver(
gl = GLSolver(
Lx = 50, Ly = 50,
dx = 0.5, dy = 0.5,
order_parameter = 1.0,

Просмотреть файл

@ -3,14 +3,14 @@ sys.path.append(os.path.abspath("../"))
import numpy as np
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from svirl import plotter
Nx, Ny = 201, 201
print('Create GL solver')
H = 0.01
gl = GinzburgLandauSolver(
gl = GLSolver(
Lx = 100, Ly = 100,
dx = 0.5, dy = 0.5,
order_parameter = 'random',

Просмотреть файл

@ -3,7 +3,7 @@ sys.path.append(os.path.abspath("../"))
import numpy as np
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from svirl import plotter
Nx, Ny = 201, 201
@ -19,7 +19,7 @@ for i in range(Nx):
print('Create GL solver')
kappa = 10.0
H = 0.1
gl = GinzburgLandauSolver(
gl = GLSolver(
Nx = Nx, Ny = Ny,
dx = 0.5, dy = 0.5,
order_parameter = 'random',

Просмотреть файл

@ -2,9 +2,9 @@ import sys, os
sys.path.append(os.path.abspath("../"))
import numpy as np
from svirl import GinzburgLandauSolver
from svirl import GLSolver
gl = GinzburgLandauSolver(
gl = GLSolver(
dx = 0.5, dy = 0.5,
Lx = 64, Ly = 64,
order_parameter = 1.0,

Просмотреть файл

@ -3,13 +3,13 @@ sys.path.append(os.path.abspath("../"))
import numpy as np
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from svirl import plotter
print('Create GL solver')
kappa = 10.0
H = 0.1
gl = GinzburgLandauSolver(
gl = GLSolver(
Lx = 50, Ly = 50,
dx = 0.5, dy = 0.5,
order_parameter = 'random',

Просмотреть файл

@ -13,7 +13,7 @@ from svirl import observables as GLObs
from svirl import solvers as GLSolvers
class GinzburgLandauSolver(object):
class GLSolver(object):
"""2D Ginzburg-Landau BDF solver
Main features:

Просмотреть файл

@ -1,12 +1,12 @@
import numpy as np
import sys, os
sys.path.append(os.path.abspath("../"))
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from svirl.storage import GArray
from common import *
gl = GinzburgLandauSolver(
gl = GLSolver(
Nx = 8 + np.random.randint(4),
Ny = 8 + np.random.randint(4),
dx = 0.5 - 0.1*np.random.rand(),

Просмотреть файл

@ -1,12 +1,12 @@
import numpy as np
import sys, os
sys.path.append(os.path.abspath("../"))
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from svirl.storage import GArray
from common import *
gl = GinzburgLandauSolver(
gl = GLSolver(
Nx = 8 + np.random.randint(4),
Ny = 8 + np.random.randint(4),
dx = 0.5 - 0.1*np.random.rand(),

Просмотреть файл

@ -2,7 +2,7 @@ import time
import numpy as np
import sys, os
sys.path.append(os.path.abspath("../"))
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from common import *
@ -116,7 +116,7 @@ passed_psi, passed_A = 0, 0
for o in range(Nobjects):
# generate random system size
gl = GinzburgLandauSolver(
gl = GLSolver(
Nx = 8 + np.random.randint(4),
Ny = 8 + np.random.randint(4),
dx = 0.5 - 0.1*np.random.rand(),

Просмотреть файл

@ -1,13 +1,13 @@
import numpy as np
import sys, os
sys.path.append(os.path.abspath("../"))
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from common import *
cd_test_number, cd_test_passed = 0, 0
for i in range(10):
try:
gl = GinzburgLandauSolver(
gl = GLSolver(
Nx = np.random.randint(4, 1024),
Ny = np.random.randint(4, 1024),
dx = 0.2 + 0.2*np.random.rand(),

Просмотреть файл

@ -4,7 +4,7 @@ sys.path.append(os.path.abspath("../"))
import numpy as np
import matplotlib.pyplot as plt
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from svirl import plotter
from common import *
@ -24,7 +24,7 @@ def material(x, y):
np.logical_and(y > gl.cfg.Ly/2 - 10.0*dy/2, y < gl.cfg.Ly/2 + 10.0*dy/2))
)
gl = GinzburgLandauSolver(
gl = GLSolver(
Lx = 100, Ly = 100,
dx = dx, dy = dy,
order_parameter = 1.0,
@ -47,7 +47,7 @@ free_energy_sp = gl.observables.free_energy
del gl
gl = GinzburgLandauSolver(
gl = GLSolver(
Lx = 100, Ly = 100,
dx = dx, dy = dy,
order_parameter = 1.0,

Просмотреть файл

@ -1,11 +1,11 @@
import numpy as np
import sys, os
sys.path.append(os.path.abspath("../"))
from svirl import GinzburgLandauSolver
from svirl import GLSolver
from common import *
gl = GinzburgLandauSolver(
gl = GLSolver(
Nx = 32, Ny = 32,
dx = 0.5, dy = 0.5,
)