Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

the question about visualizatiion of 3D FDTD using matlab ?

Status
Not open for further replies.

waves

Newbie level 3
Joined
Apr 12, 2004
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
33
hi all...

anybody can help me....
I had make a 3d fdtd program using matlab, but i have difficults to make program codes of it to visualize the fields distribution in 3D ( Ex, Ey, Ez) ?
 

Re: the question about visualizatiion of 3D FDTD using matla

hmmm....i dont know what's object that you are visualized ???
may be for 2D generally this is can u try..

after script of field array of your program, u write :

% Movie initialization
tview:),: )=ez:),:,kobs); <-- to see field distr. at z= kobs
subplot(1,1,1),pcolor(tview');
shading flat;
caxis([-0.1 0.1]); <---- range of field intensity in color
axis([1 IE 1 JE]); <--- range of x and y axis
colorbar;
axis image;
title(['Ez at time step',= 0']);
xlabel('i coordinate');
ylabel('j coordinate');

rect=get(gcf,'Position');
rect(1:2)=[0 0];

M=moviein(nmax/4,gcf,rect);

after script of " update field", u write :

% visualize fields
if mod(n,4)==0; <--- to see figure for 4 time delay

timestep=int2str(n);

tview:),: )=ez:),:,kobs);

subplot(1,1,1),pcolor(tview');
shading flat;
caxis([-0.1 0.1]);
axis([1 IE 1 JE]);
colorbar;
axis image;
title(['Ez(i,j,k= ?), time step = ',timestep]);
xlabel(' i coordinate i');
ylabel('j coordinate');

nn=n/4;
M:),nn)=getframe(gcf,rect);

end;

end
movie(gcf,M,0,10,rect);

yea..may be U just need to try it....

but if to visualize 3D...I'm can not too.., may be the other friends can help... :roll:
 

ok peep..thanks.
but I'm still difficults how to simulate the field distribution ( Ex, Ey, Ez) in three dimension.

(I'm beginner)
 

Re: the question about visualizatiion of 3D FDTD using matla

waves said:
ok peep..thanks.
but I'm still difficults how to simulate the field distribution ( Ex, Ey, Ez) in three dimension.

(I'm beginner)

if you meen you need to shoe the results in 3D, i should suggest you to use inherent 3D visualization of Matlab Toolboxs. i dont now remember the toolbox, but i think they are in PDE toolbox, i used it befor, it was wonderfull and so pretty. sorry that i cant remember exactly:(, try to search matlab help. if you still couldnt find it, i will help, just PM me.
 

thanks Mamali,

Are there anybody have a 3D FDTD matlab code with PML ?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top