AddMaterial

Adds a local material.

UI Access Add Material in the material editor.
Parameters
Name

 

Type Description

<MaterialParams>

Array

[

"NAME: <name of the material to be added>",

<MatProperty>, <MatProperty>, ...

]

 

<MatProperty>

Array

For simple material:

"<PropertyName>:=", <value>

 

For anisotropic material:

[

"NAME:<PropertyName>",

"property_type:=", "AnisoProperty",

"unit:=", <Unit>",

"component1:=", <value>,

"component2:=", <value>,

"component3:=", <value>))

]

 

<PropertyName>

String

Should be one of the following (depending on the material, design, and solution types):

Electromagnetic (Maxwell-exclusive material properties omitted, see Maxwell Scripting help):

"permittivity", "permeability", "conductivity", "dielectric_loss_tangent",

"magnetic_loss_tangent", "electric_coercivity", "magnetic_coercivity",

"saturation_mag", "lande_g_factor", "delta_H", "delta_h_freq", "mass_density"

Thermal (including solids, Icepak fluid flow, and Mechanical rotating fluid modeling):

"thermal_conductivity", "mass_density", "specific_heat",

"thermal_expansion_coefficient", "thermal_material_type", "viscosity",

"diffusivity", "molecular_mass", "clarity_type"

Structural:

"mass_density", "youngs_modulus", "poissons_ratio",

"thermal_expansion_coefficient"

 

<Unit>

String

Possible values (Maxwell-exclusive properties omitted, see Maxwell Scripting Help; other missing entries are unitless):

conductivity: "siemens/m"

saturation_mag: "uTesla", "mTesla", "tesla", "kTesla", "uGauss", "mGauss", "gauss", "kGauss"

delta_H: "A_per_meter", "kA_per_meter", "Oe", "kOe"

delta_h_frequency: "Hz", "kHz", "MHz", "GHz", "THz", "rps", "per_sec"

mass_density: "kg/m^3"

thermal_conductivity: "W/m-C"

specific_heat: "J/kg-C"

youngs_modulus: "N/m^2"

thermal_expansion_coefficient: "1/C"

 

Return Value None

 

Python Syntax

AddMaterial (["NAME:<MaterialName>",

<MatProperty>, <MatProperty>, ...])

Python Example

oDefinitionManager.AddMaterial(

["permittivity:=", "2.2", "0.002"])

 

oDefinitionManager.AddMaterial [("NAME:Material2",_

"dielectric_loss_tangent:=", "44",

Array("NAME:saturation_mag",_

"property_type:=", "AnisoProperty",_

"unit:=", "Gauss",_

"component1:=", "11", _

"component2:=", "22", _

"component3:=", "33"), _

"delta_H:=", "44Oe")]