Line Integral Convolution (LIC) visualization tool for 2D vector fields
Documentation is available here
This package builds over the following Julia packages
using Plots
using LineIntegralConvolution
pt_per_meter = 25 # resolution, number of pixels per meter
x_min = -10.
x_max = 10.
y_min = 2.
y_max = 13.
n_charges = 10 # number of charges to simulate
charge_value = 1e-6 # electric charge value (C)
distribution = "circle" # "circle", "random"
SEED = 1
field_result = load_2d_electrostatic_example(
x_min, x_max, y_min, y_max, pt_per_meter,
n_charges=n_charges, distribution=distribution,
seed=SEED,
charge_value=charge_value
)
lic(field_result.f)
savefig("electric_charges.pdf") # export to PDF vectorial image
savefig("electric_charges.png") # export to PNG
This project started on April, 2023
.