Skip to content

Commit 1526a49

Browse files
committed
add symmetry option to test more combinations
1 parent 0fcc9ff commit 1526a49

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/3D_cascade_periodic.jl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ grid = "cascade_3D_periodic_2p5mm.unv"
99
mesh_file = joinpath(grids_dir, grid)
1010
mesh = UNV3D_mesh(mesh_file, scale=0.001)
1111

12-
backend = CUDABackend(); workgroup = 32
13-
# backend = CPU(); workgroup = 1024; activate_multithread(backend)
12+
# backend = CUDABackend(); workgroup = 32
13+
backend = CPU(); workgroup = 1024; activate_multithread(backend)
1414

1515
hardware = Hardware(backend=backend, workgroup=workgroup)
1616
mesh_dev = adapt(backend, mesh)
1717

1818
periodic1 = construct_periodic(mesh, backend, :top, :bottom)
19-
periodic2 = construct_periodic(mesh, backend, :side1, :side2)
19+
# periodic2 = construct_periodic(mesh, backend, :side1, :side2)
20+
periodic2 = Symmetry.([:side1, :side2])
2021

2122
velocity = [0.25, 0.0, 0.0]
2223
nu = 1e-3
@@ -59,7 +60,7 @@ BCs= assign(
5960
)
6061
)
6162

62-
divergence = LUST # Upwind Linear LUST
63+
divergence = Linear # Upwind Linear LUST
6364
schemes = (
6465
# # transient schemes
6566
# U = Schemes(time=Euler, divergence=divergence, gradient=Gauss),

0 commit comments

Comments
 (0)