specifying boundary condition in MED file using Python API
Posted: Thu Dec 31, 2015 7:40 pm
[*]I am currently trying to write a converter fro GridPro format to MED, using the Python API.
I managed writing node and cell information, using
mesh.setCoords(coordsArr)
for the nodes and
mesh.insertNextCell(mc.NORM_HEXA8, 8, conn)
for the cells
This is reasonably well documented in
http://docs.salome-platform.org/latest/ ... mples.html
However, now it comes to the boundary conditions, things get rather obscure.
It seems I need to create a 'family' of my boundary cells specified to be 'ON-FACE'. I understand the principles, but the way to do this using the Python API is not clear.
Does somebody have an example for a simple case how to do this, for example for a box grid as used in the
shear driven cavity case?
Thanks in advance !
I managed writing node and cell information, using
mesh.setCoords(coordsArr)
for the nodes and
mesh.insertNextCell(mc.NORM_HEXA8, 8, conn)
for the cells
This is reasonably well documented in
http://docs.salome-platform.org/latest/ ... mples.html
However, now it comes to the boundary conditions, things get rather obscure.
It seems I need to create a 'family' of my boundary cells specified to be 'ON-FACE'. I understand the principles, but the way to do this using the Python API is not clear.
Does somebody have an example for a simple case how to do this, for example for a box grid as used in the
shear driven cavity case?
Thanks in advance !