Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bartblockmans/benchmark_mpj
/ functions
Functions
126 in github.com/bartblockmans/benchmark_mpj
⨍
Functions
126
◇
Types & classes
3
↓ 1 callers
Function
render_animation_frame
Save a clean animation frame without ticks or labels. Creates a clean image suitable for animation with: - Black background (matchin
nbody.py:851
↓ 1 callers
Method
run_benchmarks
Run benchmarks for all three implementations.
benchmark.py:836
↓ 1 callers
Function
streaming_and_bounceback_fused
OPTIMIZED fused streaming and bounce-back operation. Uses unrolled directions to eliminate if/elif branching for better performance.
lbm_cylinder_opt.py:190
↓ 1 callers
Function
streaming_step
Perform the streaming step of the LBM algorithm. Particles move along their velocity directions to neighboring lattice sites.
lbm_cylinder.py:139
↓ 1 callers
Function
streaming_step
C_lbm/lbm.c:83
↓ 1 callers
Function
uniform_random
C_nbody/nbody.c:39
↓ 1 callers
Function
viridis_color
Viridis (piecewise linear like your Fortran) */
C_nbody/nbody.c:329
↓ 1 callers
Function
visualize_flow_field
Visualize the flow field by plotting vorticity and streamlines. Saves the plot as an image file. When NOTICKS is True, creates clean
lbm_cylinder_opt.py:424
↓ 1 callers
Function
visualize_flow_field
Visualize the flow field by plotting vorticity and streamlines. Saves the plot as an image file. When NOTICKS is True, creates clean
lbm_cylinder.py:216
↓ 1 callers
Function
xorshift32
============================== RNG ============================== */ Simple xorshift32 per-call seeded engine -> reproducible per seed */
C_nbody/nbody.c:24
Method
__init__
Initialize the benchmarker. Parameters: ----------- script_name : str Base name of the scripts t
benchmark.py:68
Method
_detect_outliers
Detect outliers using a simple percentage threshold relative to the mean. This is appropriate for performance benchmarking where we w
benchmark.py:412
Function
apply_inflow_outflow_boundary_conditions
Apply velocity boundary conditions at inlet and outlet. Maintains constant velocity at domain boundaries.
lbm_cylinder_opt.py:405
Function
apply_periodic_boundary_conditions
Apply periodic boundary conditions to the distribution functions. This ensures particles leaving one edge of the domain re-enter from the opp
lbm_cylinder_opt.py:131
Function
collision_step
Perform the collision step using the BGK (Bhatnagar-Gross-Krook) approximation. Distribution functions relax toward their equilibrium values.
lbm_cylinder_opt.py:390
Function
compute_macroscopic_variables
Compute macroscopic fluid variables (density and velocity) from the distribution functions using moment integrals.
lbm_cylinder_opt.py:372
Function
handle_cylinder_boundary
Handle the no-slip boundary condition at the cylinder surface. Implements the bounce-back method where particles hitting the cylinder rev
lbm_cylinder_opt.py:356
Function
handle_cylinder_boundary_inplace
Handle the no-slip boundary condition at the cylinder surface using CORRECTED bounce-back. OPTIMIZED VERSION: - Uses precomputed mas
lbm_cylinder_opt.py:256
Function
identity
(f)
nbody.py:196
Function
identity
(f)
nbody_opt.py:222
Function
main
C_nbody/main.c:7
Function
main
C_lbm/main.c:6
Function
step
Fused leapfrog integration step to eliminate Python ⇄ NumPy overhead. Implements the complete leapfrog scheme in a single JIT-compiled f
nbody_opt.py:408
Function
streaming_step
Perform the streaming step of the LBM algorithm. Particles move along their velocity directions to neighboring lattice sites.
lbm_cylinder_opt.py:347
Function
streaming_step_into
dst[y,x,i] = src[y - CY[i], x - CX[i], i] with periodic wrap, no temp arrays. This avoids np.roll allocations which create full plane copies
lbm_cylinder_opt.py:145
Function
wrapi
C_nbody/nbody.c:20
← previous
101–126 of 126, ranked by callers