-
Calling an IronPython Recorded Script in Python
Hello, I am writing a script to automate a Maxwell3d design using python. I have an already recorded script in maxwell and was wondering if I can call this script using "Run Script" command or other methods while I am in python?
-
From model to pyAEDT script
Are there ways to generate a pyAEDT script based on a defined model in Ansys Maxwell? In a similar way as when recording a vbs-script?
-
How to import data to jupyter lab from maxwell
Now I got trouble for get data from Maxwell to python console. I use this code to get data torque = M2D.post.get_solution_data("Moving1.Torque",variations={"Time":["All"]}, primary_sweep_variable="Time") torque.plot() And this code work but I want average value of "Moving1.Torque" by int value. but numpy.mean(torque)…
-
How to set active variation from pyaedt
Hello, I have a parametric sweep set up and solved in the eddy current solver for maxwell 3D and I am trying to use the fields calculator through pyaedt to export the B field and grad B at the different frequencies in the parametric sweep (NB not the standard frequency sweep!). * The project I am using has lots of…
-
How to use libGLTFWriter.lib static c++ library in python to create .avz file ?
I have integrated the Ansys Viewer into one of the Ansys web application, and it is using OptisLang as a flagship product. Now I have FMOP data to visualize my CAD file in the Python 3D viewer, but I want to visualize it in the Ansys viewer. As Statics of Structure (OptisLang tool) does not have the facility to convert…
-
How to remove all boundaries in PyAEDT?
How can I remove all boundary conditions with PyAEDT script? In AEDT GUI, I can right click on the "Thermal" in the "Project Manager" panel and select "Delete All" in the context menu. All boundary conditions is then removed in a second. Is there a function in PyAEDT?
-
How to get number of cores and tasks set in HPC settings in AEDT - Icepak?
Dear All, I am working on an automation project where I need to query a number of cores and a number of task values. I am struggling to get that, please help me if someone knows how to do it. thanks in advance. it would be great if we can do it through pyaedt. Thanks, Nitin
-
UDM scripts into PyAEDT
Hello, I have some old (by someone else) Python scripts & libraries for the purpose of creating geometries in HFSS, that I wish to bring into PyAEDT and use PyAEDT instead of UDM to create the geometries. What would be the steps to achieve this! I will greatly appreciate if anyone can provide some suggestions. Regards Abhi
-
Error Installing/running PyAEDT for AEDT 23R1
Hello, Recently I tried to install PyAEDT from the "PyAEDT Installer Python file" from PyAnsys Website as shown in attached Capture1. But I see errors as in Captures 4 when I try to run a/ny code in Jupyter. Also (from Captures 2 & 3), it seems like PyAEDT may not have installed properly for 23R1 on my machine . Could you…
-
[PyAEDT][PyAnsys] How to use submit_job function to work with Ansys Cloud
Hello, I am looking for some help regarding submitting jobs via PyAEDT/PyAnsys to the Ansys Cloud. There is an issue with the command Hfss.submit_job (found here). Firstly, the arguments are not well defined (for example clustername is only defined as string, not the correct inputs for this string, any one know what…
-
PyAEDT Referencing different Coordinate systems
Is there a way to return values from primitives like (EdgePrimitive.midpoint) in reference to a different coordinate system that is not the global coordinate system?
-
PyAEDT Optimetrics Far Field
I'm looking to use add — PyAEDT (pyansys.com) to add a goal in optimetrics based on the far field patterns. It seems the tool is only coded for Modal Solution Data. Is there a way to add goals based on far fields? Thanks
-
How to create a Common Mode Choke with different number of turns in two layers
Hi, I'm trying to model a Common Mode Choke which has two layers of windings. The number of turns is different for each layer. I tried different values of "Layer", "Layer Type" and "Similar Layer", but cannot get the correct design. Values = { "Number of Windings": {"1": False, "2": True, "3": False, "4": False}, "Layer":…
-
how to plot Axial Ratio from pyaedt?
Hi, i can plot S11 plot from pyaedt with simple instructions but I'm not able to plot axial ratio. I use this "raw" code: ################# PLOT SETTING ################## import matplotlib.pyplot as plt from cycler import cycler size=30 params = {'legend.fontsize':size*0.60 , 'legend.facecolor':'ghostwhite',…
-
change power/ground nets to signal net in edb api
Hi, I want to change the power nets to signal nets in edb api. I could not find a method in the documentation for this. I would appreciate if anyone knows how to do it. Thanks
-
Assign perfect E to an object in pyaedt
Hi, i drew this stepped cone. After unites all parts how to assign a Perfect E Boundary condition to the cn1 object? hfss.modeler.create_cone(cs_axis='Z', position=["-l", 0,"-ty/2+h2+h3+h4+h5"], bottom_radius="r1", top_radius=0, height="h1", name="cn1", matname="pec") hfss.modeler.create_cone(cs_axis='Z', position=["-l",…
-
Duplicating port in Directional coupler
I created a port in a directional coupler , designed as a quarter and duplicated with duplicate_and mirror, using the following instruction: hfss.modeler.create_polyline(position_list = [["-(l35/2+pl)", "l1-l2-w50/2", "h1"], ["-(l35/2+pl)", "l1-l2-w50/2", "0"]], name="port1", xsection_type="Line", xsection_width="w50") Is…
-
Assign port on circle sheet
Hi, i want to create a lumped port for a circle called "port" n pyaedt. I used this code for port creation: int_line_start=["fx-r_ext","0","h_SMA"] int_line_end=["fx","0","h_SMA"] hfss.create_lumped_port_to_sheet("port", axisdir=[int_line_start, int_line_end], portname="1",…
-
External Coil Excitation for pyAEDT Maxwell2d
Hi, I am trying to automate AEDT tasks with pyaedt. As part of my workflow, I need to create an external schematic to import a netlist for external excitation of the coils (instead of Current or Voltage). Using the Ansys AED GUI, this would work as follows: Select the machine model in the project on the left On the top:…
-
PyAedt HFSS: Can scale be used?
Is there a command for Edit>Scale?
-
how to run cpython and pyaedt from electronics desktop
I would like to run a cpyton script from aedt
-
Export local variables from existing AEDT project
In an existing Ansys Electronic Desktop project, I have defined a list of variables (Design Properties > Local Variales). I want to export the variables and the values, so I can reuse them in a Python script with AEDTLib. How can I do that?