Skip to content

Commit fe14a56

Browse files
committed
Fix viscosity constant in burgers-new
1 parent 3aefe25 commit fe14a56

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

examples/burgers-new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def f_model(u_model, x, t):
3030
u_x = tf.gradients(u, x)
3131
u_xx = tf.gradients(u_x, x)
3232
u_t = tf.gradients(u, t)
33-
f_u = u_t + u * u_x - (0.05 / tf.constant(math.pi)) * u_xx
33+
f_u = u_t + u * u_x - (0.01 / tf.constant(math.pi)) * u_xx
3434
return f_u
3535

3636

tensordiffeq/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def compile(self, layer_sizes, f_model, domain, bcs, isAdaptive=False,
3232
self.u_model = neural_net(self.layer_sizes)
3333

3434

35-
3635
if isAdaptive:
3736
self.isAdaptive = True
3837
if self.col_weights is None and self.u_weights is None:

0 commit comments

Comments
 (0)