Plotting Gridpoint Groups

In FLAC3D and FLAC2D you can plot contours of gridpoint data (e.g. displacement) and zone groups, however there is currently no built-in way to show gridpoint labels (e.g. groups). However, you can do this by creating and plotting user-defined (UD) scalars. See simple example below.

model new
zone create brick
zone gridpoint group 'top' range pos-z 10

fish def plot_gps
  loop foreach gp gp.list
    uds = data.scalar.create(gp.pos(gp))
    data.scalar.group(uds) = gp.group(gp)
  end_loop
end
[plot_gps]

2 Likes