|
| float | hmap::gpu::helper_vflow_compute_adaptive_dt (const Array &h, float viscosity, float power) |
| Array | hmap::gpu::flow_simulation (const Array &z, float water_depth, const Array &depth_map, int iterations, float dt=0.5f, bool flux_diffusion=true, float flux_diffusion_strength=0.01f, float dry_out_ratio=0.f, const Array *p_rain_map=nullptr, float rain_rate=0.f, float evap_rate=0.f, bool outflow_boundaries=false, Array *p_vel_u=nullptr, Array *p_vel_v=nullptr, int sync_interval=0, const UvTile ®ion=UvTile::dummy(), ICommunicator &comm=SingleArrayComm::instance()) |
| | GPU hydraulic flow simulation using a virtual-pipes model; simulates shallow-water transport over a height field using iterative flux computation and water transport passes, with optional flux diffusion and post-simulation dry-out. The whole iteration loop runs on the device: the terrain is uploaded once, depth and fluxes ping-pong between device images, and only the final depth (and velocity, if requested) are read back.
|
| Array | hmap::gpu::flow_simulation_viscous (const Array &z, float water_depth, const Array &depth_map, int iterations, float dt=-1.f, float dry_out_ratio=0.f, float viscosity=1.f, float power=2.5f, float evap_rate=0.f, bool outflow_boundaries=false, int sync_interval=0, const UvTile ®ion=UvTile::dummy(), ICommunicator &comm=SingleArrayComm::instance()) |
| | GPU viscous shallow-water flow simulation using non-linear thin-film diffusion with upwind mobility.
|