classdef Ferrit
    %% Konstanten
    properties (Constant = true, Hidden = false)
        % Magnetische Feldkonstante (Vakuumpermeabilität)
        mu_0 = 4 * pi * 1e-7; % [mu_0] = H/m = Vs/(Am)
    end
    
    %% Lese-Attribute
    properties (GetAccess = public, SetAccess = protected)
        % Name der Instanz
        Material = '';
        
        % Relative Permeabilität
        mu_r; % [mu_r] = 1 (dimensionslos)
        
        % Magnetische Sättigungsflussdichte
        B_sat; % [B_sat] = T = Vs/(m^2)
    end

    %% Methoden
    methods
        %% Konstruktor
        function obj = Ferrit(Material)
            switch Material
                case 'N96'
                    obj.Material = 'N96';
                    obj.mu_r = 2900;
                    obj.B_sat = 0.2;
                otherwise
                    obj.Material = 'N96';
                    obj.mu_r = 2900;
                    obj.B_sat = 0.2;
            end
        end
    end
end