Personal tools
You are here: Home Forum Use GetSubMesh fails 'not sub-shape of the main shape'

GetSubMesh fails 'not sub-shape of the main shape'

Up to Use

GetSubMesh fails 'not sub-shape of the main shape'

Posted by MarcoC at April 12. 2018

Hi,

 

i would like to get a mesh 2D (face1) as a starting point for a 3D mesh.

but SMESH raises an exception  

p, li { white-space: pre-wrap; }

type=BAD_PARAM, text='not sub-shape of the main shape'

 

at the line 193 of the attached script.

 

How can I manage this exception ?

 

Regards,

 

Marco

 

 

Attachments

Re: GetSubMesh fails 'not sub-shape of the main shape'

Posted by Saint Michael at April 12. 2018

If you have a mesh on face1, you can create sub-meshes only on shapes extracted some-how from face1. There are many functions to extract sub-shapes, starting from ExtractShapes() to more sophisticated ones, see a list of such functions here http://www.salome-platform.org/forum/forum_14/325180607/881388445

St.Michael

Re: GetSubMesh fails 'not sub-shape of the main shape'

Posted by MarcoC at April 12. 2018

Previously Saint Michael wrote:

If you have a mesh on face1, you can create sub-meshes only on shapes extracted some-how from face1. There are many functions to extract sub-shapes, starting from ExtractShapes() to more sophisticated ones, see a list of such functions here http://www.salome-platform.org/forum/forum_14/325180607/881388445

St.Michael

 

My problem is that I would like to mash face1 with a structured quadrangle mesh.

If I apply to face1

geompy.SubShapeAll(face1,geompy.ShapeType["EDGE"])

to extract edges, instead of four edges, as I would like, I obtain plenty of edges and I can't construct 1D hypotesis for meshing face1.

I have tried to build a compound and meshing it without success.

How can I manage it ?

 

Regards MarcoC

 

 

Attachments

Re: GetSubMesh fails 'not sub-shape of the main shape'

Posted by Saint Michael at April 12. 2018

Can you share your /home/marco/salome_example/rudder/Rudder.igs? or ~/salome_example/rudder/rudder_01.hdf?

St.Michael

Re: GetSubMesh fails 'not sub-shape of the main shape'

Posted by MarcoC at April 12. 2018

Here it is,

Regards,

MarcoC

Attachments

Re: GetSubMesh fails 'not sub-shape of the main shape'

Posted by Saint Michael at April 12. 2018

As far as I see you want to obtain different discretization on sides of face1. But it's difficult to create a sub-mesh on curved sides because of a large number of edges. You can avoid creating a sub-mesh on multiple edges. Just create a sub-mesh on face1 and assign there hypothesis that will apply to the whole curved sides. Also you need sub-mesh(es) on two straight edges (Edge_2 and Edge_161). To mesh multiple edges as one edge, use Composite Side Discretization algo.

St.Michael

Re: GetSubMesh fails 'not sub-shape of the main shape'

Posted by MarcoC at April 13. 2018

St.Michael, thank's for your answer.

Could you please send me a TUI (.py) file of what you mean ?

Regards,

 

MarcoC

Re: GetSubMesh fails 'not sub-shape of the main shape'

Posted by Saint Michael at April 13. 2018

Here it is

St.Michael

Attachments

Re: GetSubMesh fails 'not sub-shape of the main shape'

Posted by MarcoC at April 13. 2018

Thank's a lot St.Michael !!!

Regards,

MarcoC

Powered by Ploneboard
Document Actions