Skip to content
Snippets Groups Projects

Allow (x,y,z) magnetization for particles in any layer (#765)

Merged Mikhail Svechnikov requested to merge m.i765 into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -84,7 +84,7 @@ void Slice::initBField(R3 h_field, double h_z)
{
// Temporary forbid z-magnetization in all layers (see issue #654)
if (m_material.magnetization().z() != 0)
throw std::runtime_error("Processing z-magnetization is not implemented yet.");
throw std::runtime_error("Processing z-magnetization of layers is not implemented.");
static constexpr double Magnetic_Permeability = 4e-7 * pi;
m_B_field = Magnetic_Permeability * (h_field + m_material.magnetization());
Loading