Skip to content
Snippets Groups Projects
Commit 32154297 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

upd message

parent c9ad681f
No related branches found
No related tags found
1 merge request!2021Allow (x,y,z) magnetization for particles in any layer (#765)
Pipeline #115150 passed
...@@ -84,7 +84,7 @@ void Slice::initBField(R3 h_field, double h_z) ...@@ -84,7 +84,7 @@ void Slice::initBField(R3 h_field, double h_z)
{ {
// Temporary forbid z-magnetization in all layers (see issue #654) // Temporary forbid z-magnetization in all layers (see issue #654)
if (m_material.magnetization().z() != 0) 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; static constexpr double Magnetic_Permeability = 4e-7 * pi;
m_B_field = Magnetic_Permeability * (h_field + m_material.magnetization()); m_B_field = Magnetic_Permeability * (h_field + m_material.magnetization());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment