Skip to content

Commit 08708be

Browse files
committed
Changed mu to nu
1 parent 6c180e2 commit 08708be

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

find_baseflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def solve_navier_stokes(mesh, boundaries, nu, pin, pout, inflow_marker, outflow_
1212
Args:
1313
mesh (Mesh): Mesh of problem domain
1414
boundaries (MeshFunction): Function determining the boundaries of the mesh
15-
nu (float): Dynamic viscosity
15+
nu (float): Kinematic viscosity
1616
pin (float): Predefined pressure value at inlet(s)
1717
pout (float): Predefined pressure value at outlet(s)
1818
inflow_marker (list): ID(s) corresponding to inlet(s) of mesh
@@ -161,7 +161,7 @@ def D(u):
161161
if __name__ == '__main__':
162162
pin = 2.0
163163
pout = 1.0
164-
mu = 1.0
164+
nu = 1.0
165165
radius = 1.0
166166
n_elem = 15
167167

@@ -185,7 +185,7 @@ def D(u):
185185
inflow_marker, outflow_marker, no_slip_marker = get_marker_ids(case)
186186

187187
# Solve for NS flow in mesh domain
188-
u, p = solve_navier_stokes(mesh, boundaries, mu, pin, pout, inflow_marker, outflow_marker, no_slip_marker)
188+
u, p = solve_navier_stokes(mesh, boundaries, nu, pin, pout, inflow_marker, outflow_marker, no_slip_marker)
189189

190190
file = File("Baseflow/u.pvd")
191191
file << u

find_perturbation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def get_eigenvalue_matrices(mesh, nu, u_init):
255255
256256
Args:
257257
mesh (Mesh): Mesh of problem domain
258-
nu (float): Dynamic viscosity
258+
nu (float): Kinematic viscosity
259259
u_init (Function): Baseflow solution
260260
261261
Returns:
@@ -305,11 +305,11 @@ def all_boundaries(x, on_boundary):
305305
return A, B, W
306306

307307

308-
def EIG_A_cyl(u, p, v, q, mu):
308+
def EIG_A_cyl(u, p, v, q, nu):
309309
"""
310310
Set up operators for eigenvalue problem (Left hand side)
311311
"""
312-
eig_a = mu * inner(grad(u), grad(v)) * dx - div(v) * p * dx - q * div(u) * dx
312+
eig_a = nu * inner(grad(u), grad(v)) * dx - div(v) * p * dx - q * div(u) * dx
313313
return eig_a
314314

315315

@@ -332,7 +332,7 @@ def read_command_line():
332332
'1 (C0015_terminal), 2 (C0019), 3 (C0065_healthy), 4 (C0065_healthy)',
333333
default='0', type=str, choices={"0", "1", "2", "3", "4", "poise"})
334334
parser.add_argument('--delta_p', help='Pressure drop in mmHg', default=5, type=float)
335-
parser.add_argument('--nu', help='Dynamic viscosity', default=3e-6, type=float)
335+
parser.add_argument('--nu', help='Kinematic viscosity', default=3e-6, type=float)
336336
args = parser.parse_args()
337337

338338
return args

0 commit comments

Comments
 (0)