Skip to content

How to get the grid of a scoped meshed_region by named selection? #487

Closed Answered by rmanno91
rmanno91 asked this question in Q&A
Discussion options

You must be logged in to vote

Well we found the solution, thanks anyways :)

mesh_op = dpf.operators.mesh.from_scoping()
mesh_scoping = dpf.mesh_scoping_factory.named_selection_scoping("CM_1", model=model)
my_scoping = mesh_op.inputs.scoping.connect(mesh_scoping)
my_inclusive = int(0)
mesh_op.inputs.inclusive.connect(my_inclusive)
mesh_op.inputs.mesh.connect(model.metadata.meshed_region)

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

rmanno91
Sep 16, 2022
Collaborator Author

You must be logged in to vote
4 replies
@PProfizi
Comment options

@PProfizi
Comment options

@itanfeng
Comment options

@PProfizi
Comment options

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