Phase and amplitude of E field in Frequency domain #258
Unanswered
MedericQUT
asked this question in
Q&A Usage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I try to setup the simple simulation of all to understand the dta format of OpenEMS. See below:
`
%% setup FDTD parameter & excitation function %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
FDTD = InitFDTD('NrTS', 1*1e4);
FDTD = SetSinusExcite(FDTD,f_0);
% boundary conditions
BC = [3 3 3 3 3 3];
FDTD = SetBoundaryCond(FDTD,BC);
%unrelevant code missing for clarity....
%% add the dipol %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
start = [mesh.x(15) mesh.y(8) mesh.z(3)];
stop = [mesh.x(15) mesh.y(8) mesh.z(12)];
CSX = AddExcitation(CSX,'excite',1,[0 0 1]);
CSX = AddBox(CSX,'excite',1 ,start,stop);
%unrelevant code missing for clarity....
%% define dump box... %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
CSX = AddDump(CSX,'E_dump_f','DumpType',10,'FileType',1,'Frequency',f_0);
start = [mesh.x(1) mesh.y(1) mesh.z(1)];
stop = [mesh.x(end) mesh.y(end) mesh.z(end)];
CSX = AddBox(CSX,'E_dump_f',1 , start,stop);
WriteOpenEMS([Sim_Path '/' Sim_CSX],FDTD,CSX);
RunOpenEMS(Sim_Path, Sim_CSX);
%% read data
[field mesh_h5] = ReadHDF5Dump([Sim_Path '/E_dump_f.h5']);
%Ez along the Z mid plane
Ez = squeeze(field.FD.values{1}(:,:,9,3));
`
When i plot the real part of Ez it looks correct:

But if i look into the details of amplitude and phase, they have 'discrete' value.

Does this look normal to you?
Kind regards :)
Beta Was this translation helpful? Give feedback.
All reactions