-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_graphics_quick.py
More file actions
32 lines (26 loc) · 849 Bytes
/
test_graphics_quick.py
File metadata and controls
32 lines (26 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Quick test to see if graphics window appears"""
import fluidx3d
print("Testing graphics window with minimal simulation...")
print("A window should appear!")
print()
config = fluidx3d.Config()
config.parse_args([
'-f', 'LZ_129_Hindenburg.stl',
'--D3Q27', '--SRT', '--FP16S',
'--SUBGRID', '--EQUILIBRIUM_BOUNDARIES',
'--GRAPHICS', # Graphics enabled!
'--window', # Windowed mode
'-r', '500', # Very low resolution for speed
'--secs', '1.0', # Just 1 second
'-u', '5',
'--re', '100000',
'--scale', '0.9',
'-c', '0.7',
])
print(f"Resolution: {config.get_uint('resolution')} (very low for testing)")
print(f"Time: {config.get_float('secs')} seconds")
print()
print("Starting... window should appear NOW!")
config.run_simulation()
print()
print("✅ Done! Did you see the window?")