Main Content

electromagneticProperties

(To be removed) Assign properties of material for electromagnetic model

Since R2021a

    electromagneticProperties will be removed. Use materialProperties instead. (since R2023a) For more information on updating your code, see Version History.

    Description

    electromagneticProperties(emagmodel,"RelativePermittivity",epsilon) assigns the relative permittivity epsilon to the entire geometry. Specify the permittivity of vacuum using the electromagnetic model properties. The solver uses a relative permittivity for electrostatic and harmonic analyses.

    For a nonconstant material, specify epsilon as a function handle.

    example

    electromagneticProperties(emagmodel,"RelativePermeability",mu) assigns the relative permeability to the entire geometry. Specify the permeability of vacuum using the electromagnetic model properties. The solver uses a relative permeability for magnetostatic and harmonic analyses.

    For a nonconstant material, specify mu as a function handle.

    electromagneticProperties(emagmodel,"Conductivity",sigma) assigns the conductivity to the entire geometry. The solver uses a conductivity for DC conduction and harmonic analyses.

    For a nonconstant material, specify sigma as a function handle.

    electromagneticProperties(emagmodel,"RelativePermittivity",epsilon,"RelativePermeability",mu,"Conductivity",sigma) assigns the relative permittivity, relative permeability, and conductivity to the entire geometry. Specify the permittivity and permeability of vacuum using the electromagnetic model properties. The solver requires all three parameters for a harmonic analysis.

    For a nonconstant material, specify epsilon, mu, and sigma as function handles.

    electromagneticProperties(___,RegionType,RegionID) assigns the material properties to specified faces of a 2-D geometry or cells of a 3-D geometry. Use this syntax with any of the input argument combinations in the previous syntaxes.

    mtl = electromagneticProperties(___) returns the material properties object.

    Examples

    collapse all

    Specify relative permittivity for an electrostatic analysis.

    Create an electromagnetic model for electrostatic analysis.

    emagmodel = createpde("electromagnetic","electrostatic");

    Import and plot a geometry of a plate with a hole in its center.

    gm = importGeometry(emagmodel,"PlateHoleSolid.stl");
    pdegplot(gm)

    Figure contains an axes object. The axes object contains 6 objects of type quiver, text, patch, line.

    Specify the vacuum permittivity value in the SI system of units.

    emagmodel.VacuumPermittivity = 8.8541878128E-12;

    Specify the relative permittivity of the material.

    mtl = electromagneticProperties(emagmodel,"RelativePermittivity",2.25)
    mtl = 
      ElectromagneticMaterialAssignment with properties:
    
                  RegionType: 'Cell'
                    RegionID: 1
        RelativePermittivity: 2.2500
        RelativePermeability: []
                Conductivity: []
    
    

    Input Arguments

    collapse all

    Electromagnetic model, specified as an ElectromagneticModel object. The model contains a geometry, a mesh, the electromagnetic properties of the material, the electromagnetic sources, and the boundary conditions.

    Relative permittivity, specified as a number or a function handle.

    • Use a positive number to specify a relative permittivity for an electrostatic analysis.

    • Use a real or complex number to specify a relative permittivity for a harmonic electromagnetic analysis.

    • Use a function handle to specify a relative permittivity that depends on the coordinates and, for a harmonic analysis, on the frequency.

    For details, see More About.

    Data Types: double | function_handle
    Complex Number Support: Yes

    Relative permeability, specified as a positive or complex number or a function handle.

    • Use a positive number to specify a relative permeability for a magnetostatic analysis.

    • Use a complex number to specify a relative permeability for а harmonic electromagnetic analysis.

    • Use a function handle to specify a relative permeability that depends on the coordinates and, for a harmonic analysis, on the frequency.

    For details, see More About.

    Data Types: double | function_handle
    Complex Number Support: Yes

    Conductivity, specified as a nonnegative number or a function handle. Use a function handle to specify a conductivity that depends on the coordinates and, for a harmonic analysis, on the frequency. For details, see More About.

    Data Types: double | function_handle

    Geometric region type, specified as "Face" for a 2-D geometry or "Cell" for a 3-D geometry.

    Data Types: char | string

    Region ID, specified as a vector of positive integers. Find the face or cell IDs by using pdegplot with the "FaceLabels" or "CellLabels" name-value argument set to "on".

    Example: electromagneticProperties(emagmodel,"RelativePermeability",5000,"Face",1:3)

    Data Types: double

    Output Arguments

    collapse all

    Handle to material properties, returned as an ElectromagneticMaterialAssignment object. For more information, see ElectromagneticMaterialAssignment Properties.

    mtl associates material properties with the geometric faces.

    More About

    collapse all

    Version History

    Introduced in R2021a

    expand all