Skip to content

Exhaustive Operator List

Every operator of hippoLBM, by plugin, with its slots (hippoLBM --help <operator> prints the same information for your build). Slots read from the data graph (domain, fields, grid_region, traversals, Params, mpi, timestep, ...) are produced by earlier operators and are never set in YAML: they are not listed here. Operators of onika used by hippoLBM (global, nop, message, nth_timestep, next_time_step, sim_continue, mpi_comm_world, init_cuda, ...) are documented in the onika/exaNBody documentation.

hippo_bcs

cavity_z_0

This operator enforces a Cavity boundary condition at z = lz in an LBM simulation. The Cavity boundary condition ensures that the gradient of the distribution function follows a prescribed value

Slot Flow Type Default Description
U in Vec3d required Prescribed velocity at the boundary (z = lz), enforcing the Cavity condition.

cavity_z_l

This operator enforces a Cavity boundary condition at z = lz in an LBM simulation. The Cavity boundary condition ensures that the gradient of the distribution function follows a prescribed value

Slot Flow Type Default Description
U in Vec3d required Prescribed velocity at the boundary (z = lz), enforcing the Cavity condition.

lid_driven_cavity

This operator enforces a Cavity boundary condition in an LBM simulation. The Cavity boundary condition ensures that the gradient of the distribution function follows a prescribed value

Slot Flow Type Default Description
U in Vec3d required Prescribed velocity at the boundary (z = lz), enforcing the Cavity condition. U is the U real
regions in vector<string> required Lists of grid regions to apply BCS. Ex: [plan_xy_0]

neumann

This operator enforces a Neumann boundary condition at z = 0 or z = l in an LBM simulation. The Neumann boundary condition ensures that the gradient of the distribution function follows a prescribed value.

Slot Flow Type Default Description
U in Vec3d required Prescribed velocity at the boundary, enforcing the Neumann condition.
regions in vector<string> required Lists of grid regions to apply BCS. Ex: [plan_xy_0]

post_bounce_back

This operator applies the post-collision bounce-back boundary condition to the distribution functions at the boundary points of the grid.

No user slot.

pre_bounce_back

This operator applies the pre-collision bounce-back boundary condition to the distribution functions at the boundary points of the grid.

Slot Flow Type Default Description
by_pass_check in bool false Skip the check

rho

This operator enforces a rho (density/pressure) boundary condition at x/y/z = 0 or l in an LBM simulation. delta_p is a pressure difference (Pa) relative to the fluid's reference state (avg_rho_, rho_lbm = 1), converted internally to rho_lbm using the same convention as set_dp_pressure.

Slot Flow Type Default Description
U in Vec3d [0, 0, 0] Prescribed velocity at the boundary, enforcing the rho condition.
delta_p in vector<Quantity> required Pressure difference (Pa) relative to the fluid's reference state (avg_rho_, rho_lbm = 1), prescribed at each boundary. Must have the same size as regions.
regions in vector<string> required Lists of grid regions to apply BCS. Ex: [plan_xy_0]

hippo_check

check_macro_quantities

This operator checks some macro quantities for CI. YAML configuration example: - check_macro_quantities: density: 1e6 tol: 1e-6 vmax: 0.1 vmin: 0

Slot Flow Type Default Description
density in double optional Sum of all densities.
tol in double optional Tolerance relative to the sum of all densities.
vmin in double 0 Minimal velocity (norm). Always >= 0
vmax in double optional Max velocity (norm)

plane_velocity_profile

This operator produces a CSV file with columns "position avg min max", giving the average, minimum and maximum velocity norm for each plane perpendicular to the chosen dimension (X, Y or Z).

Slot Flow Type Default Description
dimension in string required The dimension along which the profile is computed: "X", "Y" or "Z".
dump_file in string "profile_%010d.csv" The name of the CSV file, formatted with the current timestep.
output_directory in string "hippoLBMOutputDir" The base directory for the profile output.
display_filename in bool true Print filename

plot_line_velocity

Extracts the velocity profile along an axis-aligned line and writes it to a CSV file (rx, ry, rz, ux, uy, uz). The line is specified either in physical coordinates (line) or in LBM grid indices (line_lbm).

Slot Flow Type Default Description
dump_file in string "line_%010d.csv" The name of the CSV file, formatted with the current timestep.
output_directory in string "hippoLBMOutputDir" The base directory for the profile output.
line in AABB optional The bounding box defining the line (Real World) along which to compute the velocity profile.
line_lbm in Box3D optional The bounding box defining the line (LBM World) along which to compute the velocity profile.
display_filename in bool true

hippo_collision

bgk

The CollisionBGK operator implements the Bhatnagar-Gross-Krook (BGK) collision model for the Lattice Boltzmann Method (LBM). This model assumes a single relaxation time approach to approximate the collision process, driving the distribution functions toward equilibrium.

No user slot.

macro_variables

A functor for computing macroscopic variables (densities and flux) for lattice Boltzmann method.

No user slot.

mrt

The CollisionMRT operator implements the MRT collision model for the Lattice Boltzmann Method (LBM). Moments of the distribution functions relax towards the moments of the BGK equilibrium. The stress moments relax with 1/tau (so the viscosity is the same as BGK), the others with the rates s_e, s_eps, s_q, s_pi and s_m (default: D'Humieres et al. 2002). With all rates equal to 1/tau, the operator is equivalent to BGK.

Slot Flow Type Default Description
s_e in double 1.19 Relaxation rate of the energy moment.
s_eps in double 1.4 Relaxation rate of the energy square moment.
s_q in double 1.2 Relaxation rate of the energy flux moments.
s_pi in double 1.4 Relaxation rate of the stress square moments.
s_m in double 1.98 Relaxation rate of the third order moments.

streaming

The StreamingLBM class is described as part of the Lattice Boltzmann Method (LBM) implementation, specifically the streaming steps.

Slot Flow Type Default Description
asynchrone in bool false The asynchrone option controls the execution style: when true, it allows asynchronous operations with overlapping computation and communication, improving parallel performance. When false, it runs synchronously, ensuring sequential execution of operations and data updates.

hippo_couette

bgk_couette_relax

Slot Flow Type Default Description
U_inf in Vec3d required Physical velocity used to derive the external force term at the lower boundary (k = 0).
U_sup in Vec3d required Physical velocity used to derive the external force term at the upper boundary (k = domain_size_z - 1).

macro_variables_couette_relax

Slot Flow Type Default Description
U_inf in Vec3d required Physical velocity used to derive the external force term at the lower boundary (k = 0).
U_sup in Vec3d required Physical velocity used to derive the external force term at the upper boundary (k = domain_size_z - 1).

hippo_grid

add_bounce_back_bcs

This operator (re)configures the bounce-back manager of an already-initialized domain, without rebuilding the domain itself.

Slot Flow Type Default Description
bounce_back_planes in vector<string> [] Named planes (plan_xy_0, plan_xy_l, plan_xz_0, plan_xz_l, plan_yz_0, plan_yz_l) where a bounce-back wall boundary condition is applied. Each named plane's dimension must not be periodic.

build_traversal

This operator builds the traversal information for the LBM grid.

No user slot.

define_grid_3dq19

This operator defines the fields required for the LBM simulation.

No user slot.

domain

This operator initializes the computational domain for ²the LBM simulation. Parameters: - cell_dims [IJK] : Number of cells in each dimension. Required. Grid dims: cell_dims+1. - bounds [AABB] : Domain's bounds (bmin/bmax). Required. - periodic [bool[3]] : Periodic boundary conditions for each dimension. Required. - tolerance [double] : Relative tolerance used to check consistency between resolution, grid size, and bounds. Default: 1e-6. - bounce_back_planes [string list] : Named planes (plan_xy_0, plan_xy_l, plan_xz_0, plan_xz_l, plan_yz_0, plan_yz_l) where a bounce-back wall boundary condition is applied. Each plane's dimension must not be periodic. Default: none.

Slot Flow Type Default Description
periodic in/out BoolVector required Periodic boundary conditions for each dimension.
cell_dims in IJK required Number of cells in each dimension. Grid dims: cells_dims+1.
bounds in AABB required Domain's bounds
tolerance in double 1e-6 Relative tolerance used to check consistency between resolution, grid size, and bounds.
bounce_back_planes in vector<string> [] Named planes (plan_xy_0, plan_xy_l, plan_xz_0, plan_xz_l, plan_yz_0, plan_yz_l) where a bounce-back wall boundary condition is applied. Each named plane's dimension must not be periodic.

init_obst

No user slot.

lbm_parameters

This operator computes the parameters required for the LBM simulation based on the input domain and physical properties.

Slot Flow Type Default Description
Fext in Vec3d [0, 0, 0] External forces applied to the fluid.
celerity in double 1 The speed of sound in the fluid.
nuth in double 1e-4 The dynamic viscosity of the fluid.
avg_rho in double 1000.0 The average density of the fluid.
tau in double optional Define tau, otherwise tau = 3*nu + 0.5.
dt in/out double 0.0 The time step for the LBM simulation.

This operator prints the details of the LBM domain, including grid information and domain size.

No user slot.

set_distribution

This operator initializes the distribution function for the LBM simulation at its equilibrium value. It can be applied to the whole grid, restricted to an axis-aligned bounding box, or restricted to a quadric-defined region.

Slot Flow Type Default Description
value in double 1.0 The value to initialize the distribution function with.
do_update in bool false Whether to update ghost cells after initialization.
bounds in AABB optional Restrict initialization to this axis-aligned bounding box.
quadrics in Mat4d optional Define area.
transform in Mat4d optional Define area.

set_dp_pressure

This operator initializes the pressure for a LBM simulation as a difference (delta_p) relative to the fluid's reference state (rho_lbm = 1, i.e. avg_rho_). Unlike set_pressure, delta_p = 0 always leaves the fluid unperturbed, regardless of dtLB. It can be applied to the whole grid, restricted to an axis-aligned bounding box, or restricted to a quadric-defined region.

Slot Flow Type Default Description
delta_p in double required Pressure difference (Pa) relative to the fluid's reference state (avg_rho_, rho_lbm = 1).
bounds in AABB optional Restrict the pressure perturbation to this axis-aligned bounding box.
quadrics in Mat4d optional Define area.
transform in Mat4d optional Define area.
inside in bool true Define area.
verbosity in bool false If true, print information about the operator execution.

set_dp_pressure_gradient

This operator initializes the pressure for a LBM simulation as a linear ramp of delta_p (difference relative to the fluid's reference state, rho_lbm = 1, i.e. avg_rho_) inside an axis-aligned bounding box. The ramp goes from delta_p[0] at bounds.bmin to delta_p[1] at bounds.bmax along the chosen dimension. Typically used to smooth a pressure discontinuity set with set_dp_pressure.

Slot Flow Type Default Description
delta_p in vector<double> required Pressure differences (Pa) relative to the fluid's reference state (avg_rho_, rho_lbm = 1): [delta_p at bounds.bmin, delta_p at bounds.bmax] along dimension.
bounds in AABB required Box where the pressure is set. The gradient goes from bmin to bmax along dimension.
dimension in string required Dimension of the gradient: "X", "Y" or "Z".
verbosity in bool false If true, print information about the operator execution.

update_ghost

A functor for computing macroscopic variables (densities and flux) for lattice Boltzmann method.

No user slot.

hippo_io

check_dump

Checks a checkpoint file's consistency and prints its header. Stops the run (std::exit).

Slot Flow Type Default Description
filename in string required Path to the checkpoint file to check.

log

This operator logs the current state of the LBM simulation, including statistics such as the sum of density and the minimum and maximum velocity norms. YAML configuration example: - log

Slot Flow Type Default Description
print_log_header in/out bool true Whether to print the log header.

read_dump

Reads back a checkpoint file written by dump: rebuilds the domain, sizes and fills in fields, and (unless skip_params) Params and timestep.

Slot Flow Type Default Description
filename in string required Path to the checkpoint file to read.
skip_params in bool false If true, keep the current Params instead of the checkpoint's.
display_info in bool true Print the checkpoint's domain and LBM parameters.
periodic in vector<bool> optional If set, use this periodicity instead of the checkpoint's.
dt out double Set to the checkpoint's LBM timestep (Params.dtLB_), unless skip_params is set.
do_set_distributions out bool Set to false: the checkpoint already provides f_, skip the default set_distributions.

simulation_state

This operator computes the simulation state of the LBM grid, including statistics such as the sum of density and the minimum and maximum velocity norms. YAML configuration example: - simulation_state

No user slot.

write_dump

This operator writes a checkpoint/restart file for the LBM simulation: the obstacle and distribution function fields, compressed with zlib and written in parallel with MPI-IO, alongside a header describing the global grid, LBM parameters, and timestep.

Slot Flow Type Default Description
filename in string "hippoLBM_%010d.dump" The filename for the checkpoint file.
output_directory in string "hippoLBMOutputDir" The base directory for the checkpoint output.
display_filename in bool true Print filename
compression_level in int 1 zlib compression level (1 = fastest, 9 = smallest).

write_paraview

This operator writes the simulation data to a Paraview file for visualization.

Slot Flow Type Default Description
filename in string "hippoLBM_%010d" The filename for the Paraview output.
output_directory in string "hippoLBMOutputDir" The base directory for the Paraview output.
distributions in bool false Whether to write distribution functions.
display_filename in bool true Print filename

write_paraview_subbox

This operator writes a subbox of the simulation grid. Parameters: - bounds [AABB] : Physical-space sub-box of the domain to write out. Required. - filename [string] : Filename pattern for the Paraview output (printf-style, receives the timestep). Default: "hippoLBM_subbox_%010d". - display_filename [bool] : Whether to print the output filename when writing. Default: true.

Slot Flow Type Default Description
bounds in AABB required Physical-space sub-box of the domain to write out.
filename in string "hippoLBM_subbox_%010d" The filename for the Paraview output.
output_directory in string "hippoLBMOutputDir" The base directory for the Paraview output.
display_filename in bool true Print filename

hippo_object

display_obstacles

This operator initializes the list of obstacles for the simulation.

No user slot.

init_obstacles

This operator initializes the list of obstacles for the simulation.

No user slot.

register_quadrics

This operator add a quadric to the obstacles list.

Slot Flow Type Default Description
id in int required Driver index
quadrics in Mat4d required Define area.
transform in Mat4d optional Define area.

register_rshape

Reads an STL mesh into an RShape (scaled, oriented, then shifted), and adds it to the obstacles list.

Slot Flow Type Default Description
id in int required Driver index
filename in string required Path to the STL file (ASCII or binary).
center in Vec3d [0, 0, 0] Translation applied to the mesh, after scaling and rotation.
scale in double 1.0 Scale factor applied to the mesh, before rotation and translation.
orientation in Quaternion [1, 0, 0, 0] Orientation applied to the mesh, as a quaternion [w,x,y,z]. Default: identity.
minkowski in double 0.0 Minkowski (rounding) radius of the shape.

register_solid_ball

This operator add a ball to the obstacles list.

Slot Flow Type Default Description
id in int required Driver index
center in Vec3d required Center of the ball.
radius in double required Radius of the ball.

register_solid_wall

Slot Flow Type Default Description
id in int required Driver index
bounds in AABB required Domain's bounds

update_obstacles

This operator updates the obstacle field in the LBM grid based on the defined obstacles in the simulation.

No user slot.

wall_bounce_back

The WallBounceBack class is described as part of the Lattice Boltzmann Method (LBM) implementation, specifically the wall bounce back steps.

No user slot.

hippo_prepro

init_couette

This operator initializes the distribution functions in the LBM grid for a Couette flow setup. The velocity profile is defined by a linear gradient between two boundaries, going from U_inf (at value = 0) to U_sup (at value = domain_size - 1).

Slot Flow Type Default Description
U_inf in Vec3d required Prescribed velocity at the lower boundary (value = 0).
U_sup in Vec3d required Prescribed velocity at the upper boundary (value = domain_size - 1).
dimension in string required Choose the dimension.

init_double_couette

This operator initializes the distribution functions in the LBM grid for a double Couette flow setup. The velocity profile is defined by a linear gradient between two boundaries, with the velocity at one boundary specified by the input parameter U.

Slot Flow Type Default Description
U in Vec3d required Prescribed velocity at the boundary (z = 0), enforcing the Neumann condition.
dimension in string required Choose the dimension.