Skip to content

Assign mesh operation #4886

Closed Answered by lorenzovecchietti
aknsj asked this question in Q&A
Jul 5, 2024 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Hi, you have to modify manually the properties of a mesh operation

import pyaedt
from collections import OrderedDict

ipk=pyaedt.Icepak(specified_version="2024.1")
ipk.modeler.create_box([0,0,0], [1,1,1], name="Box1")
ipk.mesh.assign_mesh_level({"Box1":2})
ipk.mesh.meshoperations[0].props.update(OrderedDict({
 "MaxLevel": "3",
 "MinLevel": "1",
 "Local Mesh Parameters Enabled": True,
 "X count": "1.5",
 "Y count": "2.5",
 "Z count": "3"
}))
ipk.mesh.meshoperations[0].props.pop("Level")
ipk.mesh.meshoperations[0].update()

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@aknsj
Comment options

@pruthvi1991
Comment options

@lorenzovecchietti
Comment options

@aknsj
Comment options

@lorenzovecchietti
Comment options

Answer selected by lorenzovecchietti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants