MCPcopy Create free account

hub / github.com/bartblockmans/benchmark_mpj / functions

Functions126 in github.com/bartblockmans/benchmark_mpj

↓ 1 callersFunctionrender_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 callersMethodrun_benchmarks
Run benchmarks for all three implementations.
benchmark.py:836
↓ 1 callersFunctionstreaming_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 callersFunctionstreaming_step
Perform the streaming step of the LBM algorithm. Particles move along their velocity directions to neighboring lattice sites.
lbm_cylinder.py:139
↓ 1 callersFunctionstreaming_step
C_lbm/lbm.c:83
↓ 1 callersFunctionuniform_random
C_nbody/nbody.c:39
↓ 1 callersFunctionviridis_color
Viridis (piecewise linear like your Fortran) */
C_nbody/nbody.c:329
↓ 1 callersFunctionvisualize_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 callersFunctionvisualize_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 callersFunctionxorshift32
============================== 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
Functionapply_inflow_outflow_boundary_conditions
Apply velocity boundary conditions at inlet and outlet. Maintains constant velocity at domain boundaries.
lbm_cylinder_opt.py:405
Functionapply_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
Functioncollision_step
Perform the collision step using the BGK (Bhatnagar-Gross-Krook) approximation. Distribution functions relax toward their equilibrium values.
lbm_cylinder_opt.py:390
Functioncompute_macroscopic_variables
Compute macroscopic fluid variables (density and velocity) from the distribution functions using moment integrals.
lbm_cylinder_opt.py:372
Functionhandle_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
Functionhandle_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
Functionidentity
(f)
nbody.py:196
Functionidentity
(f)
nbody_opt.py:222
Functionmain
C_nbody/main.c:7
Functionmain
C_lbm/main.c:6
Functionstep
Fused leapfrog integration step to eliminate Python ⇄ NumPy overhead. Implements the complete leapfrog scheme in a single JIT-compiled f
nbody_opt.py:408
Functionstreaming_step
Perform the streaming step of the LBM algorithm. Particles move along their velocity directions to neighboring lattice sites.
lbm_cylinder_opt.py:347
Functionstreaming_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
Functionwrapi
C_nbody/nbody.c:20
← previous101–126 of 126, ranked by callers