Skip to content

Solid ball

Description

register_solid_ball registers a sphere of center \(\mathbf{x}_c\) and radius \(R\): a node \(\mathbf{x}\) is solid when \(\|\mathbf{x} - \mathbf{x}_c\| \le R\).

YAML syntax

1
2
3
4
5
set_obstacles:
  - register_solid_ball:
     id: 0
     center: [0.1, 0.05, 0.1]
     radius: 0.013
Slot Type Default Description
id int required unique identifier of the obstacle
center Vec3d required center of the sphere (m)
radius double required radius of the sphere (m)

Usage example

Flow past a sphere (lbm_karman_vortex)

set_obstacles:
  - register_solid_ball:
     id: 0
     center: [0.1001, 0.1027, 0.15023]
     radius: 0.03

See the Kármán vortex street tutorial.