entity icon indicating copy to clipboard operation
entity copied to clipboard

Archetypes simplified

Open haykh opened this issue 2 months ago • 0 comments

Breaking changes

  • Particle injector archetypes are now greatly simplified:

Uniform injector

const auto energy_dist_1 = ...;
const auto energy_dist_2 = ...;

InjectUniform<S, M, decltype(energy_dist_1), decltype(energy_dist_2)>(
  params, 
  domain,
  { 1, 2 },
  { energy_dist_1, energy_dist_2 },
  total_number_density
)

Nonuniform injector

const auto energy_dist_1 = ...;
const auto energy_dist_2 = ...;
const auto spatial_dist = ...;

InjectNonUniform<S, M, decltype(energy_dist_1), decltype(energy_dist_2), decltype(spatial_dist)>(
  params, 
  domain,
  { 1, 2 },
  { energy_dist_1, energy_dist_2 },
  spatial_dist,
  max_number_density
)

You may pass the same energy_dist instance for both species.

  • .info, .log, .err files are now written in the same directory as the output
  • there is an additional .out file which accumulates the stdout

haykh avatar Nov 10 '25 00:11 haykh