Added the analytical approximation for the magnetic

field in the P8 LFA scenario:
Ioffe: infinite wire approximations
Bottle: Gaussian profile in Bz
This commit is contained in:
2026-06-09 09:29:21 +02:00
parent 46277ae340
commit ca7b637577
3 changed files with 122 additions and 0 deletions
@@ -95,6 +95,9 @@ std::shared_ptr<VectorField> buildVectorField(json_t* object) {
return std::make_shared<VectorFieldFromArray>(
v_radial, v_azimuthal, v_longitudinal, radius, length);
} else if (json_object_by_path(object, {"PredefinedLFAMagneticField"})) {
SIM_INFO("Warn: The predefined function is a magnetic field!!!");
return std::shared_ptr<VectorField>(new PredefinedMagneticVectorFieldLFA());
} else {
ERROR("This vector field is not implemented");
return nullptr;