-
-
March 30, 2021 at 5:57 am
MANNAN
SubscriberI would like to know any script that will generate the dipoles in below mention pattern in the FTDT environment. in the XY plan
April 1, 2021 at 4:15 pmGreg Baethge
Ansys EmployeeHi Array,nThanks for posting your question. I take the liberty to reply on behalf of my colleagues Array I don't think we really have any script example doing exactly this, but I don't think it is very difficult. The basic idea is to run 2 nested loops, one on the angle (theta) and one of the position of the dipole for a defined theta, and calculate the xy coordinates.nFor example, it could be something like:nntheta = 36; # number of angle pointsnnr = 10; # number of point along each radiusnrmax = 5e-6; # max value of the radiusntheta = linspace(0, 360, ntheta);nr = linspace(0, rmax, nr);nfor(i=1:ntheta) {n for(j=1:nr) {n x = r(j)*cos(theta(i)*pi/180);n y = r(j)*sin(theta(i)*pi/180);nn adddipole;n set(x, x);n set(y, y);n }nnNote this script is probably incomplete: for instance, it will add a dipole at (0,0) for each value of theta while you probably only want 1 and there might be duplicate for theta=0 and theta=360. nViewing 1 reply thread- The topic ‘Script for Generating of evenly spaced dipole in a circle FTDT’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3632
-
1313
-
1142
-
1068
-
1008
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.