summaryrefslogtreecommitdiff
path: root/CSXCAD/matlab/AddMaterial.m
blob: d21a8c95c8c5f4a7f710a8d649386c34cae5c901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
function CSX = AddMaterial(CSX, name, varargin)
% function CSX = AddMaterial(CSX, name, varargin)
%
% Add a material property to CSX with the given name.
% Remember to add at least one or more geometrical primitives to any
% property.
%
% Use SetMaterialProperty to define the material constants:
%   'Epsilon':  relative electric permitivity
%   'Mue':      relative magnetic permeability
%   'Kappa':    electric conductivity
%   'Sigma':    magnetc conductivity (non-physical property)
%
% examples:
% CSX = AddMaterial( CSX, 'RO3010' );
% CSX = SetMaterialProperty( CSX, 'RO3010', 'Epsilon', 10.2, 'Mue', 1 );
% CSX = AddBox( CSX, 'RO3010', 0, [0 0 0], [100 1000 1000] );
%
% See also SetMaterialProperty, SetMaterialWeight, AddMetal, AddExcitation,
% AddProbe, AddDump, AddBox
%
% CSXCAD matlab interface
% -----------------------
% author: Thorsten Liebig

CSX = AddProperty(CSX, 'Material', name, varargin{:});