Skip to content

Commit

Permalink
Examples added.
Browse files Browse the repository at this point in the history
  • Loading branch information
gstinoco committed Sep 18, 2023
1 parent 36f29fe commit c44aaf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Example_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def fADV(x, y, t, c):
fun = 0.2*np.exp((-(x-.5-c[0]*t)**2-(y-.5-c[1]*t)**2)/.001)
return fun

mat = loadmat('Regions/Clouds/CAB_2.mat')
mat = loadmat('Regions/Clouds/CAB_3.mat')
p = mat['p']
tt = mat['tt']
if tt.min() == 1:
Expand Down
5 changes: 3 additions & 2 deletions GFD.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ def __init__(self, points, triangulation, time_interval, time_steps):
self.tt = triangulation
self.t = time_steps
self.m = len(points[:,0])
self.L = np.vstack([[0], [0], [0], [0], [0]])
self.K = np.zeros([self.m,self.m])
self.T = np.linspace(time_interval[0],time_interval[1],time_steps)
self.dt = self.T[1] - self.T[0]
self.L = np.vstack([[0], [0], [0], [0], [0]])
self.u_ap = np.zeros([self.m,time_steps])
self.u_ex = np.zeros([self.m,time_steps])
self.K = np.zeros([self.m,self.m])


def Boundary(self, f, coefficient):
for k in np.arange(self.t):
Expand Down

0 comments on commit c44aaf5

Please sign in to comment.