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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user