Antenna surface current distribution

I had an antenna design in CST microwave studio. I want to draw the surface current distribution of the antenna in Matlab. I export the. txt file of the surface current distribution from CST, please see the attached files. Is it possible to draw the surface current distribution of the antenna using the Matlab environment?

5 comentarios

darova
darova el 8 de Abr. de 2020
You have nodes and some values in them. Do you have an order of how those vertices should be connected?
Face1 = [1 2 3];
Face2 = [6 7 8];
irfan Ullah
irfan Ullah el 10 de Abr. de 2020
Well, thank you for your reply but I don't know about the order of vertices. The attached xlsx file is only surface data that I can extract from the CST simulator.
try this
A = xlsread('Surface current.xlsx');
%%
x = A(:,1);
y = A(:,2);
z = A(:,3);
v1 = A(:,4);
xx = linspace(min(x),max(x),30);
yy = linspace(min(y),max(y),30);
zz = linspace(min(z),max(z),30);
[X,Y,Z] = meshgrid(xx,yy,zz);
V = griddata(x,y,z,v1,X,Y,Z);
%%
sx = [min(x)+5 max(x)-5];
sy = [min(y)+5 max(y)-5];
% sz = [min(z)+5 max(z)-5];
sz = linspace(min(z)+5,max(z)-5,5);
p = slice(X,Y,Z,V,sx,sy,sz);
set(p,'edgecolor',[1 1 1]*0.5)
axis equal vis3d
irfan Ullah
irfan Ullah el 12 de Abr. de 2020
Thank you for your help. I have tried the code you suggested. The plot does not look right. I was expecting that the outcome should be the same to the examples provided on the Matlab website:https://uk.mathworks.com/help/antenna/ref/current.html
You can try scatter3
ind = (v1-min(v1))/(max(v1)-min(v1))*254+1;
cmap = jet(255);
cmap = cmap(round(ind),:);
scatter3(x,y,z,10,cmap,'fill')
colorbar
It's the best you can do with pointcloud. See also isosurface
You need more information/data to create surface/body

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Design, Analysis, Benchmarking, and Verification en Centro de ayuda y File Exchange.

Preguntada:

el 8 de Abr. de 2020

Comentada:

el 12 de Abr. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by