ansys / pyaedt

AEDT Python Client Package
https://aedt.docs.pyansys.com
MIT License
212 stars 129 forks source link

HFSS3DLayout : "mesh fusion" activation for 3D components #5342

Open Ouam74 opened 1 month ago

Ouam74 commented 1 month ago

Description of the feature

Hi,

a customer needs a Pyaedt function that can activate/deactivate the "Mesh Fusion" for a 3D component in to HFSS3DLayout. I do not know if this function must be part of Pyaedt (HFSS3DLaout) or PyEdb (?)

Image

At the moment it's possible to do it using IronPython using the oEditor.ChangeProperty Thew also needs to be able to set all mesh settings parameter in the window (choose the "Initial mesh method", "Apply curvilinear meshing..." etc...)

Here is the IronPython code :


# ----------------------------------------------
# Script Recorded by Ansys Electronics Desktop Version 2025.1.0
# 10:29:27  Sep 26, 2024
# ----------------------------------------------
import ScriptEnv
ScriptEnv.Initialize("Ansoft.ElectronicsDesktop")
oDesktop.RestoreWindow()
oProject = oDesktop.SetActiveProject("HFSS_regions_ANSYS_phiplus20G_light")
oDesign = oProject.SetActiveDesign("VTPI")
oEditor = oDesign.SetActiveEditor("Layout")
oEditor.ChangeProperty(
    [
        "NAME:AllTabs",
        [
            "NAME:PassedParameterTab",
            [
                "NAME:PropServers", 
                "CompInst@SMA_connector_waveport8;17"
            ],
            [
                "NAME:ChangedProps",
                [
                    "NAME:HFSS Mesh Settings",
                    [
                        "NAME:MeshSettings",
                        "nc:="          , True,
                        [
                            "NAME:CE",
                            "et:="          , 0,
                            "mr:="          , "",
                            "px:="          , ["0.05"],
                            "nx:="          , ["0.05"],
                            "sx:="          , True,
                            "py:="          , ["0.05"],
                            "ny:="          , ["0.05"],
                            "sy:="          , True,
                            "pz:="          , ["0"],
                            "nz:="          , ["0"],
                            "sz:="          , False
                        ],
                        [
                            "NAME:CI",
                            "mt:="          , 1,
                            "ac:="          , False,
                            "ef:="          , False
                        ],
                        [
                            "NAME:CM",
                            "sd:="          , ["0.01mm"],
                            "nd:="          , ["22.5deg"],
                            "ar:="          , ["10"],
                            "sv:="          , 5,
                            "usd:="         , False,
                            "und:="         , False,
                            "uar:="         , False,
                            "usv:="         , False,
                            "ud:="          , False
                        ],
                        [
                            "NAME:ML",
                            "a:="           , False,
                            "le:="          , ["0.0001mm"]
                        ],
                        "ardi:="        , False
                    ]
                ]
            ]
        ]
    ])
´´´´

### Steps for implementing the feature

_No response_

### Useful links and references

_No response_
Samuelopez-ansys commented 1 month ago

Hi @Ouam74 , why did you assign this issue to us? Assigning means that we are working on this issue.