Clarification needed regarding field dumps and lumped ports #70
Replies: 2 comments 4 replies
-
I hope that helps? |
Beta Was this translation helpful? Give feedback.
-
|
Hi LubomirJagos, Thank you for your thorough answer regarding my question. Here are some comments below from my side. "don't think that that structure was meant to be in micrometers so I put right unit 1e-3 to have everything in milimeters" --> the structure was intentionally defined in micrometers. This model is for microwave device application, therefore all dimensions and frequency were intentional. Regards, |
Beta Was this translation helpful? Give feedback.









Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am struggling with three questions:
I am studying the electric field, the magnetic field and the electric current density inside and outside two materials defined by boxes. The physical quantities are to be simulated in time domain. The excitation is done using lumped port. During the simulation the above mentionned fields are saved in particular planes defined by field dumps (DumpType=0, 5 and 2). The simulation looks okay, terminating without error, I was able to load and visualize the fields against time in paraview, however, the interpretation of the magnitude of the fields is not clear. Unfortunately no units are indicated on the colorbars in paraview. Do you know what the units of the simulated dump fields are and how to add them to colorbar in paraview? It would be good to understand this basically for all DumpTypes. My code can be seen below.
The second question is regarding lumped ports. As I mentionned above, for the excitation I am using a lumped port. However, it is not clear what the physical meaning of the following things:
close all
clear all
clc
unit = 1e-6;
FDTD = InitFDTD('NrTS',5e5, 'EndCriteria',0, 'OverSampling',50);
FDTD = SetSinusExcite(FDTD,10e9);
FDTD = SetBoundaryCond(FDTD,{'MUR' 'MUR' 'MUR' 'MUR' 'MUR' 'MUR'});
CSX = InitCSX();
mesh.x = [-10:0.5:-3 -2.8:0.2:2.8 3:0.5:10];
mesh.y = [-10:0.5:-2 -1.8:0.2:1.8 2:0.5:10];
mesh.z = -10:110;
CSX = DefineRectGrid(CSX, unit, mesh);
CSX = AddMaterial( CSX, 'stripline1' );
CSX = SetMaterialProperty(CSX, 'stripline1','Epsilon',1,'Mue',0.999991,'Kappa',59594756);
start = [-2.6, -1, 0];
stop = [-0.6, 1, 100];
CSX = AddBox( CSX, 'stripline1', 999, start, stop );
CSX = AddMaterial( CSX, 'stripline2' );
CSX = SetMaterialProperty(CSX, 'stripline2','Epsilon',1,'Mue',0.999991,'Kappa',59594756);
start = [0.6, -1, 0];
stop = [2.6, 1, 100];
CSX = AddBox( CSX, 'stripline2', 999, start, stop );
start = [-1.6 0 0];
stop = [1.6 0 0];
[CSX, port] = AddLumpedPort(CSX, 5 ,1 , 50, start, stop, [1e4 0 0], true);
%Checking E-field in x-z cross section
CSX = AddDump(CSX,'Et_x_z');
CSX = AddBox(CSX,'Et_x_z',0,[-10 0 -10],[10 0 110]);
%Checking E-field in x-y cross section
CSX = AddDump(CSX,'Et_x_y');
CSX = AddBox(CSX,'Et_x_y',0,[-10 -10 30],[10 10 30]);
%Checking B-field in x-y cross section
CSX = AddDump(CSX,'Bt_x_y','DumpType',5);
CSX = AddBox(CSX,'Bt_x_y',0,[-10 -10 30],[10 10 30]);
%Checking current in x-y cross section
CSX = AddDump(CSX,'Jt_x_y','DumpType',2);
CSX = AddBox(CSX,'Jt_x_y',0,[-10 -10 30],[10 10 30]);
mkdir('tmp');
WriteOpenEMS('tmp/tmp.xml',FDTD,CSX);
CSXGeomPlot( 'tmp/tmp.xml' );
RunOpenEMS('tmp','tmp.xml','');
Your support would by highly appreciated,
Thank you and regards,
ignitions2
Beta Was this translation helpful? Give feedback.
All reactions