微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 电磁仿真讨论 > Is anybody familiar with XFDTD?

Is anybody familiar with XFDTD?

时间:03-22 整理:3721RD 点击:
Hi everyone!

I have made some simulations with XFDTD recently. I have one question here, I want to export the patterns to matlab for re-drawing, however, that software just provide *.jpg and *.ps versions. how can I do? If anybody knows how to deal with *.ps, please help me, thank you in advance!

Best regards!
Edmund

well, I do not think you can do much with .ps. It is just another vector image format as .eps figures. It is much more appropriate for printing. somehow, xfdtd must be keeping the field data in some sort of ASCII text file. but I am not sure which file that woukd be.

Thanks!
Yeah, irfan1, you are right, I just want to get some ASCII files for plotting, however, I can't.

hi edmund,

take a look to the "*.cef" files (for the e-field)! In this files you have:

- first 5 lines with a header for example like this:
1
2000 % number of timesteps
1 12 0
41 41 41 % grid nx, ny, nz
1.000000e-003 1.000000e-003 1.000000e-003 % gridsize

Starting with line 6 you have the field values in a column with 4 rows:
ex ey ez abs(e)

One cef-file has the values for 1 whole plane (see index in the name of the cef file)
The values are aranged always in lines: for example you start with ny=1,
read al the values in nx direction, and increase ny to 2 and read whole next line.

To read automaticaly all to Matlab I have written a short Macro that:
-renames me al the *.cef files to slice1.txt, slice2.txt.. and so on
-clears in every cef files the first 5 header lines

In this way I can simply load all to Matlab with
load slice1.txt;
load slice2.txt;
...

For the Macro I have used MacroScheduler (http://www.mjtnet.com/)
a very simple program that you are able to use after 1/2 hour.

hope this helps you:


best regards: ricy

By the way,
how about the xfdtd compare to hfss

For near field pattern, please refer to ricy's post. For radiation pattern, after you compute the Far-field Data, you should have files such as
projectname.tvp0.tb0.te360.in5, etc. It was organized as
#angle Ephi mag Etheta mag Ephi phase Etheta phase

All the necessary files are located in the folder where u have saved the geomatery. For Example data for S11 can be found in GeromtryName.S11:D

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top