ansys / pyedb-core

Ansys Electronics Database Python Client Package
https://edb.core.docs.pyansys.com/
MIT License
4 stars 2 forks source link

How to assign Mesh operation ? #444

Closed svandenb-dev closed 1 month ago

svandenb-dev commented 1 month ago

🔍 Before submitting the issue

🐞 Description of the bug

My mesh operation is created mop = GrpcLengthMeshOperation(name=name, net_layer_info=net_layer_op, refine_inside=refine_inside, mesh_region=mesh_region, max_length=max_length, restrict_max_length=restrict_length, restrict_max_elements=restrict_elements, max_elements=max_elements)

image

image

image

Mesh operation remains empty

image

also tried this

image

📝 Steps to reproduce

NA

💻 Which operating system are you using?

Windows

📀 Which ANSYS version are you using?

No response

🐍 Which Python version are you using?

3.10

📦 Installed packages

NA
drewm102 commented 1 month ago

@svandenb-dev You are correct that mesh ops should be set like this:

self.mesh_operations = [mop]

However, max_elements should be a str not an int. Changing it to an str will fix this issue.

svandenb-dev commented 1 month ago

@drewm102 I confirm it is working now