inclusion gradB field and quickfix reading from array

This commit is contained in:
2024-06-25 10:08:12 +02:00
committed by csendlinger
parent f82cbf4c47
commit a1444bceaa
4 changed files with 14 additions and 5 deletions
+7 -2
View File
@@ -16,13 +16,18 @@ void ElectricField::updateDynamicField(std::shared_ptr<VectorField> field) {
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
MagneticField::MagneticField(std::shared_ptr<VectorField> field)
: field_(field) {}
MagneticField::MagneticField(std::shared_ptr<VectorField> field,
std::shared_ptr<VectorField> gradient)
: field_(field), gradient_(gradient) {}
CylinderVector MagneticField::value(const Coordinate& position) const {
return field_->value(position);
}
CylinderVector MagneticField::gradientValue(const Coordinate& position) const {
return gradient_->value(position);
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////