Personal tools
You are here: Home Forum Use How to get the ID of an edg

How to get the ID of an edg

Up to Use

Re: How to get the ID of an edg

Posted by andrea dm at June 04. 2020

Sorry I cannot write anything in the previous message.

The question is, how can I get the IDs of some edges in 2D viscous layer definition via TUI? 

For example in my script I define the viscous layer as:

Viscous_Layers_2D_1 = NETGEN_2D.ViscousLayers2D(0.001,10,1)
Viscous_Layers_2D_1.SetEdges( [ 22, 10, 12, 20 ], 0 )

The domain is a face composed by several edges, however I'm not able to identify with a method the IDs of those 4 edges.

Thanks,

andrea


Re: How to get the ID of an edg

Posted by Christophe Bourcier at June 04. 2020

Hi,

you can use:

geompy.GetSubShapesIDs(main_shape, sub_edges)

where sub_edges is a list of edges of main_shape.

You can also call directly:

NETGEN_2D.ViscousLayers2D(0.001,10,1,Wall,0)

where Wall is a group of edges (you can also set a list of edges instead).

Christophe

Powered by Ploneboard
Document Actions