Skip to content

Commit 4d5aa09

Browse files
committed
Add linespacing according to PEP8
1 parent a8a0e5c commit 4d5aa09

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

elastic-tube-1d/fluid-python/FluidSolver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
import matplotlib.animation as manimation
1111
from output import writeOutputToVTK
1212
import precice
13-
from precice import action_write_initial_data, action_write_iteration_checkpoint, action_read_iteration_checkpoint
13+
from precice import action_write_initial_data, action_write_iteration_checkpoint, \
14+
action_read_iteration_checkpoint
1415

1516
# physical properties of the tube
1617
r0 = 1 / np.sqrt(np.pi) # radius of the tube
@@ -27,6 +28,7 @@
2728
dx = L / kappa
2829
# helper function to create constant cross section
2930

31+
3032
def velocity_in(t): return u0 + ampl * np.sin(frequency *
3133
(t + t_shift) * np.pi) # inflow velocity
3234

elastic-tube-1d/solid-python/SolidSolver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
import argparse
66
import numpy as np
77
import precice
8-
from precice import action_write_initial_data, action_read_iteration_checkpoint, action_write_iteration_checkpoint
8+
from precice import action_write_initial_data, action_read_iteration_checkpoint, \
9+
action_write_iteration_checkpoint
910

1011

1112
r0 = 1 / np.sqrt(np.pi) # radius of the tube
@@ -17,6 +18,7 @@
1718
E = 10000 # elasticity module
1819
c_mk = np.sqrt(E / 2 / r0) # wave speed
1920

21+
2022
def crossSection0(N):
2123
return a0 * np.ones(N + 1)
2224

0 commit comments

Comments
 (0)