mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-11 16:19:16 +05:00
[bos #40653][CEA] New mesh import export formats with meshio.
This commit is contained in:
parent
6fe43e9346
commit
6cad3d5607
@ -5,6 +5,10 @@
|
|||||||
Importing and exporting meshes
|
Importing and exporting meshes
|
||||||
******************************
|
******************************
|
||||||
|
|
||||||
|
==============================
|
||||||
|
File formats
|
||||||
|
==============================
|
||||||
|
|
||||||
In MESH there is a functionality allowing import/export of meshes in the following formats:
|
In MESH there is a functionality allowing import/export of meshes in the following formats:
|
||||||
|
|
||||||
* **MED**,
|
* **MED**,
|
||||||
@ -16,6 +20,52 @@ In MESH there is a functionality allowing import/export of meshes in the followi
|
|||||||
|
|
||||||
You can also export a group as a whole mesh.
|
You can also export a group as a whole mesh.
|
||||||
|
|
||||||
|
------------------------------
|
||||||
|
Additional file formats with meshio
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
It is possible to use additional file formats using **meshio** library.
|
||||||
|
However, there are some restrictions because of way it uses in Salome. The main points here are:
|
||||||
|
|
||||||
|
* We use intermediate MED file to communicate between Salome and **meshio**.
|
||||||
|
* Convertion to the target format performs **meshio convert** command, using given **MED** file.
|
||||||
|
* Current **meshio** version doesn't work well with all tested file formats.
|
||||||
|
|
||||||
|
Anyway, you can try to import/export meshes with **meshio** using following formats:
|
||||||
|
|
||||||
|
* Abaqus (*.inp)
|
||||||
|
* ANSYS msh (*.msh)
|
||||||
|
* AVS-UCD (*.avs)
|
||||||
|
* CGNS (*.cgns)
|
||||||
|
* DOLFIN XML (*.xml)
|
||||||
|
* Exodus (*.e *.exo)
|
||||||
|
* FLAC3D (*.f3grid)
|
||||||
|
* Gmsh 2.2, 4.0, and 4.1 (*.msh)
|
||||||
|
* H5M (*.h5m)
|
||||||
|
* Kratos/MDPA (*.mdpa)
|
||||||
|
* MED/Salome (*.med)
|
||||||
|
* Medit (*.mesh *.meshb)
|
||||||
|
* Nastran (*.bdf *fem *.nas)
|
||||||
|
* Netgen(*.vol *.vol.gz)
|
||||||
|
* OBJ (*.obj)
|
||||||
|
* OFF (*.off)
|
||||||
|
* PERMAS (*.post *.post.gz *.dato *.dato.gz)
|
||||||
|
* PLY (*.ply)
|
||||||
|
* STL (*.stl)
|
||||||
|
* SU2 (*.su2)
|
||||||
|
* SVG, 2D output only (*.svg)
|
||||||
|
* Tecplot (*.dat)
|
||||||
|
* TetGen (*.node *.ele)
|
||||||
|
* UGRID (*.ugrid)
|
||||||
|
* VTK (*.vtk)
|
||||||
|
* VTU (*.vtu)
|
||||||
|
* WKT, TIN (*.wkt)
|
||||||
|
* XDMF (*.xdmf *.xmf)
|
||||||
|
|
||||||
|
==============================
|
||||||
|
Import
|
||||||
|
==============================
|
||||||
|
|
||||||
*To import a mesh:*
|
*To import a mesh:*
|
||||||
|
|
||||||
#. From the **File** menu choose the **Import** item, from its sub-menu select the corresponding format (MED, UNV, STL, GMF and CGNS) of the file containing your mesh.
|
#. From the **File** menu choose the **Import** item, from its sub-menu select the corresponding format (MED, UNV, STL, GMF and CGNS) of the file containing your mesh.
|
||||||
@ -25,6 +75,10 @@ You can also export a group as a whole mesh.
|
|||||||
.. image:: ../images/meshimportmesh.png
|
.. image:: ../images/meshimportmesh.png
|
||||||
:align: center
|
:align: center
|
||||||
|
|
||||||
|
==============================
|
||||||
|
Export
|
||||||
|
==============================
|
||||||
|
|
||||||
*To export a mesh or a group:*
|
*To export a mesh or a group:*
|
||||||
|
|
||||||
#. Select the object you wish to export.
|
#. Select the object you wish to export.
|
||||||
|
@ -294,6 +294,14 @@ module SMESH
|
|||||||
in boolean theMakeRequiredGroups,
|
in boolean theMakeRequiredGroups,
|
||||||
out SMESH::ComputeError theError)
|
out SMESH::ComputeError theError)
|
||||||
raises ( SALOME::SALOME_Exception );
|
raises ( SALOME::SALOME_Exception );
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Create a mesh and import data from any file supported by meshio library
|
||||||
|
*/
|
||||||
|
mesh_array CreateMeshesFromMESHIO(in string theFileName,
|
||||||
|
out SMESH::DriverMED_ReadStatus theStatus)
|
||||||
|
raises (SALOME::SALOME_Exception);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Create a dual mesh of a Tetrahedron mesh
|
* Create a dual mesh of a Tetrahedron mesh
|
||||||
* \param mesh - TetraHedron mesh to create dual from
|
* \param mesh - TetraHedron mesh to create dual from
|
||||||
|
@ -712,6 +712,17 @@ module SMESH
|
|||||||
in double ZTolerance,
|
in double ZTolerance,
|
||||||
in boolean saveNumbers) raises (SALOME::SALOME_Exception);
|
in boolean saveNumbers) raises (SALOME::SALOME_Exception);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Export a [part of] Mesh to a file with meshio library using an intermediate MED file
|
||||||
|
* @params
|
||||||
|
* - meshPart : a part of mesh to store
|
||||||
|
* - fileName : name of the MED file
|
||||||
|
* - selectedFilter : filter string selected by user in a file dialog.
|
||||||
|
*/
|
||||||
|
void ExportPartToMESHIO(in SMESH_IDSource meshPart,
|
||||||
|
in string fileName,
|
||||||
|
in string selectedFilter) raises (SALOME::SALOME_Exception);
|
||||||
|
|
||||||
long long ExportPartToMEDCoupling( in SMESH_IDSource meshPart,
|
long long ExportPartToMEDCoupling( in SMESH_IDSource meshPart,
|
||||||
in boolean auto_groups,
|
in boolean auto_groups,
|
||||||
in boolean autoDimension,
|
in boolean autoDimension,
|
||||||
|
@ -161,6 +161,7 @@ SET(_moc_HEADERS
|
|||||||
SMESHGUI_InteractiveOp.h
|
SMESHGUI_InteractiveOp.h
|
||||||
SMESHGUI_CreateDualMeshDlg.h
|
SMESHGUI_CreateDualMeshDlg.h
|
||||||
SMESHGUI_CreateDualMeshOp.h
|
SMESHGUI_CreateDualMeshOp.h
|
||||||
|
SMESHGUI_Meshio.h
|
||||||
)
|
)
|
||||||
|
|
||||||
# header files / no moc processing
|
# header files / no moc processing
|
||||||
@ -290,6 +291,7 @@ SET(_other_SOURCES
|
|||||||
SMESHGUI_InteractiveOp.cxx
|
SMESHGUI_InteractiveOp.cxx
|
||||||
SMESHGUI_CreateDualMeshDlg.cxx
|
SMESHGUI_CreateDualMeshDlg.cxx
|
||||||
SMESHGUI_CreateDualMeshOp.cxx
|
SMESHGUI_CreateDualMeshOp.cxx
|
||||||
|
SMESHGUI_Meshio.cxx
|
||||||
)
|
)
|
||||||
|
|
||||||
# sources / to compile
|
# sources / to compile
|
||||||
|
@ -70,6 +70,7 @@
|
|||||||
#include "SMESHGUI_Measurements.h"
|
#include "SMESHGUI_Measurements.h"
|
||||||
#include "SMESHGUI_MergeDlg.h"
|
#include "SMESHGUI_MergeDlg.h"
|
||||||
#include "SMESHGUI_MeshInfo.h"
|
#include "SMESHGUI_MeshInfo.h"
|
||||||
|
#include "SMESHGUI_Meshio.h"
|
||||||
#include "SMESHGUI_MeshOp.h"
|
#include "SMESHGUI_MeshOp.h"
|
||||||
#include "SMESHGUI_MeshOrderOp.h"
|
#include "SMESHGUI_MeshOrderOp.h"
|
||||||
#include "SMESHGUI_MeshPatternDlg.h"
|
#include "SMESHGUI_MeshPatternDlg.h"
|
||||||
@ -213,6 +214,7 @@ namespace
|
|||||||
void Control( int theCommandID );
|
void Control( int theCommandID );
|
||||||
|
|
||||||
// Definitions
|
// Definitions
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
/*!
|
/*!
|
||||||
* \brief Reads meshes from file
|
* \brief Reads meshes from file
|
||||||
@ -251,6 +253,12 @@ namespace
|
|||||||
filter.append( QObject::tr( "GMF_ASCII_FILES_FILTER" ) + " (*.mesh)" );
|
filter.append( QObject::tr( "GMF_ASCII_FILES_FILTER" ) + " (*.mesh)" );
|
||||||
filter.append( QObject::tr( "GMF_BINARY_FILES_FILTER") + " (*.meshb)" );
|
filter.append( QObject::tr( "GMF_BINARY_FILES_FILTER") + " (*.meshb)" );
|
||||||
}
|
}
|
||||||
|
else if (theCommandID == SMESHOp::OpImportMESHIO) {
|
||||||
|
if (!SMESHGUI_Meshio::IsMeshioInstalled())
|
||||||
|
return;
|
||||||
|
|
||||||
|
filter = SMESHGUI_Meshio::GetImportFileFilter();
|
||||||
|
}
|
||||||
|
|
||||||
QString anInitialPath = "";
|
QString anInitialPath = "";
|
||||||
if ( SUIT_FileDlg::getLastVisitedPath().isEmpty() )
|
if ( SUIT_FileDlg::getLastVisitedPath().isEmpty() )
|
||||||
@ -366,9 +374,18 @@ namespace
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case SMESHOp::OpImportMESHIO:
|
||||||
|
{
|
||||||
|
aMeshes = SMESHGUI_Meshio::ImportMesh(theComponentMesh, filename, errors);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch ( const SALOME::SALOME_Exception& S_ex ) {
|
catch ( const SALOME::SALOME_Exception& S_ex ) {
|
||||||
|
const QString exText(S_ex.details.text);
|
||||||
|
if (exText.startsWith("MESHIO"))
|
||||||
|
errors.append('\n' + exText);
|
||||||
|
else
|
||||||
errors.append( QString( "%1 :\n\t%2" ).arg( filename ).
|
errors.append( QString( "%1 :\n\t%2" ).arg( filename ).
|
||||||
arg( QObject::tr( "SMESH_ERR_UNKNOWN_IMPORT_ERROR" ) ) );
|
arg( QObject::tr( "SMESH_ERR_UNKNOWN_IMPORT_ERROR" ) ) );
|
||||||
}
|
}
|
||||||
@ -440,8 +457,14 @@ namespace
|
|||||||
theCommandID == SMESHOp::OpPopupExportCGNS );
|
theCommandID == SMESHOp::OpPopupExportCGNS );
|
||||||
const bool isGMF = ( theCommandID == SMESHOp::OpExportGMF ||
|
const bool isGMF = ( theCommandID == SMESHOp::OpExportGMF ||
|
||||||
theCommandID == SMESHOp::OpPopupExportGMF );
|
theCommandID == SMESHOp::OpPopupExportGMF );
|
||||||
|
const bool isMESHIO = (theCommandID == SMESHOp::OpExportMESHIO);
|
||||||
|
|
||||||
const bool multiMeshSupported = ( isMED || isCGNS ); // file can hold several meshes
|
if (isMESHIO && !SMESHGUI_Meshio::IsMeshioInstalled())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const bool multiMeshSupported = isMED || isCGNS || isMESHIO; // file can hold several meshes
|
||||||
if ( selected.Extent() == 0 || ( selected.Extent() > 1 && !multiMeshSupported ))
|
if ( selected.Extent() == 0 || ( selected.Extent() > 1 && !multiMeshSupported ))
|
||||||
return;
|
return;
|
||||||
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
|
||||||
@ -517,7 +540,7 @@ namespace
|
|||||||
SMESH::SMESH_Mesh_var aMesh = aMeshOrGroup->GetMesh();
|
SMESH::SMESH_Mesh_var aMesh = aMeshOrGroup->GetMesh();
|
||||||
QString aMeshName = (*aMeshIter).second;
|
QString aMeshName = (*aMeshIter).second;
|
||||||
|
|
||||||
if ( isMED || isCGNS ) // formats where group names must be unique
|
if (isMED || isCGNS || isMESHIO) // formats where group names must be unique
|
||||||
{
|
{
|
||||||
// check for equal group names within each mesh
|
// check for equal group names within each mesh
|
||||||
for( aMeshIter = aMeshList.begin(); aMeshIter != aMeshList.end(); aMeshIter++ ) {
|
for( aMeshIter = aMeshList.begin(); aMeshIter != aMeshList.end(); aMeshIter++ ) {
|
||||||
@ -627,6 +650,7 @@ namespace
|
|||||||
// Get parameters of export operation
|
// Get parameters of export operation
|
||||||
|
|
||||||
QString aFilename;
|
QString aFilename;
|
||||||
|
QString aSelectedFilter; // for meshio to get a filter selected by user
|
||||||
int aFormat =-1; // for MED version used for write
|
int aFormat =-1; // for MED version used for write
|
||||||
bool isOkToWrite = true; // to check MED file version compatibility before adding a mesh in an existing file
|
bool isOkToWrite = true; // to check MED file version compatibility before adding a mesh in an existing file
|
||||||
|
|
||||||
@ -872,6 +896,14 @@ namespace
|
|||||||
delete zTolWdg;
|
delete zTolWdg;
|
||||||
delete fd;
|
delete fd;
|
||||||
}
|
}
|
||||||
|
else if (isMESHIO)
|
||||||
|
{
|
||||||
|
if (SMESHGUI_Meshio::CheckMeshCount(aMeshList))
|
||||||
|
{
|
||||||
|
aFilename = SMESHGUI_Meshio::GetFileName(aSelectedFilter);
|
||||||
|
MESSAGE("aSelectedFilter: " << aSelectedFilter.toStdString());
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@ -954,16 +986,28 @@ namespace
|
|||||||
toCreateGroups = true;
|
toCreateGroups = true;
|
||||||
aMesh->ExportGMF( aMeshOrGroup, aFilename.toUtf8().data(), toCreateGroups );
|
aMesh->ExportGMF( aMeshOrGroup, aFilename.toUtf8().data(), toCreateGroups );
|
||||||
}
|
}
|
||||||
|
else if (isMESHIO)
|
||||||
|
{
|
||||||
|
SMESHGUI_Meshio::ExportMesh(aMeshList, aFilename, aSelectedFilter);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (const SALOME::SALOME_Exception& S_ex)
|
catch (const SALOME::SALOME_Exception& S_ex)
|
||||||
{
|
{
|
||||||
wc.suspend();
|
wc.suspend();
|
||||||
|
const QString exText(S_ex.details.text);
|
||||||
|
|
||||||
if ( S_ex.details.type == SALOME::COMM && // communicate about too large mesh
|
if ( S_ex.details.type == SALOME::COMM && // communicate about too large mesh
|
||||||
strncmp( "format=", S_ex.details.sourceFile.in(), 7 ) == 0 )
|
strncmp( "format=", S_ex.details.sourceFile.in(), 7 ) == 0 )
|
||||||
|
|
||||||
SUIT_MessageBox::critical(SMESHGUI::desktop(),
|
SUIT_MessageBox::critical(SMESHGUI::desktop(),
|
||||||
QObject::tr("SMESH_WRN_WARNING"),
|
QObject::tr("SMESH_WRN_WARNING"),
|
||||||
QObject::tr(S_ex.details.text.in() ));
|
QObject::tr(S_ex.details.text.in() ));
|
||||||
|
else if (exText.startsWith("MESHIO"))
|
||||||
|
{
|
||||||
|
SUIT_MessageBox::warning(SMESHGUI::desktop(),
|
||||||
|
QObject::tr("SMESH_WRN_WARNING"),
|
||||||
|
QObject::tr("SMESH_EXPORT_FAILED_SHORT") + "\n\n" + exText);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
SUIT_MessageBox::warning(SMESHGUI::desktop(),
|
SUIT_MessageBox::warning(SMESHGUI::desktop(),
|
||||||
QObject::tr("SMESH_WRN_WARNING"),
|
QObject::tr("SMESH_WRN_WARNING"),
|
||||||
@ -2573,6 +2617,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
case SMESHOp::OpImportSTL:
|
case SMESHOp::OpImportSTL:
|
||||||
case SMESHOp::OpImportCGNS:
|
case SMESHOp::OpImportCGNS:
|
||||||
case SMESHOp::OpImportGMF:
|
case SMESHOp::OpImportGMF:
|
||||||
|
case SMESHOp::OpImportMESHIO:
|
||||||
case SMESHOp::OpPopupImportDAT:
|
case SMESHOp::OpPopupImportDAT:
|
||||||
case SMESHOp::OpPopupImportUNV:
|
case SMESHOp::OpPopupImportUNV:
|
||||||
case SMESHOp::OpPopupImportMED:
|
case SMESHOp::OpPopupImportMED:
|
||||||
@ -2609,6 +2654,7 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
|
|||||||
case SMESHOp::OpExportSTL:
|
case SMESHOp::OpExportSTL:
|
||||||
case SMESHOp::OpExportCGNS:
|
case SMESHOp::OpExportCGNS:
|
||||||
case SMESHOp::OpExportGMF:
|
case SMESHOp::OpExportGMF:
|
||||||
|
case SMESHOp::OpExportMESHIO:
|
||||||
case SMESHOp::OpPopupExportDAT:
|
case SMESHOp::OpPopupExportDAT:
|
||||||
case SMESHOp::OpPopupExportMED:
|
case SMESHOp::OpPopupExportMED:
|
||||||
case SMESHOp::OpPopupExportUNV:
|
case SMESHOp::OpPopupExportUNV:
|
||||||
@ -4152,6 +4198,7 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
createSMESHAction( SMESHOp::OpImportCGNS, "IMPORT_CGNS" );
|
createSMESHAction( SMESHOp::OpImportCGNS, "IMPORT_CGNS" );
|
||||||
#endif
|
#endif
|
||||||
createSMESHAction( SMESHOp::OpImportGMF, "IMPORT_GMF" );
|
createSMESHAction( SMESHOp::OpImportGMF, "IMPORT_GMF" );
|
||||||
|
createSMESHAction( SMESHOp::OpImportMESHIO, "IMPORT_MESHIO" );
|
||||||
createSMESHAction( SMESHOp::OpPopupImportUNV, "IMPORT_UNV");
|
createSMESHAction( SMESHOp::OpPopupImportUNV, "IMPORT_UNV");
|
||||||
createSMESHAction( SMESHOp::OpPopupImportMED, "IMPORT_MED");
|
createSMESHAction( SMESHOp::OpPopupImportMED, "IMPORT_MED");
|
||||||
createSMESHAction( SMESHOp::OpPopupImportSTL, "IMPORT_STL" );
|
createSMESHAction( SMESHOp::OpPopupImportSTL, "IMPORT_STL" );
|
||||||
@ -4168,6 +4215,7 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
createSMESHAction( SMESHOp::OpExportCGNS, "CGNS");
|
createSMESHAction( SMESHOp::OpExportCGNS, "CGNS");
|
||||||
#endif
|
#endif
|
||||||
createSMESHAction( SMESHOp::OpExportGMF, "GMF" );
|
createSMESHAction( SMESHOp::OpExportGMF, "GMF" );
|
||||||
|
createSMESHAction( SMESHOp::OpExportMESHIO, "EXPORT_MESHIO" );
|
||||||
createSMESHAction( SMESHOp::OpPopupExportDAT, "DAT" );
|
createSMESHAction( SMESHOp::OpPopupExportDAT, "DAT" );
|
||||||
createSMESHAction( SMESHOp::OpPopupExportMED, "MED" );
|
createSMESHAction( SMESHOp::OpPopupExportMED, "MED" );
|
||||||
createSMESHAction( SMESHOp::OpPopupExportUNV, "UNV" );
|
createSMESHAction( SMESHOp::OpPopupExportUNV, "UNV" );
|
||||||
@ -4417,6 +4465,7 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
transfId = createMenu( tr( "MEN_TRANSF" ), modifyId, 405 ),
|
transfId = createMenu( tr( "MEN_TRANSF" ), modifyId, 405 ),
|
||||||
basicPropId = createMenu( tr( "MEN_BASIC_PROPERTIES" ), measureId, -1, 10 );
|
basicPropId = createMenu( tr( "MEN_BASIC_PROPERTIES" ), measureId, -1, 10 );
|
||||||
|
|
||||||
|
// Import menu
|
||||||
//createMenu( SMESHOp::OpImportDAT, importId, -1 );
|
//createMenu( SMESHOp::OpImportDAT, importId, -1 );
|
||||||
createMenu( SMESHOp::OpImportUNV, importId, -1 );
|
createMenu( SMESHOp::OpImportUNV, importId, -1 );
|
||||||
createMenu( SMESHOp::OpImportMED, importId, -1 );
|
createMenu( SMESHOp::OpImportMED, importId, -1 );
|
||||||
@ -4425,6 +4474,9 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
createMenu( SMESHOp::OpImportCGNS, importId, -1 );
|
createMenu( SMESHOp::OpImportCGNS, importId, -1 );
|
||||||
#endif
|
#endif
|
||||||
createMenu( SMESHOp::OpImportGMF, importId, -1 );
|
createMenu( SMESHOp::OpImportGMF, importId, -1 );
|
||||||
|
createMenu( SMESHOp::OpImportMESHIO, importId, -1 ); // formats supported by meshio lib
|
||||||
|
|
||||||
|
// Export menu
|
||||||
createMenu( SMESHOp::OpExportDAT, exportId, -1 );
|
createMenu( SMESHOp::OpExportDAT, exportId, -1 );
|
||||||
createMenu( SMESHOp::OpExportMED, exportId, -1 );
|
createMenu( SMESHOp::OpExportMED, exportId, -1 );
|
||||||
createMenu( SMESHOp::OpExportUNV, exportId, -1 );
|
createMenu( SMESHOp::OpExportUNV, exportId, -1 );
|
||||||
@ -4433,6 +4485,7 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
createMenu( SMESHOp::OpExportCGNS, exportId, -1 );
|
createMenu( SMESHOp::OpExportCGNS, exportId, -1 );
|
||||||
#endif
|
#endif
|
||||||
createMenu( SMESHOp::OpExportGMF, exportId, -1 );
|
createMenu( SMESHOp::OpExportGMF, exportId, -1 );
|
||||||
|
createMenu( SMESHOp::OpExportMESHIO, exportId, -1 ); // formats supported by meshio lib
|
||||||
createMenu( separator(), fileId, 10 );
|
createMenu( separator(), fileId, 10 );
|
||||||
|
|
||||||
createMenu( SMESHOp::OpDelete, editId, -1 );
|
createMenu( SMESHOp::OpDelete, editId, -1 );
|
||||||
@ -4854,6 +4907,7 @@ void SMESHGUI::initialize( CAM_Application* app )
|
|||||||
#endif
|
#endif
|
||||||
createPopupItem( SMESHOp::OpPopupExportGMF, OB, mesh_group, only_one_non_empty, anId );
|
createPopupItem( SMESHOp::OpPopupExportGMF, OB, mesh_group, only_one_non_empty, anId );
|
||||||
createPopupItem( SMESHOp::OpPopupExportDAT, OB, mesh_group, only_one_non_empty, anId );
|
createPopupItem( SMESHOp::OpPopupExportDAT, OB, mesh_group, only_one_non_empty, anId );
|
||||||
|
createPopupItem( SMESHOp::OpExportMESHIO, OB, mesh_group, only_one_non_empty, anId );
|
||||||
|
|
||||||
anId = popupMgr()->insert( tr( "MEN_IMPORT" ), -1, -1 ); // IMPORT submenu
|
anId = popupMgr()->insert( tr( "MEN_IMPORT" ), -1, -1 ); // IMPORT submenu
|
||||||
createPopupItem( SMESHOp::OpPopupImportMED, OB, smesh, "", anId );
|
createPopupItem( SMESHOp::OpPopupImportMED, OB, smesh, "", anId );
|
||||||
|
267
src/SMESHGUI/SMESHGUI_Meshio.cxx
Normal file
267
src/SMESHGUI/SMESHGUI_Meshio.cxx
Normal file
@ -0,0 +1,267 @@
|
|||||||
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
//
|
||||||
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Lesser General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
//
|
||||||
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
|
//
|
||||||
|
|
||||||
|
// SMESH SMESHGUI : support of import / export with meshio library
|
||||||
|
// File : SMESHGUI_Meshio.h
|
||||||
|
// Author : Konstantin Leontev, Open CASCADE S.A.S.
|
||||||
|
//
|
||||||
|
#include "SMESHGUI_Meshio.h"
|
||||||
|
#include "SMESH_Meshio.h"
|
||||||
|
|
||||||
|
// SMESH includes
|
||||||
|
#include "SMESHGUI.h"
|
||||||
|
#include "SMESHGUI_FieldSelectorWdg.h"
|
||||||
|
|
||||||
|
// SALOME GUI includes
|
||||||
|
#include <SUIT_Desktop.h>
|
||||||
|
#include <SUIT_FileDlg.h>
|
||||||
|
#include <SUIT_MessageBox.h>
|
||||||
|
|
||||||
|
// SALOME KERNEL includes
|
||||||
|
#include <utilities.h>
|
||||||
|
|
||||||
|
// Qt
|
||||||
|
#include <QStringList>
|
||||||
|
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Constructor
|
||||||
|
*/
|
||||||
|
SMESHGUI_Meshio::SMESHGUI_Meshio()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Destructor
|
||||||
|
*/
|
||||||
|
SMESHGUI_Meshio::~SMESHGUI_Meshio()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Check and warn about exporting many shapes
|
||||||
|
*/
|
||||||
|
bool SMESHGUI_Meshio::CheckMeshCount(const meshList& aMeshList)
|
||||||
|
{
|
||||||
|
if (aMeshList.size() == 1)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else if (!aMeshList.size())
|
||||||
|
{
|
||||||
|
// We shouldn't get here, but...
|
||||||
|
MESSAGE("Error: empty mesh list. Export canceled.");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const bool isOk = SUIT_MessageBox::warning(
|
||||||
|
SMESHGUI::desktop(),
|
||||||
|
QObject::tr("SMESH_WARNING"),
|
||||||
|
QObject::tr("SMESH_EXPORT_MESHIO_ONLY_MESH"),
|
||||||
|
SUIT_MessageBox::Yes |
|
||||||
|
SUIT_MessageBox::No,
|
||||||
|
SUIT_MessageBox::No) == SUIT_MessageBox::Yes;
|
||||||
|
|
||||||
|
return isOk;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Import mesh through an intermediate MED file
|
||||||
|
*/
|
||||||
|
SMESH::mesh_array_var SMESHGUI_Meshio::ImportMesh(
|
||||||
|
SMESH::SMESH_Gen_ptr theComponentMesh, const QString& filename, QStringList& errors)
|
||||||
|
{
|
||||||
|
SMESH::DriverMED_ReadStatus res;
|
||||||
|
SMESH::mesh_array_var aMeshes = theComponentMesh->CreateMeshesFromMESHIO(filename.toUtf8().constData(), res);
|
||||||
|
if (res != SMESH::DRS_OK)
|
||||||
|
{
|
||||||
|
errors.append(QString("%1 :\n\t%2").arg(filename).arg(
|
||||||
|
QObject::tr(QString("SMESH_DRS_%1").arg(res).toLatin1().data())));
|
||||||
|
}
|
||||||
|
|
||||||
|
return aMeshes;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Returns a filter for Import File dialog
|
||||||
|
*/
|
||||||
|
const QStringList& SMESHGUI_Meshio::GetImportFileFilter()
|
||||||
|
{
|
||||||
|
auto addAllFiles = []() -> QStringList
|
||||||
|
{
|
||||||
|
QStringList filter = GetExportFileFilter();
|
||||||
|
|
||||||
|
// Remove SVG because it works only for export
|
||||||
|
const int svgIndex = filter.indexOf(QRegExp("^SVG.+"));
|
||||||
|
if (svgIndex >= 0)
|
||||||
|
{
|
||||||
|
filter.removeAt(svgIndex);
|
||||||
|
}
|
||||||
|
|
||||||
|
filter << QObject::tr("ALL_FILES_FILTER") + " (*)";
|
||||||
|
|
||||||
|
return filter;
|
||||||
|
};
|
||||||
|
|
||||||
|
static const QStringList filter = addAllFiles();
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Returns a filter for Export File dialog
|
||||||
|
*/
|
||||||
|
const QStringList& SMESHGUI_Meshio::GetExportFileFilter()
|
||||||
|
{
|
||||||
|
static const QStringList filter = {
|
||||||
|
"Abaqus (*.inp)",
|
||||||
|
"ANSYS msh (*.msh)",
|
||||||
|
"AVS-UCD (*.avs)",
|
||||||
|
"CGNS (*.cgns)",
|
||||||
|
"DOLFIN XML (*.xml)",
|
||||||
|
"Exodus (*.e *.exo)",
|
||||||
|
"FLAC3D (*.f3grid)",
|
||||||
|
"Gmsh 2.2 (*.msh)",
|
||||||
|
"Gmsh 4.0, and 4.1 (*.msh)",
|
||||||
|
"H5M (*.h5m)",
|
||||||
|
"Kratos/MDPA (*.mdpa)",
|
||||||
|
"MED/Salome (*.med)",
|
||||||
|
"Medit (*.mesh *.meshb)",
|
||||||
|
"Nastran (*.bdf *fem *.nas)",
|
||||||
|
"Netgen(*.vol *.vol.gz)",
|
||||||
|
"OBJ (*.obj)",
|
||||||
|
"OFF (*.off)",
|
||||||
|
"PERMAS (*.post *.post.gz *.dato *.dato.gz)",
|
||||||
|
"PLY (*.ply)",
|
||||||
|
"STL (*.stl)",
|
||||||
|
"SU2 (*.su2)",
|
||||||
|
"SVG, 2D output only (*.svg)",
|
||||||
|
"Tecplot (*.dat)",
|
||||||
|
"TetGen (*.node *.ele)",
|
||||||
|
"UGRID (*.ugrid)",
|
||||||
|
"VTK (*.vtk)",
|
||||||
|
"VTU (*.vtu)",
|
||||||
|
"WKT, TIN (*.wkt)",
|
||||||
|
"XDMF (*.xdmf *.xmf)"
|
||||||
|
};
|
||||||
|
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Export mesh through an intermediate MED file
|
||||||
|
*/
|
||||||
|
void SMESHGUI_Meshio::ExportMesh(const meshList& aMeshList, const QString& targetFileName, const QString& selectedFilter)
|
||||||
|
{
|
||||||
|
// Helper for indexed naming of the target files.
|
||||||
|
// We need to save into separated files because meshio doesn't
|
||||||
|
// support reading more than one mesh from a MED file.
|
||||||
|
// Look at src/meshio/med/_med.py in meshio git repo for a reference.
|
||||||
|
auto indexedFileName = [](const QString& targetFileName, const int index) -> QString
|
||||||
|
{
|
||||||
|
QString indexedFileName = targetFileName;
|
||||||
|
|
||||||
|
const int lastIndex = indexedFileName.lastIndexOf(".");
|
||||||
|
indexedFileName.insert(lastIndex, "_" + QString::number(index));
|
||||||
|
|
||||||
|
return indexedFileName;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Trim an extension from the filter like in example: 'VTK (.vtk)' => 'VTK'
|
||||||
|
auto getFilterWithoutExt = [](const QString& selectedFilter) -> QString
|
||||||
|
{
|
||||||
|
// Find the start index for an extension in the filter string
|
||||||
|
const int index = selectedFilter.indexOf('(');
|
||||||
|
if (index != -1)
|
||||||
|
{
|
||||||
|
const QString filterWithoutExt = selectedFilter.left(index);
|
||||||
|
return filterWithoutExt.trimmed();
|
||||||
|
}
|
||||||
|
|
||||||
|
return selectedFilter;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Iterate all the meshes from a list
|
||||||
|
auto aMeshIter = aMeshList.begin();
|
||||||
|
for(int aMeshIndex = 0; aMeshIter != aMeshList.end(); aMeshIter++, aMeshIndex++)
|
||||||
|
{
|
||||||
|
SMESH::SMESH_IDSource_var aMeshOrGroup = (*aMeshIter).first;
|
||||||
|
SMESH::SMESH_Mesh_var aMeshItem = aMeshOrGroup->GetMesh();
|
||||||
|
|
||||||
|
// Exprort this part.
|
||||||
|
aMeshItem->ExportPartToMESHIO(
|
||||||
|
aMeshOrGroup, // mesh part
|
||||||
|
(aMeshIndex ? indexedFileName(targetFileName, aMeshIndex) : targetFileName).toUtf8().data(),
|
||||||
|
getFilterWithoutExt(selectedFilter).toLatin1().data()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Opens file dialog and returns a choosen target name
|
||||||
|
*/
|
||||||
|
QString SMESHGUI_Meshio::GetFileName(QString& selectedFilter, const bool isOpen/* = false*/)
|
||||||
|
{
|
||||||
|
// Get a target directory name
|
||||||
|
QString anInitialPath = SUIT_FileDlg::getLastVisitedPath();
|
||||||
|
if (anInitialPath.isEmpty())
|
||||||
|
anInitialPath = QDir::currentPath();
|
||||||
|
|
||||||
|
// Return a target file name
|
||||||
|
return SUIT_FileDlg::getFileName(
|
||||||
|
SMESHGUI::desktop(),
|
||||||
|
anInitialPath,
|
||||||
|
GetExportFileFilter(),
|
||||||
|
selectedFilter,
|
||||||
|
QObject::tr("SMESH_EXPORT_MESH"),
|
||||||
|
isOpen
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Returns true if meshio package is installed
|
||||||
|
*/
|
||||||
|
bool SMESHGUI_Meshio::IsMeshioInstalled()
|
||||||
|
{
|
||||||
|
auto IsAbleToCallMeshio = []() -> bool
|
||||||
|
{
|
||||||
|
// Try to call meshio to check if it's present
|
||||||
|
const std::string cmd =
|
||||||
|
SMESH_Meshio::IsModernPythonVersion() ? "meshio --version" : "meshio-info --version";
|
||||||
|
|
||||||
|
const int status = system(cmd.c_str());
|
||||||
|
MESSAGE("status: " << status);
|
||||||
|
|
||||||
|
return status == 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
static const bool isInstalled = IsAbleToCallMeshio();
|
||||||
|
if (!isInstalled)
|
||||||
|
{
|
||||||
|
SUIT_MessageBox::warning(
|
||||||
|
SMESHGUI::desktop(),
|
||||||
|
QObject::tr("SMESH_WARNING"),
|
||||||
|
QObject::tr("SMESH_MESHIO_NOT_INSTALLED")
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return isInstalled;
|
||||||
|
}
|
64
src/SMESHGUI/SMESHGUI_Meshio.h
Normal file
64
src/SMESHGUI/SMESHGUI_Meshio.h
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
//
|
||||||
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Lesser General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
//
|
||||||
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
|
//
|
||||||
|
|
||||||
|
// SMESH SMESHGUI : support of import / export with meshio library
|
||||||
|
// File : SMESHGUI_Meshio.h
|
||||||
|
// Author : Konstantin Leontev, Open CASCADE S.A.S.
|
||||||
|
//
|
||||||
|
#ifndef SMESHGUI_MESHIO_H
|
||||||
|
#define SMESHGUI_MESHIO_H
|
||||||
|
|
||||||
|
#include "SMESH_SMESHGUI.hxx"
|
||||||
|
|
||||||
|
#include <QList>
|
||||||
|
#include <QPair>
|
||||||
|
|
||||||
|
// IDL includes
|
||||||
|
#include <SALOMEconfig.h>
|
||||||
|
#include CORBA_CLIENT_HEADER(SMESH_Mesh)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_Gen)
|
||||||
|
|
||||||
|
class QStringList;
|
||||||
|
|
||||||
|
class SMESHGUI_EXPORT SMESHGUI_Meshio
|
||||||
|
{
|
||||||
|
using meshList = QList<QPair<SMESH::SMESH_IDSource_var, QString>>;
|
||||||
|
|
||||||
|
public:
|
||||||
|
SMESHGUI_Meshio();
|
||||||
|
virtual ~SMESHGUI_Meshio();
|
||||||
|
|
||||||
|
static void ExportMesh(
|
||||||
|
const meshList& aMeshList, const QString& targetFileName, const QString& selectedFilter);
|
||||||
|
static SMESH::mesh_array_var ImportMesh(
|
||||||
|
SMESH::SMESH_Gen_ptr theComponentMesh, const QString& filename, QStringList& errors);
|
||||||
|
|
||||||
|
static const QStringList& GetImportFileFilter();
|
||||||
|
static const QStringList& GetExportFileFilter();
|
||||||
|
|
||||||
|
static QString GetFileName(QString& selectedFilter, const bool isOpen = false);
|
||||||
|
static bool CheckMeshCount(const meshList& aMeshList);
|
||||||
|
|
||||||
|
static bool IsMeshioInstalled();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // SMESHGUI_MESHIO_H
|
@ -41,6 +41,7 @@ namespace SMESHOp {
|
|||||||
OpImportSTL = 1103, // MENU FILE - IMPORT - STL FILE
|
OpImportSTL = 1103, // MENU FILE - IMPORT - STL FILE
|
||||||
OpImportCGNS = 1104, // MENU FILE - IMPORT - CGNS FILE
|
OpImportCGNS = 1104, // MENU FILE - IMPORT - CGNS FILE
|
||||||
OpImportGMF = 1106, // MENU FILE - IMPORT - GMF FILE
|
OpImportGMF = 1106, // MENU FILE - IMPORT - GMF FILE
|
||||||
|
OpImportMESHIO = 1107, // MENU FILE - IMPORT - other formats... (meshio)
|
||||||
OpPopupImportDAT = 1120, // POPUP MENU - IMPORT - DAT FILE
|
OpPopupImportDAT = 1120, // POPUP MENU - IMPORT - DAT FILE
|
||||||
OpPopupImportUNV = 1121, // POPUP MENU - IMPORT - UNV FILE
|
OpPopupImportUNV = 1121, // POPUP MENU - IMPORT - UNV FILE
|
||||||
OpPopupImportMED = 1122, // POPUP MENU - IMPORT - MED FILE
|
OpPopupImportMED = 1122, // POPUP MENU - IMPORT - MED FILE
|
||||||
@ -54,6 +55,7 @@ namespace SMESHOp {
|
|||||||
OpExportSTL = 1203, // MENU FILE - EXPORT - STL FILE
|
OpExportSTL = 1203, // MENU FILE - EXPORT - STL FILE
|
||||||
OpExportCGNS = 1204, // MENU FILE - EXPORT - CGNS FILE
|
OpExportCGNS = 1204, // MENU FILE - EXPORT - CGNS FILE
|
||||||
OpExportGMF = 1206, // MENU FILE - EXPORT - GMF FILE
|
OpExportGMF = 1206, // MENU FILE - EXPORT - GMF FILE
|
||||||
|
OpExportMESHIO = 1207, // MENU FILE - EXPORT - other formats... (meshio)
|
||||||
OpPopupExportDAT = 1210, // POPUP MENU - EXPORT - DAT FILE
|
OpPopupExportDAT = 1210, // POPUP MENU - EXPORT - DAT FILE
|
||||||
OpPopupExportMED = 1211, // POPUP MENU - EXPORT - MED FILE
|
OpPopupExportMED = 1211, // POPUP MENU - EXPORT - MED FILE
|
||||||
OpPopupExportUNV = 1212, // POPUP MENU - EXPORT - UNV FILE
|
OpPopupExportUNV = 1212, // POPUP MENU - EXPORT - UNV FILE
|
||||||
|
@ -888,6 +888,14 @@
|
|||||||
<source>MEN_GMF</source>
|
<source>MEN_GMF</source>
|
||||||
<translation>GMF file</translation>
|
<translation>GMF file</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>MEN_IMPORT_MESHIO</source>
|
||||||
|
<translation>other formats... (meshio)</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>MEN_EXPORT_MESHIO</source>
|
||||||
|
<translation>other formats... (meshio)</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>MEN_MERGE</source>
|
<source>MEN_MERGE</source>
|
||||||
<translation>Merge Nodes</translation>
|
<translation>Merge Nodes</translation>
|
||||||
@ -1971,6 +1979,10 @@ so that the application may crash. Do you wish to continue visualization?</trans
|
|||||||
Probably, there is not enough space on disk, or the version of MED file used is not compatible with the mesh.
|
Probably, there is not enough space on disk, or the version of MED file used is not compatible with the mesh.
|
||||||
</translation>
|
</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>SMESH_EXPORT_FAILED_SHORT</source>
|
||||||
|
<translation>Mesh export failed.</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>SMESH_EXPORT_MED_DUPLICATED_GRP</source>
|
<source>SMESH_EXPORT_MED_DUPLICATED_GRP</source>
|
||||||
<translation>There are duplicated group names in mesh "%1".
|
<translation>There are duplicated group names in mesh "%1".
|
||||||
@ -2002,6 +2014,22 @@ Overwrite the file?</translation>
|
|||||||
meshes with the following names: %1
|
meshes with the following names: %1
|
||||||
The result file may be incorrect.
|
The result file may be incorrect.
|
||||||
Overwrite the file?</translation>
|
Overwrite the file?</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>SMESH_EXPORT_MESHIO_ONLY_MESH</source>
|
||||||
|
<translation>Current implementation uses export through intermediate MED file.
|
||||||
|
However, meshio does not support reading MED files with more than one mesh.
|
||||||
|
Selected meshes will be saved into separated files.
|
||||||
|
|
||||||
|
Do you want to continue?</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>SMESH_MESHIO_NOT_INSTALLED</source>
|
||||||
|
<translation>Meshio is not installed!
|
||||||
|
Operation will be canceled.
|
||||||
|
|
||||||
|
Try to install meshio with a command:
|
||||||
|
pip install meshio[all]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>EXPORT_NOT_SUPPORTED</source>
|
<source>EXPORT_NOT_SUPPORTED</source>
|
||||||
|
@ -884,6 +884,14 @@
|
|||||||
<source>MEN_GMF</source>
|
<source>MEN_GMF</source>
|
||||||
<translation>Fichier GMF</translation>
|
<translation>Fichier GMF</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>MEN_IMPORT_MESHIO</source>
|
||||||
|
<translation>autres formats... (meshio)</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>MEN_EXPORT_MESHIO</source>
|
||||||
|
<translation>autres formats... (meshio)</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>MEN_MERGE</source>
|
<source>MEN_MERGE</source>
|
||||||
<translation>Fusionner les nœuds</translation>
|
<translation>Fusionner les nœuds</translation>
|
||||||
@ -1966,6 +1974,10 @@ ce qui peut faire planter l'application. Voulez-vous continuer la visualisation
|
|||||||
<translation>Impossible d'exporter le maillage.
|
<translation>Impossible d'exporter le maillage.
|
||||||
Vérifiez l'espace disponible sur le disque.</translation>
|
Vérifiez l'espace disponible sur le disque.</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>SMESH_EXPORT_FAILED_SHORT</source>
|
||||||
|
<translation>Impossible d'exporter le maillage.</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>SMESH_EXPORT_MED_DUPLICATED_GRP</source>
|
<source>SMESH_EXPORT_MED_DUPLICATED_GRP</source>
|
||||||
<translation>Il y a des noms de groupes dupliqués dans le maillage "%1".
|
<translation>Il y a des noms de groupes dupliqués dans le maillage "%1".
|
||||||
@ -1997,6 +2009,22 @@ Ecraser le fichier ?</translation>
|
|||||||
des maillages avec les noms suivants: %1
|
des maillages avec les noms suivants: %1
|
||||||
Le fichier obtenu pourrait être incorrect.
|
Le fichier obtenu pourrait être incorrect.
|
||||||
Ecraser le fichier ?</translation>
|
Ecraser le fichier ?</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>SMESH_EXPORT_MESHIO_ONLY_MESH</source>
|
||||||
|
<translation>La mise en œuvre actuelle utilise l'exportation via un fichier MED intermédiaire.
|
||||||
|
Cependant, meshio ne prend pas en charge la lecture des fichiers MED comportant plusieurs maillages.
|
||||||
|
Les maillages sélectionnés seront enregistrés dans des fichiers séparés.
|
||||||
|
|
||||||
|
Voulez-vous continuer?</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>SMESH_MESHIO_NOT_INSTALLED</source>
|
||||||
|
<translation>Meshio n'est pas installé!
|
||||||
|
L'opération sera annulée.
|
||||||
|
|
||||||
|
Essayez d'installer meshio avec une commande:
|
||||||
|
pip install meshio[all]</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>EXPORT_NOT_SUPPORTED</source>
|
<source>EXPORT_NOT_SUPPORTED</source>
|
||||||
|
@ -723,6 +723,14 @@
|
|||||||
<source>MEN_GMF</source>
|
<source>MEN_GMF</source>
|
||||||
<translation>GMFファイル</translation>
|
<translation>GMFファイル</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>MEN_IMPORT_MESHIO</source>
|
||||||
|
<translation>他の形式... (meshio)</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>MEN_EXPORT_MESHIO</source>
|
||||||
|
<translation>他の形式... (meshio)</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>MEN_MERGE</source>
|
<source>MEN_MERGE</source>
|
||||||
<translation>節点の結合</translation>
|
<translation>節点の結合</translation>
|
||||||
@ -1743,6 +1751,10 @@
|
|||||||
<source>SMESH_EXPORT_FAILED</source>
|
<source>SMESH_EXPORT_FAILED</source>
|
||||||
<translation>メッシュをエクスポートすることができません。ディスクの空き領域を確認してください。</translation>
|
<translation>メッシュをエクスポートすることができません。ディスクの空き領域を確認してください。</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>SMESH_EXPORT_FAILED_SHORT</source>
|
||||||
|
<translation>メッシュのエクスポートに失敗しました。</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>SMESH_EXPORT_MED_DUPLICATED_GRP</source>
|
<source>SMESH_EXPORT_MED_DUPLICATED_GRP</source>
|
||||||
<translation>「%1」メッシュ内で重複するグループの名前です。エクスポートをキャンセルすることができ、名前の変更、結果の MED ファイル名に非グループの場合は研究の名前を一致しません。続行しますか。</translation>
|
<translation>「%1」メッシュ内で重複するグループの名前です。エクスポートをキャンセルすることができ、名前の変更、結果の MED ファイル名に非グループの場合は研究の名前を一致しません。続行しますか。</translation>
|
||||||
@ -1763,6 +1775,22 @@
|
|||||||
<source>SMESH_EXPORT_MED_MESH_NAMES_COLLISION</source>
|
<source>SMESH_EXPORT_MED_MESH_NAMES_COLLISION</source>
|
||||||
<translation>選択したファイルには既に次の名を持つメッシュが含まれています: %1 結果ファイルが正しくない可能性があります。ファイルを上書きしますか。</translation>
|
<translation>選択したファイルには既に次の名を持つメッシュが含まれています: %1 結果ファイルが正しくない可能性があります。ファイルを上書きしますか。</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>SMESH_EXPORT_MESHIO_ONLY_MESH</source>
|
||||||
|
<translation>現在の実装では、中間 MED ファイルを介したエクスポートが使用されます。
|
||||||
|
ただし、mesio は複数のメッシュを含む MED ファイルの読み取りをサポートしていません。
|
||||||
|
選択したメッシュは別のファイルに保存されます。
|
||||||
|
|
||||||
|
続けたいですか?</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>SMESH_MESHIO_NOT_INSTALLED</source>
|
||||||
|
<translation>メシオはインストールされていません!
|
||||||
|
操作はキャンセルされます。
|
||||||
|
|
||||||
|
次のコマンドで mesio をインストールしてみます。
|
||||||
|
pip install meshio[all]</translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>EXPORT_NOT_SUPPORTED</source>
|
<source>EXPORT_NOT_SUPPORTED</source>
|
||||||
<translation>名前 '%1' を %2 %3 とメッシュのエクスポートは無視されます。続行しますか。</translation>
|
<translation>名前 '%1' を %2 %3 とメッシュのエクスポートは無視されます。続行しますか。</translation>
|
||||||
|
@ -117,6 +117,7 @@ SET(SMESHEngine_HEADERS
|
|||||||
SMESH_Homard_i.hxx
|
SMESH_Homard_i.hxx
|
||||||
SMESH_SequentialMesh_i.hxx
|
SMESH_SequentialMesh_i.hxx
|
||||||
SMESH_ParallelMesh_i.hxx
|
SMESH_ParallelMesh_i.hxx
|
||||||
|
SMESH_Meshio.h
|
||||||
)
|
)
|
||||||
|
|
||||||
# --- sources ---
|
# --- sources ---
|
||||||
@ -147,6 +148,7 @@ SET(SMESHEngine_SOURCES
|
|||||||
MG_ADAPT_i.cxx
|
MG_ADAPT_i.cxx
|
||||||
SMESH_Homard_i.cxx
|
SMESH_Homard_i.cxx
|
||||||
SMESH_ParallelMesh_i.cxx
|
SMESH_ParallelMesh_i.cxx
|
||||||
|
SMESH_Meshio.cxx
|
||||||
)
|
)
|
||||||
|
|
||||||
# --- rules ---
|
# --- rules ---
|
||||||
|
@ -112,6 +112,7 @@
|
|||||||
#include <SMESH_BoostTxtArchive.hxx>
|
#include <SMESH_BoostTxtArchive.hxx>
|
||||||
#include <SMESH_SequentialMesh_i.hxx>
|
#include <SMESH_SequentialMesh_i.hxx>
|
||||||
#include <SMESH_ParallelMesh_i.hxx>
|
#include <SMESH_ParallelMesh_i.hxx>
|
||||||
|
#include "SMESH_Meshio.h"
|
||||||
|
|
||||||
// to pass CORBA exception through SMESH_TRY
|
// to pass CORBA exception through SMESH_TRY
|
||||||
#define SMY_OWN_CATCH catch( SALOME::SALOME_Exception& se ) { throw se; }
|
#define SMY_OWN_CATCH catch( SALOME::SALOME_Exception& se ) { throw se; }
|
||||||
@ -1350,6 +1351,39 @@ namespace
|
|||||||
SALOME::BAD_PARAM );
|
SALOME::BAD_PARAM );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Makes a python dump for a function by iterating the given SObjects
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
void functionToPythonDump(
|
||||||
|
SMESH_Gen_i* smesh, const std::string& functionName, std::vector<SALOMEDS::SObject_wrap>& sobjects)
|
||||||
|
{
|
||||||
|
TPythonDump aPythonDump(smesh);
|
||||||
|
aPythonDump << "([";
|
||||||
|
|
||||||
|
int i = 0;
|
||||||
|
for (const SALOMEDS::SObject_wrap& so : sobjects)
|
||||||
|
{
|
||||||
|
if (i > 0)
|
||||||
|
{
|
||||||
|
aPythonDump << ", ";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!so->_is_nil())
|
||||||
|
{
|
||||||
|
aPythonDump << so;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
aPythonDump << "mesh_" << i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
aPythonDump << "], status) = " << smesh << functionName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -1649,6 +1683,91 @@ SMESH_Gen_i::CreateMeshesFromGMF( const char* theFileName,
|
|||||||
return aMesh._retn();
|
return aMesh._retn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Create a mesh and import data from any file supported by meshio library
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
SMESH::mesh_array* SMESH_Gen_i::CreateMeshesFromMESHIO(const char* theFileName,
|
||||||
|
SMESH::DriverMED_ReadStatus& theStatus)
|
||||||
|
{
|
||||||
|
Unexpect aCatch(SALOME_SalomeException);
|
||||||
|
checkFileReadable(theFileName);
|
||||||
|
|
||||||
|
MESSAGE("Import part with meshio through an intermediate MED file");
|
||||||
|
|
||||||
|
// Create an object that holds a temp file name and
|
||||||
|
// removes the file when goes out of scope.
|
||||||
|
SMESH_Meshio meshio;
|
||||||
|
const QString tempFileName = meshio.CreateTempFileName(theFileName);
|
||||||
|
|
||||||
|
// Convert temp file into a target one with meshio command
|
||||||
|
meshio.Convert(theFileName, tempFileName);
|
||||||
|
|
||||||
|
// We don't need a python dump from SMESH_Gen_i::CreateMeshesFromMED(), so
|
||||||
|
// we can't use this method as is here. The followed code is an edited part of
|
||||||
|
// copy pasted CreateMeshesFromMED().
|
||||||
|
|
||||||
|
// Retrieve mesh names from the file
|
||||||
|
DriverMED_R_SMESHDS_Mesh myReader;
|
||||||
|
myReader.SetFile(tempFileName.toStdString());
|
||||||
|
myReader.SetMeshId(-1);
|
||||||
|
Driver_Mesh::Status aStatus;
|
||||||
|
list<string> aNames = myReader.GetMeshNames(aStatus);
|
||||||
|
SMESH::mesh_array_var aResult = new SMESH::mesh_array();
|
||||||
|
theStatus = (SMESH::DriverMED_ReadStatus)aStatus;
|
||||||
|
|
||||||
|
if (theStatus == SMESH::DRS_OK)
|
||||||
|
{
|
||||||
|
SALOMEDS::StudyBuilder_var aStudyBuilder;
|
||||||
|
aStudyBuilder = getStudyServant()->NewBuilder();
|
||||||
|
aStudyBuilder->NewCommand(); // There is a transaction
|
||||||
|
|
||||||
|
aResult->length(aNames.size());
|
||||||
|
std::vector<SALOMEDS::SObject_wrap> sobjects;
|
||||||
|
int i = 0;
|
||||||
|
|
||||||
|
// Iterate through all meshes and create mesh objects
|
||||||
|
for (const std::string& meshName : aNames)
|
||||||
|
{
|
||||||
|
// create mesh
|
||||||
|
SMESH::SMESH_Mesh_var mesh = createMesh();
|
||||||
|
|
||||||
|
// publish mesh in the study
|
||||||
|
SALOMEDS::SObject_wrap aSO;
|
||||||
|
if (CanPublishInStudy(mesh))
|
||||||
|
aSO = PublishMesh(mesh.in(), meshName.c_str());
|
||||||
|
|
||||||
|
// Save SO to use in a python dump
|
||||||
|
sobjects.emplace_back(aSO);
|
||||||
|
|
||||||
|
// Read mesh data (groups are published automatically by ImportMEDFile())
|
||||||
|
SMESH_Mesh_i* meshServant = dynamic_cast<SMESH_Mesh_i*>(GetServant(mesh).in());
|
||||||
|
ASSERT(meshServant);
|
||||||
|
SMESH::DriverMED_ReadStatus status1 =
|
||||||
|
meshServant->ImportMEDFile(tempFileName.toUtf8().data(), meshName.c_str());
|
||||||
|
if (status1 > theStatus)
|
||||||
|
theStatus = status1;
|
||||||
|
|
||||||
|
aResult[i++] = SMESH::SMESH_Mesh::_duplicate(mesh);
|
||||||
|
meshServant->GetImpl().GetMeshDS()->Modified();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!aStudyBuilder->_is_nil())
|
||||||
|
aStudyBuilder->CommitCommand();
|
||||||
|
|
||||||
|
// Python dump
|
||||||
|
const std::string functionName = std::string(".CreateMeshesFromMESHIO(r'") + theFileName + "')";
|
||||||
|
functionToPythonDump(this, functionName, sobjects);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dump creation of groups
|
||||||
|
for (CORBA::ULong i = 0; i < aResult->length(); ++i)
|
||||||
|
SMESH::ListOfGroups_var groups = aResult[i]->GetGroups();
|
||||||
|
|
||||||
|
return aResult._retn();
|
||||||
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
|
@ -256,6 +256,10 @@ public:
|
|||||||
CORBA::Boolean theMakeRequiredGroups,
|
CORBA::Boolean theMakeRequiredGroups,
|
||||||
SMESH::ComputeError_out theError);
|
SMESH::ComputeError_out theError);
|
||||||
|
|
||||||
|
// Create a mesh and import data from any file supported by meshio library
|
||||||
|
SMESH::mesh_array* CreateMeshesFromMESHIO(const char* theFileName,
|
||||||
|
SMESH::DriverMED_ReadStatus& theStatus);
|
||||||
|
|
||||||
// Create dual mesh of a tetrahedron mesh
|
// Create dual mesh of a tetrahedron mesh
|
||||||
SMESH::SMESH_Mesh_ptr CreateDualMesh(SMESH::SMESH_IDSource_ptr meshPart,
|
SMESH::SMESH_Mesh_ptr CreateDualMesh(SMESH::SMESH_IDSource_ptr meshPart,
|
||||||
const char* meshName,
|
const char* meshName,
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#include "SMESH_PreMeshInfo.hxx"
|
#include "SMESH_PreMeshInfo.hxx"
|
||||||
#include "SMESH_PythonDump.hxx"
|
#include "SMESH_PythonDump.hxx"
|
||||||
#include "SMESH_subMesh_i.hxx"
|
#include "SMESH_subMesh_i.hxx"
|
||||||
|
#include "SMESH_Meshio.h"
|
||||||
|
|
||||||
#include <SALOMEDS_Attributes_wrap.hxx>
|
#include <SALOMEDS_Attributes_wrap.hxx>
|
||||||
#include <SALOMEDS_wrap.hxx>
|
#include <SALOMEDS_wrap.hxx>
|
||||||
@ -4052,6 +4053,55 @@ void SMESH_Mesh_i::ExportPartToMED(SMESH::SMESH_IDSource_ptr meshPart,
|
|||||||
SMESH_CATCH( SMESH::throwCorbaException );
|
SMESH_CATCH( SMESH::throwCorbaException );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Export a part of mesh to a file with meshio library
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
void SMESH_Mesh_i::ExportPartToMESHIO(SMESH::SMESH_IDSource_ptr meshPart,
|
||||||
|
const char* file,
|
||||||
|
const char* selectedFilter)
|
||||||
|
{
|
||||||
|
// Get default MED version
|
||||||
|
SMESH::long_array_var medVersions = GetMEDVersionsCompatibleForAppend();
|
||||||
|
const CORBA::Long version = medVersions[0];
|
||||||
|
MESSAGE("Export part with meshio through MED version: " << version);
|
||||||
|
|
||||||
|
// Default values are the same as for MED export
|
||||||
|
const bool auto_groups = false;
|
||||||
|
const bool overwrite = true;
|
||||||
|
const bool autoDimension = true;
|
||||||
|
const GEOM::ListOfFields fields;
|
||||||
|
const char* geomAssocFields = "";
|
||||||
|
const double ZTolerance = -1.0;
|
||||||
|
const bool saveNumbers = true;
|
||||||
|
|
||||||
|
// Create an object that holds a temp file name and
|
||||||
|
// removes the file when goes out of scope.
|
||||||
|
SMESH_Meshio meshio(selectedFilter);
|
||||||
|
const QString tempFileName = meshio.CreateTempFileName(file);
|
||||||
|
|
||||||
|
// Export a given mesh into the temp file
|
||||||
|
MEDFileSpeCls spe(tempFileName.toUtf8().data(), overwrite, version);
|
||||||
|
this->ExportPartToMEDCommon(spe, meshPart, auto_groups, autoDimension, fields,
|
||||||
|
geomAssocFields, ZTolerance, saveNumbers);
|
||||||
|
|
||||||
|
// Convert temp file into a target one with meshio command
|
||||||
|
meshio.Convert(tempFileName, file);
|
||||||
|
|
||||||
|
// Prepare python dump
|
||||||
|
SMESH_TRY;
|
||||||
|
|
||||||
|
TPythonDump() << _this() << ".ExportPartToMESHIO("
|
||||||
|
<< meshPart << ", r'"
|
||||||
|
<< file << "', '"
|
||||||
|
<< selectedFilter << "'"
|
||||||
|
<< ")";
|
||||||
|
|
||||||
|
SMESH_CATCH(SMESH::throwCorbaException);
|
||||||
|
}
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
|
|
||||||
class MEDFileMemSpeCls
|
class MEDFileMemSpeCls
|
||||||
|
@ -248,6 +248,10 @@ public:
|
|||||||
CORBA::Double ZTolerance,
|
CORBA::Double ZTolerance,
|
||||||
CORBA::Boolean saveNumbers );
|
CORBA::Boolean saveNumbers );
|
||||||
|
|
||||||
|
void ExportPartToMESHIO(SMESH::SMESH_IDSource_ptr meshPart,
|
||||||
|
const char* file,
|
||||||
|
const char* selectedFilter);
|
||||||
|
|
||||||
CORBA::LongLong ExportPartToMEDCoupling(SMESH::SMESH_IDSource_ptr meshPart,
|
CORBA::LongLong ExportPartToMEDCoupling(SMESH::SMESH_IDSource_ptr meshPart,
|
||||||
CORBA::Boolean auto_groups,
|
CORBA::Boolean auto_groups,
|
||||||
CORBA::Boolean autoDim,
|
CORBA::Boolean autoDim,
|
||||||
|
245
src/SMESH_I/SMESH_Meshio.cxx
Normal file
245
src/SMESH_I/SMESH_Meshio.cxx
Normal file
@ -0,0 +1,245 @@
|
|||||||
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
//
|
||||||
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Lesser General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
//
|
||||||
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
|
//
|
||||||
|
|
||||||
|
// SMESH SMESH_I : support of import / export with meshio library
|
||||||
|
// File : SMESH_Meshio.h
|
||||||
|
// Author : Konstantin Leontev, Open CASCADE S.A.S.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "SMESH_Meshio.h"
|
||||||
|
|
||||||
|
// SALOME KERNEL includes
|
||||||
|
#include <SALOMEDS_Tool.hxx>
|
||||||
|
#include <Basics_DirUtils.hxx>
|
||||||
|
#include <SALOME_Exception.hh>
|
||||||
|
#include <utilities.h>
|
||||||
|
|
||||||
|
// Qt
|
||||||
|
#include <QFileInfo>
|
||||||
|
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Constructor
|
||||||
|
*/
|
||||||
|
SMESH_Meshio::SMESH_Meshio()
|
||||||
|
{
|
||||||
|
CreateErrorFileName();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Constructor
|
||||||
|
*/
|
||||||
|
SMESH_Meshio::SMESH_Meshio(const QString& selectedFilter)
|
||||||
|
: SMESH_Meshio()
|
||||||
|
{
|
||||||
|
mySelectedFilter = selectedFilter;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Destructor
|
||||||
|
*/
|
||||||
|
SMESH_Meshio::~SMESH_Meshio()
|
||||||
|
{
|
||||||
|
RemoveTempFile();
|
||||||
|
RemoveErrorFile();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Convert file with meshio convert command
|
||||||
|
*/
|
||||||
|
void SMESH_Meshio::Convert(const QString& sourceFileName, const QString& targetFileName) const
|
||||||
|
{
|
||||||
|
// Execute meshio convert command
|
||||||
|
const QString convert = IsModernPythonVersion() ? "meshio convert " : "meshio-convert ";
|
||||||
|
const QString optArgs = GetConvertOptArgs();
|
||||||
|
|
||||||
|
const std::string cmd =
|
||||||
|
(convert + optArgs + " " + sourceFileName + " " + targetFileName + " 2> " + myErrorFileName).toStdString();
|
||||||
|
MESSAGE("Call system(\"" << cmd << "\") ...");
|
||||||
|
|
||||||
|
const int status = system(cmd.c_str());
|
||||||
|
MESSAGE("status: " << status);
|
||||||
|
|
||||||
|
// Check results
|
||||||
|
if (status != 0 || !Kernel_Utils::IsExists(targetFileName.toStdString()))
|
||||||
|
{
|
||||||
|
// Get all the output from an error file
|
||||||
|
const std::string meshioErrors = ReadErrorsFromFile();
|
||||||
|
MESSAGE("meshioErrors: \n" << meshioErrors);
|
||||||
|
|
||||||
|
SALOME::ExceptionStruct es;
|
||||||
|
es.type = SALOME::ExceptionType::BAD_PARAM;
|
||||||
|
es.lineNumber = -1;
|
||||||
|
es.text = CORBA::string_dup(
|
||||||
|
("MESHIO\nFailed system(\"" + cmd + "\").\n\n" + meshioErrors + "\nOperation canceled.").c_str());
|
||||||
|
|
||||||
|
throw SALOME::SALOME_Exception(es);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Returns a name for a file in default temp directory
|
||||||
|
based on a target basename.
|
||||||
|
*/
|
||||||
|
QString SMESH_Meshio::CreateTempFileName(const QString& targetFileName)
|
||||||
|
{
|
||||||
|
// Make a name for a temp file
|
||||||
|
const QFileInfo fileInfo(targetFileName);
|
||||||
|
const QString targetBaseName = fileInfo.baseName();
|
||||||
|
const QString dirName(SALOMEDS_Tool::GetTmpDir().c_str());
|
||||||
|
myTempFileName = dirName + targetBaseName + ".med";
|
||||||
|
|
||||||
|
MESSAGE("targetFileName: " << targetFileName.toStdString());
|
||||||
|
MESSAGE("myTempFileName: " << myTempFileName.toStdString());
|
||||||
|
|
||||||
|
return myTempFileName;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Removes the temporary file if we have any
|
||||||
|
*/
|
||||||
|
void SMESH_Meshio::RemoveTempFile()
|
||||||
|
{
|
||||||
|
if (!myTempFileName.isEmpty())
|
||||||
|
{
|
||||||
|
std::remove(myTempFileName.toStdString().c_str());
|
||||||
|
MESSAGE("Temp file " << myTempFileName.toStdString() << " was removed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Returns true if current Python equal or newer than required version for
|
||||||
|
meshio release from 5.0 and greater.
|
||||||
|
*/
|
||||||
|
bool SMESH_Meshio::IsModernPythonVersion()
|
||||||
|
{
|
||||||
|
// It's a version when meshio commands were changed from using
|
||||||
|
// many executables for each operation to one for everything (meshio 5.0).
|
||||||
|
// For example, from
|
||||||
|
// meshio-convert input.msh output.vtk
|
||||||
|
// to
|
||||||
|
// meshio convert input.msh output.vtk
|
||||||
|
|
||||||
|
const std::vector<int> minReqVersionNums = { 3, 7 };
|
||||||
|
|
||||||
|
auto GetCurrentVersion = []() -> QString
|
||||||
|
{
|
||||||
|
const char *envVar = std::getenv("PYTHON_VERSION");
|
||||||
|
if (envVar && (envVar[0] != '\0'))
|
||||||
|
{
|
||||||
|
return envVar;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {};
|
||||||
|
};
|
||||||
|
|
||||||
|
auto IsModernVersion = [&]() -> bool
|
||||||
|
{
|
||||||
|
const QString curVersion = GetCurrentVersion();
|
||||||
|
MESSAGE("Current Python version: " << curVersion.toStdString())
|
||||||
|
if (curVersion.length() < 3)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
int index = 0;
|
||||||
|
const QStringList curVersionNums = curVersion.split('.');
|
||||||
|
for (const int minVersion : minReqVersionNums)
|
||||||
|
{
|
||||||
|
if (minVersion > curVersionNums[index].toInt())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
++index;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
};
|
||||||
|
|
||||||
|
static const bool isModern = IsModernVersion();
|
||||||
|
return isModern;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Creates a temp file for error output from meshio command.
|
||||||
|
*/
|
||||||
|
void SMESH_Meshio::CreateErrorFileName()
|
||||||
|
{
|
||||||
|
// Make a name for a temp file
|
||||||
|
const QString fileName = "meshio_errors.txt";
|
||||||
|
const QString dirName(SALOMEDS_Tool::GetTmpDir().c_str());
|
||||||
|
myErrorFileName = dirName + fileName;
|
||||||
|
|
||||||
|
MESSAGE("myErrorFileName: " << myErrorFileName.toStdString());
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Removes the temporary error output file if we have any
|
||||||
|
*/
|
||||||
|
void SMESH_Meshio::RemoveErrorFile()
|
||||||
|
{
|
||||||
|
if (!myErrorFileName.isEmpty())
|
||||||
|
{
|
||||||
|
std::remove(myErrorFileName.toStdString().c_str());
|
||||||
|
MESSAGE("Temp file " << myErrorFileName.toStdString() << " was removed");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Read all errors output from a temp file
|
||||||
|
*/
|
||||||
|
std::string SMESH_Meshio::ReadErrorsFromFile() const
|
||||||
|
{
|
||||||
|
if (myErrorFileName.isEmpty())
|
||||||
|
return {};
|
||||||
|
|
||||||
|
std::ifstream fileStream(myErrorFileName.toStdString());
|
||||||
|
if(fileStream)
|
||||||
|
{
|
||||||
|
std::ostringstream ss;
|
||||||
|
ss << fileStream.rdbuf();
|
||||||
|
|
||||||
|
return ss.str();
|
||||||
|
}
|
||||||
|
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
Get optional arguments for meshio convert command
|
||||||
|
*/
|
||||||
|
QString SMESH_Meshio::GetConvertOptArgs() const
|
||||||
|
{
|
||||||
|
if (mySelectedFilter.isEmpty())
|
||||||
|
return mySelectedFilter;
|
||||||
|
|
||||||
|
// Check what kind of option we must provide
|
||||||
|
if (mySelectedFilter.startsWith("ANSYS"))
|
||||||
|
return "-o ansys";
|
||||||
|
else if (mySelectedFilter.startsWith("Gmsh 2"))
|
||||||
|
return "-o gmsh22";
|
||||||
|
else if (mySelectedFilter.startsWith("Gmsh 4"))
|
||||||
|
return "-o gmsh";
|
||||||
|
|
||||||
|
return {};
|
||||||
|
}
|
61
src/SMESH_I/SMESH_Meshio.h
Normal file
61
src/SMESH_I/SMESH_Meshio.h
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
//
|
||||||
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Lesser General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2.1 of the License, or (at your option) any later version.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
//
|
||||||
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
|
//
|
||||||
|
|
||||||
|
// SMESH SMESH_I : support of import / export with meshio library
|
||||||
|
// File : SMESH_Meshio.h
|
||||||
|
// Author : Konstantin Leontev, Open CASCADE S.A.S.
|
||||||
|
//
|
||||||
|
#ifndef SMESH_MESHIO_H
|
||||||
|
#define SMESH_MESHIO_H
|
||||||
|
|
||||||
|
#include "SMESH.hxx"
|
||||||
|
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
|
|
||||||
|
class SMESH_I_EXPORT SMESH_Meshio
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
SMESH_Meshio();
|
||||||
|
SMESH_Meshio(const QString& selectedFilter);
|
||||||
|
virtual ~SMESH_Meshio();
|
||||||
|
|
||||||
|
QString CreateTempFileName(const QString& targetFileName);
|
||||||
|
void Convert(const QString& sourceFileName, const QString& targetFileName) const;
|
||||||
|
|
||||||
|
static bool IsModernPythonVersion();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void RemoveTempFile();
|
||||||
|
void CreateErrorFileName();
|
||||||
|
void RemoveErrorFile();
|
||||||
|
std::string ReadErrorsFromFile() const;
|
||||||
|
|
||||||
|
QString GetConvertOptArgs() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString myTempFileName;
|
||||||
|
QString myErrorFileName;
|
||||||
|
QString mySelectedFilter;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // SMESH_MESHIO_H
|
@ -741,6 +741,19 @@ class smeshBuilder( SMESH._objref_SMESH_Gen, object ):
|
|||||||
if error.comment: print("*** CreateMeshesFromGMF() errors:\n", error.comment)
|
if error.comment: print("*** CreateMeshesFromGMF() errors:\n", error.comment)
|
||||||
return Mesh(self, self.geompyD, aSmeshMesh), error
|
return Mesh(self, self.geompyD, aSmeshMesh), error
|
||||||
|
|
||||||
|
def CreateMeshesFromMESHIO(self, theFileName):
|
||||||
|
"""
|
||||||
|
Create a Mesh object(s) importing data from from any file supported by meshio library.
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
a tuple ( list of class :class:`Mesh` instances,
|
||||||
|
:class:`SMESH.DriverMED_ReadStatus` )
|
||||||
|
"""
|
||||||
|
|
||||||
|
aSmeshMeshes, aStatus = SMESH._objref_SMESH_Gen.CreateMeshesFromMESHIO(self, theFileName)
|
||||||
|
aMeshes = [ Mesh(self, self.geompyD, m) for m in aSmeshMeshes ]
|
||||||
|
return aMeshes, aStatus
|
||||||
|
|
||||||
def Concatenate( self, meshes, uniteIdenticalGroups,
|
def Concatenate( self, meshes, uniteIdenticalGroups,
|
||||||
mergeNodesAndElements = False, mergeTolerance = 1e-5, allGroups = False,
|
mergeNodesAndElements = False, mergeTolerance = 1e-5, allGroups = False,
|
||||||
name = "", meshToAppendTo = None):
|
name = "", meshToAppendTo = None):
|
||||||
@ -2596,6 +2609,47 @@ class Mesh(metaclass = MeshMeta):
|
|||||||
meshPart = self.mesh
|
meshPart = self.mesh
|
||||||
self.mesh.ExportGMF(meshPart, f, True)
|
self.mesh.ExportGMF(meshPart, f, True)
|
||||||
|
|
||||||
|
def ExportMESHIO(
|
||||||
|
self,
|
||||||
|
fileName,
|
||||||
|
selectedFilter,
|
||||||
|
meshPart
|
||||||
|
):
|
||||||
|
"""
|
||||||
|
Exports a part of mesh to a file with meshio library
|
||||||
|
through an intermediate MED file.
|
||||||
|
|
||||||
|
Parametrs described below are the same as for ExportMED() method.
|
||||||
|
However, we know that _pyMesh::Process(const Handle(_pyCommand)& theCommand) method
|
||||||
|
change a position of meshPart argument when dump to a Python script for whatever reason
|
||||||
|
this way:
|
||||||
|
- to 5th place for ExportMED command
|
||||||
|
- to last place for the rest commands
|
||||||
|
|
||||||
|
So, for this method meshPart moved to the end of the args.
|
||||||
|
Look at src/SMESH_I/SMESH_2smeshpy.cxx for related source code.
|
||||||
|
|
||||||
|
The same note is for the name of the method that was dumped as ExportPartToMESHIO(),
|
||||||
|
but then processing just removes PartTo from the middle of the name as it was done
|
||||||
|
for all export methods.
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
fileName: is the file name
|
||||||
|
selectedFilter: filter string selected by user in a file dialog
|
||||||
|
meshPart: a part of mesh (:class:`sub-mesh, group or filter <SMESH.SMESH_IDSource>`)
|
||||||
|
to export instead of the mesh
|
||||||
|
"""
|
||||||
|
|
||||||
|
if isinstance(meshPart, Mesh):
|
||||||
|
meshPart = meshPart.GetMesh()
|
||||||
|
|
||||||
|
self.mesh.ExportPartToMESHIO(
|
||||||
|
meshPart,
|
||||||
|
fileName,
|
||||||
|
selectedFilter
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def ExportToMED(self, *args, **kwargs):
|
def ExportToMED(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Deprecated, used only for compatibility! Please, use :meth:`ExportMED` method instead.
|
Deprecated, used only for compatibility! Please, use :meth:`ExportMED` method instead.
|
||||||
|
181
test/SMESH_MeshioFiles.py
Normal file
181
test/SMESH_MeshioFiles.py
Normal file
@ -0,0 +1,181 @@
|
|||||||
|
# -*- coding: iso-8859-1 -*-
|
||||||
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# This library is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU Lesser General Public
|
||||||
|
# License as published by the Free Software Foundation; either
|
||||||
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This library is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with this library; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
|
#
|
||||||
|
|
||||||
|
# =======================================
|
||||||
|
# Testing export/import of sample meshes from meshio repository
|
||||||
|
# File : SMESH_MeshioFiles.py
|
||||||
|
# Module : SMESH
|
||||||
|
|
||||||
|
import tempfile
|
||||||
|
import subprocess
|
||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
from SMESH_MeshioShapes import export_mesh, import_file
|
||||||
|
|
||||||
|
|
||||||
|
def supported_extensions():
|
||||||
|
"""
|
||||||
|
Returns a list of format extensions that salome already supports
|
||||||
|
for import/export operations.
|
||||||
|
"""
|
||||||
|
|
||||||
|
return [
|
||||||
|
'.med',
|
||||||
|
'.unv',
|
||||||
|
'.stl',
|
||||||
|
'.cgns',
|
||||||
|
'.mesh',
|
||||||
|
'.meshb'
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def convert(source_file, target_file, errors):
|
||||||
|
"""
|
||||||
|
Converts files with meshio shell command.
|
||||||
|
"""
|
||||||
|
try:
|
||||||
|
cmd = 'meshio convert {} {}'.format(source_file, target_file)
|
||||||
|
print('{} start...'.format(cmd))
|
||||||
|
|
||||||
|
subprocess.run(['meshio', 'convert', source_file, target_file], check=True)
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
|
except Exception:
|
||||||
|
source_ext = Path(source_file).suffix.upper()
|
||||||
|
target_ext = Path(target_file).suffix.upper()
|
||||||
|
|
||||||
|
errors.append('[{} -> {}]: {} failed!'.format(source_ext, target_ext, cmd))
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def print_errors(errors):
|
||||||
|
"""
|
||||||
|
Checks if we have got any saved error messages and print them.
|
||||||
|
"""
|
||||||
|
|
||||||
|
if not len(errors):
|
||||||
|
return
|
||||||
|
|
||||||
|
print('\nErrors:')
|
||||||
|
for idx, err in enumerate(errors):
|
||||||
|
print('{:02}: {}'.format(idx, err))
|
||||||
|
|
||||||
|
print('\n===============================================')
|
||||||
|
|
||||||
|
|
||||||
|
def perform_ext(directory, ext, errors):
|
||||||
|
"""
|
||||||
|
Exports a given mesh and imports it back for each mesh file
|
||||||
|
through a file with a given extension.
|
||||||
|
It uses shell meshio convert command for conversion.
|
||||||
|
"""
|
||||||
|
|
||||||
|
for subdir, _, files in os.walk(directory):
|
||||||
|
for file in files:
|
||||||
|
|
||||||
|
# Skip helper files
|
||||||
|
if file.endswith('.md') or file.endswith('Makefile'):
|
||||||
|
continue
|
||||||
|
|
||||||
|
filepath = os.path.join(subdir, file)
|
||||||
|
|
||||||
|
with tempfile.NamedTemporaryFile(suffix=ext) as temp_file:
|
||||||
|
temp_file.close() # prevents PermissionError on Windows
|
||||||
|
if not convert(filepath, temp_file.name, errors):
|
||||||
|
continue
|
||||||
|
|
||||||
|
file_extension = Path(file).suffix
|
||||||
|
with tempfile.NamedTemporaryFile(suffix=file_extension) as temp_file_back:
|
||||||
|
temp_file.close() # prevents PermissionError on Windows
|
||||||
|
temp_file_back.close() # prevents PermissionError on Windows
|
||||||
|
convert(temp_file.name, temp_file_back.name, errors)
|
||||||
|
|
||||||
|
|
||||||
|
def test_shell(directory, errors):
|
||||||
|
"""
|
||||||
|
Iterates salome extensions and convert meshes through
|
||||||
|
a corresponding format.
|
||||||
|
.
|
||||||
|
"""
|
||||||
|
|
||||||
|
for ext in supported_extensions():
|
||||||
|
perform_ext(directory, ext, errors)
|
||||||
|
|
||||||
|
|
||||||
|
def test_salome(directory, errors):
|
||||||
|
"""
|
||||||
|
Iterates over mesh files in a given directory and tries to import
|
||||||
|
them into salome and export back to a temp file with the same format.
|
||||||
|
"""
|
||||||
|
|
||||||
|
for subdir, _, files in os.walk(directory):
|
||||||
|
for file in files:
|
||||||
|
|
||||||
|
# Skip helper files
|
||||||
|
if file.endswith('.md') or file.endswith('Makefile'):
|
||||||
|
continue
|
||||||
|
|
||||||
|
# Skip files those have issues with current meshio version
|
||||||
|
if (file.endswith('.f3grid') or
|
||||||
|
file.endswith('.ugrid') or
|
||||||
|
file.endswith('.su2') or
|
||||||
|
file.endswith('element_elset.inp') or
|
||||||
|
file.endswith('insulated-4.1.msh') or
|
||||||
|
file.endswith('insulated-2.2.msh') or
|
||||||
|
file.endswith('simple1')):
|
||||||
|
continue
|
||||||
|
|
||||||
|
filepath = os.path.join(subdir, file)
|
||||||
|
|
||||||
|
# Import a file
|
||||||
|
mesh = import_file(filepath, errors)
|
||||||
|
if not mesh:
|
||||||
|
continue
|
||||||
|
|
||||||
|
file_extension = Path(file).suffix
|
||||||
|
with tempfile.NamedTemporaryFile(suffix=file_extension) as temp_file:
|
||||||
|
temp_file.close() # prevents PermissionError on Windows
|
||||||
|
export_mesh(mesh, temp_file.name, errors)
|
||||||
|
|
||||||
|
|
||||||
|
def test():
|
||||||
|
"""
|
||||||
|
Tests import/export of meshes from a given directory
|
||||||
|
and prints errors if we have any.
|
||||||
|
"""
|
||||||
|
|
||||||
|
errors = []
|
||||||
|
directory = 'data/meshio_meshes'
|
||||||
|
|
||||||
|
# Only for debug purpose.
|
||||||
|
# Uncomment if you need to test meshio library shell command itself.
|
||||||
|
# test_shell(directory, errors)
|
||||||
|
|
||||||
|
test_salome(directory, errors)
|
||||||
|
|
||||||
|
print_errors(errors)
|
||||||
|
assert not len(errors)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
test()
|
260
test/SMESH_MeshioShapes.py
Normal file
260
test/SMESH_MeshioShapes.py
Normal file
@ -0,0 +1,260 @@
|
|||||||
|
# -*- coding: iso-8859-1 -*-
|
||||||
|
# Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
|
||||||
|
#
|
||||||
|
# This library is free software; you can redistribute it and/or
|
||||||
|
# modify it under the terms of the GNU Lesser General Public
|
||||||
|
# License as published by the Free Software Foundation; either
|
||||||
|
# version 2.1 of the License, or (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This library is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
# Lesser General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU Lesser General Public
|
||||||
|
# License along with this library; if not, write to the Free Software
|
||||||
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#
|
||||||
|
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
|
#
|
||||||
|
|
||||||
|
# =======================================
|
||||||
|
# Testing export/import of some simple shapes in different formats with meshio library
|
||||||
|
# File : SMESH_MeshioShapes.py
|
||||||
|
# Module : SMESH
|
||||||
|
|
||||||
|
import tempfile
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import salome
|
||||||
|
salome.salome_init()
|
||||||
|
|
||||||
|
import GEOM
|
||||||
|
from salome.geom import geomBuilder
|
||||||
|
|
||||||
|
import SMESH
|
||||||
|
from salome.smesh import smeshBuilder
|
||||||
|
|
||||||
|
import SALOME
|
||||||
|
|
||||||
|
# Constants
|
||||||
|
EXPORT_TITLE = 'Export'
|
||||||
|
IMPORT_TITLE = 'Import'
|
||||||
|
UNKNOWN_EXCEPTION = 'Unknown exception'
|
||||||
|
OUTPUT_DIVIDER = '\n==============================================='
|
||||||
|
|
||||||
|
|
||||||
|
geompy = geomBuilder.New()
|
||||||
|
smesh = smeshBuilder.New()
|
||||||
|
|
||||||
|
|
||||||
|
def make_plane():
|
||||||
|
"""
|
||||||
|
Makes default plane for testing.
|
||||||
|
"""
|
||||||
|
|
||||||
|
plane = geompy.MakeFaceHW(100, 100, 1)
|
||||||
|
geompy.addToStudy( plane, 'plane' )
|
||||||
|
|
||||||
|
return plane
|
||||||
|
|
||||||
|
|
||||||
|
def make_box():
|
||||||
|
"""
|
||||||
|
Makes default box for testing.
|
||||||
|
"""
|
||||||
|
|
||||||
|
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||||
|
geompy.addToStudy(box, 'box')
|
||||||
|
|
||||||
|
return box
|
||||||
|
|
||||||
|
|
||||||
|
def make_mesh(shape, name):
|
||||||
|
"""
|
||||||
|
Makes a mesh from a given shape.
|
||||||
|
"""
|
||||||
|
res_mesh = smesh.Mesh(shape,name)
|
||||||
|
NETGEN_1D_2D = res_mesh.Triangle(algo=smeshBuilder.NETGEN_1D2D)
|
||||||
|
isDone = res_mesh.Compute()
|
||||||
|
assert isDone
|
||||||
|
|
||||||
|
smesh.SetName(res_mesh, name)
|
||||||
|
smesh.SetName(NETGEN_1D_2D.GetAlgorithm(), 'NETGEN 1D-2D')
|
||||||
|
smesh.SetName(res_mesh.GetMesh(), name)
|
||||||
|
|
||||||
|
return res_mesh
|
||||||
|
|
||||||
|
|
||||||
|
def file_extensions():
|
||||||
|
"""
|
||||||
|
Returns all files extensions supported by meshio.
|
||||||
|
Commented formats should be checked on next meshio release to see if the problem was fixed.
|
||||||
|
"""
|
||||||
|
|
||||||
|
return [
|
||||||
|
'.avs',
|
||||||
|
'.bdf',
|
||||||
|
# '.cgns', # meshio IndexError: index 2 is out of bounds for axis 1 with size 2
|
||||||
|
# '.dat', # meshio ValueError: need at least one array to concatenate
|
||||||
|
'.dato',
|
||||||
|
'.dato.gz',
|
||||||
|
'.e',
|
||||||
|
# '.ele', # never returns from meshio convert command
|
||||||
|
'.exo',
|
||||||
|
# '.f3grid', # meshio IndexError: Replacement index 3 out of range for positional args tuple
|
||||||
|
'.fem',
|
||||||
|
# '.h5m', # meshio AttributeError: 'list' object has no attribute 'items'
|
||||||
|
'.inp',
|
||||||
|
'.mdpa',
|
||||||
|
'.med',
|
||||||
|
'.mesh',
|
||||||
|
'.meshb',
|
||||||
|
# '.msh', # meshio KeyError: "Illegal ANSYS cell type 'line'
|
||||||
|
'.nas',
|
||||||
|
# '.node', # never returns from meshio convert command
|
||||||
|
# '.obj', # meshio._exceptions.WriteError: Wavefront .obj files can only contain triangle or quad cells
|
||||||
|
# '.off', # failed on Windows only
|
||||||
|
# '.ply', # Export Warning: PLY doesn't support 64-bit integers. Casting down to 32-bit. Then import failed
|
||||||
|
'.post',
|
||||||
|
'.post.gz',
|
||||||
|
'.stl',
|
||||||
|
# '.su2', # meshio TypeError: cannot unpack non-iterable CellBlock object
|
||||||
|
# '.svg', # meshio._exceptions.WriteError: SVG can only handle flat 2D meshes
|
||||||
|
# '.ugrid', # meshio AttributeError: 'list' object has no attribute 'reshape'
|
||||||
|
'.vol',
|
||||||
|
'.vol.gz',
|
||||||
|
'.vtk',
|
||||||
|
'.vtu',
|
||||||
|
# '.wkt', # Export Warning: WTK only supports triangle cells. Skipping {", ".join(skip)} then import failed
|
||||||
|
'.xdmf',
|
||||||
|
'.xmf',
|
||||||
|
'.xml'
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def exception_handle(file_name, errors, operation_type, ex_text):
|
||||||
|
"""
|
||||||
|
Pepares and saves an exception message.
|
||||||
|
"""
|
||||||
|
|
||||||
|
ext = Path(file_name).suffix.upper()
|
||||||
|
msg = '{} {} failed! File name: {}'.format(operation_type, ext, file_name)
|
||||||
|
if ex_text:
|
||||||
|
msg += ' Exception: ' + ex_text + OUTPUT_DIVIDER + '\n'
|
||||||
|
|
||||||
|
errors.append(msg)
|
||||||
|
|
||||||
|
|
||||||
|
def export_mesh(mesh, file_name, errors):
|
||||||
|
"""
|
||||||
|
Performs an export operatin.
|
||||||
|
"""
|
||||||
|
|
||||||
|
try:
|
||||||
|
print('Export to file: ', file_name)
|
||||||
|
|
||||||
|
# Here we use an empty selected filter to make things simpler
|
||||||
|
mesh.ExportMESHIO(file_name, '', mesh)
|
||||||
|
return True
|
||||||
|
|
||||||
|
except SALOME.SALOME_Exception as ex:
|
||||||
|
exception_handle(file_name, errors, EXPORT_TITLE, ex.details.text)
|
||||||
|
|
||||||
|
except:
|
||||||
|
exception_handle(file_name, errors, EXPORT_TITLE, UNKNOWN_EXCEPTION)
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
def import_file(file_name, errors):
|
||||||
|
"""
|
||||||
|
Performs an import operatin.
|
||||||
|
"""
|
||||||
|
|
||||||
|
try:
|
||||||
|
print('Import from file: ', file_name)
|
||||||
|
|
||||||
|
([mesh], status) = smesh.CreateMeshesFromMESHIO(file_name)
|
||||||
|
return mesh
|
||||||
|
|
||||||
|
except SALOME.SALOME_Exception as ex:
|
||||||
|
exception_handle(file_name, errors, IMPORT_TITLE, ex.details.text)
|
||||||
|
|
||||||
|
except:
|
||||||
|
exception_handle(file_name, errors, IMPORT_TITLE, UNKNOWN_EXCEPTION)
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
def print_errors(errors):
|
||||||
|
"""
|
||||||
|
Checks if we have got any saved error messages and print them.
|
||||||
|
The test failed in this case.
|
||||||
|
"""
|
||||||
|
|
||||||
|
if not len(errors):
|
||||||
|
return
|
||||||
|
|
||||||
|
print('\nErrors:\n')
|
||||||
|
for idx, err in enumerate(errors):
|
||||||
|
print('{:02}: {}'.format(idx, err))
|
||||||
|
|
||||||
|
print(OUTPUT_DIVIDER)
|
||||||
|
|
||||||
|
|
||||||
|
def perform(mesh, name, errors):
|
||||||
|
"""
|
||||||
|
Exports a given mesh and imports it back for each file format.
|
||||||
|
"""
|
||||||
|
|
||||||
|
for ext in file_extensions():
|
||||||
|
with tempfile.NamedTemporaryFile(suffix=ext, prefix=name) as file:
|
||||||
|
file.close() # prevents PermissionError on Windows
|
||||||
|
if (export_mesh(mesh, file.name, errors)):
|
||||||
|
file.close() # prevents PermissionError on Windows
|
||||||
|
import_file(file.name, errors)
|
||||||
|
|
||||||
|
|
||||||
|
def test_box(errors):
|
||||||
|
"""
|
||||||
|
Tests export / import of a mesh for a default box geometry.
|
||||||
|
"""
|
||||||
|
|
||||||
|
box = make_box()
|
||||||
|
|
||||||
|
mesh_name = 'Test_box_'
|
||||||
|
mesh = make_mesh(box, mesh_name)
|
||||||
|
perform(mesh, mesh_name, errors)
|
||||||
|
|
||||||
|
|
||||||
|
def test_plane(errors):
|
||||||
|
"""
|
||||||
|
Tests export / import of a mesh for a default plane geometry.
|
||||||
|
"""
|
||||||
|
|
||||||
|
plane = make_plane()
|
||||||
|
|
||||||
|
mesh_name = 'Test_plane_'
|
||||||
|
mesh = make_mesh(plane, mesh_name)
|
||||||
|
perform(mesh, mesh_name, errors)
|
||||||
|
|
||||||
|
|
||||||
|
def test():
|
||||||
|
"""
|
||||||
|
Creates meshes from plane and box and tries to export them to a temp files
|
||||||
|
and import them back with different formats supported by meshio library.
|
||||||
|
Prints errors if we have any.
|
||||||
|
"""
|
||||||
|
|
||||||
|
errors = []
|
||||||
|
|
||||||
|
test_plane(errors)
|
||||||
|
test_box(errors)
|
||||||
|
|
||||||
|
print_errors(errors)
|
||||||
|
assert not len(errors)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
test()
|
2
test/data/meshio_meshes/abaqus/README.md
Normal file
2
test/data/meshio_meshes/abaqus/README.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* `UUea.inp`: From http://www-h.eng.cam.ac.uk/help/programs/fe/abaqus/faq68/txt/UUea.inp.txt
|
||||||
|
* `nle1xf3c.inp`: From https://abaqus-docs.mit.edu/2017/English/SIMAINPRefResources/nle1xf3c.inp
|
285
test/data/meshio_meshes/abaqus/UUea.inp
Normal file
285
test/data/meshio_meshes/abaqus/UUea.inp
Normal file
@ -0,0 +1,285 @@
|
|||||||
|
*Heading
|
||||||
|
** Job name: UUa Model name: Model-2
|
||||||
|
** Generated by: Abaqus/CAE 6.11-1
|
||||||
|
*Preprint, echo=NO, model=NO, history=NO, contact=NO
|
||||||
|
**
|
||||||
|
** PARTS
|
||||||
|
**
|
||||||
|
*Part, name=Part-1
|
||||||
|
*End Part
|
||||||
|
**
|
||||||
|
**
|
||||||
|
** ASSEMBLY
|
||||||
|
**
|
||||||
|
*Assembly, name=Assembly
|
||||||
|
**
|
||||||
|
*Instance, name=Part-1-1, part=Part-1
|
||||||
|
*Node
|
||||||
|
1, 0., 0.
|
||||||
|
2, 10., 0.
|
||||||
|
3, 20., 0.
|
||||||
|
4, 30., 0.
|
||||||
|
5, 40., 0.
|
||||||
|
6, 50., 0.
|
||||||
|
7, 0., 10.
|
||||||
|
8, 10., 10.
|
||||||
|
9, 20., 10.
|
||||||
|
10, 30., 10.
|
||||||
|
11, 40., 10.
|
||||||
|
12, 50., 10.
|
||||||
|
13, 0., 20.
|
||||||
|
14, 10., 20.
|
||||||
|
15, 20., 20.
|
||||||
|
16, 30., 20.
|
||||||
|
17, 40., 20.
|
||||||
|
18, 50., 20.
|
||||||
|
19, 0., 30.
|
||||||
|
20, 10., 30.
|
||||||
|
21, 20., 30.
|
||||||
|
22, 30., 30.
|
||||||
|
23, 40., 30.
|
||||||
|
24, 50., 30.
|
||||||
|
25, 0., 40.
|
||||||
|
26, 10., 40.
|
||||||
|
27, 20., 40.
|
||||||
|
28, 30., 40.
|
||||||
|
29, 40., 40.
|
||||||
|
30, 50., 40.
|
||||||
|
31, 0., 50.
|
||||||
|
32, 10., 50.
|
||||||
|
33, 20., 50.
|
||||||
|
34, 30., 50.
|
||||||
|
35, 40., 50.
|
||||||
|
36, 50., 50.
|
||||||
|
37, 0., 60.
|
||||||
|
38, 10., 60.
|
||||||
|
39, 20., 60.
|
||||||
|
40, 30., 60.
|
||||||
|
41, 40., 60.
|
||||||
|
42, 50., 60.
|
||||||
|
43, 0., 70.
|
||||||
|
44, 10., 70.
|
||||||
|
45, 20., 70.
|
||||||
|
46, 30., 70.
|
||||||
|
47, 40., 70.
|
||||||
|
48, 50., 70.
|
||||||
|
49, 0., 80.
|
||||||
|
50, 10., 80.
|
||||||
|
51, 20., 80.
|
||||||
|
52, 30., 80.
|
||||||
|
53, 40., 80.
|
||||||
|
54, 50., 80.
|
||||||
|
55, 0., 90.
|
||||||
|
56, 10., 90.
|
||||||
|
57, 20., 90.
|
||||||
|
58, 30., 90.
|
||||||
|
59, 40., 90.
|
||||||
|
60, 50., 90.
|
||||||
|
61, 0., 100.
|
||||||
|
62, 10., 100.
|
||||||
|
63, 20., 100.
|
||||||
|
64, 30., 100.
|
||||||
|
65, 40., 100.
|
||||||
|
66, 50., 100.
|
||||||
|
*Element, type=CAX4P
|
||||||
|
1, 1, 2, 8, 7
|
||||||
|
2, 2, 3, 9, 8
|
||||||
|
3, 3, 4, 10, 9
|
||||||
|
4, 4, 5, 11, 10
|
||||||
|
5, 5, 6, 12, 11
|
||||||
|
6, 7, 8, 14, 13
|
||||||
|
7, 8, 9, 15, 14
|
||||||
|
8, 9, 10, 16, 15
|
||||||
|
9, 10, 11, 17, 16
|
||||||
|
10, 11, 12, 18,
|
||||||
|
17
|
||||||
|
11, 13, 14, 20, 19
|
||||||
|
12, 14, 15, 21, 20
|
||||||
|
13, 15, 16, 22, 21
|
||||||
|
14, 16, 17, 23, 22
|
||||||
|
15, 17, 18, 24, 23
|
||||||
|
16, 19, 20, 26, 25
|
||||||
|
17, 20,
|
||||||
|
21, 27, 26
|
||||||
|
18, 21, 22, 28, 27
|
||||||
|
19, 22, 23, 29, 28
|
||||||
|
20, 23, 24, 30, 29
|
||||||
|
21, 25, 26, 32, 31
|
||||||
|
22, 26, 27, 33, 32
|
||||||
|
23, 27, 28, 34, 33
|
||||||
|
24, 28, 29, 35, 34
|
||||||
|
25, 29, 30, 36, 35
|
||||||
|
26, 31, 32, 38, 37
|
||||||
|
27, 32, 33, 39, 38
|
||||||
|
28, 33, 34, 40, 39
|
||||||
|
29, 34, 35, 41, 40
|
||||||
|
30, 35, 36, 42, 41
|
||||||
|
31, 37, 38, 44, 43
|
||||||
|
32, 38, 39, 45, 44
|
||||||
|
33, 39, 40, 46, 45
|
||||||
|
34, 40, 41, 47, 46
|
||||||
|
35, 41, 42, 48, 47
|
||||||
|
36, 43, 44, 50, 49
|
||||||
|
37, 44, 45, 51, 50
|
||||||
|
38, 45, 46, 52, 51
|
||||||
|
39, 46, 47, 53, 52
|
||||||
|
40, 47, 48, 54, 53
|
||||||
|
41, 49,
|
||||||
|
50, 56, 55
|
||||||
|
42, 50, 51, 57, 56
|
||||||
|
43, 51, 52, 58, 57
|
||||||
|
44, 52, 53, 59, 58
|
||||||
|
45, 53, 54, 60, 59
|
||||||
|
46, 55, 56, 62, 61
|
||||||
|
47, 56,
|
||||||
|
57, 63, 62
|
||||||
|
48, 57, 58, 64, 63
|
||||||
|
49, 58, 59,
|
||||||
|
65, 64
|
||||||
|
50, 59, 60, 66, 65
|
||||||
|
*Nset, nset=_PickedSet2, internal, generate
|
||||||
|
1, 66, 1
|
||||||
|
*Elset, elset=_PickedSet2, internal, generate
|
||||||
|
1, 50, 1
|
||||||
|
** Section: Section-1
|
||||||
|
*Solid Section, elset=_PickedSet2, material=Material-1
|
||||||
|
,
|
||||||
|
*End Instance
|
||||||
|
**
|
||||||
|
*Nset, nset=_PickedSet7, internal, instance=Part-1-1, generate
|
||||||
|
1, 61, 6
|
||||||
|
*Elset, elset=_PickedSet7, internal, instance=Part-1-1, generate
|
||||||
|
1, 46, 5
|
||||||
|
*Nset, nset=_PickedSet8, internal, instance=Part-1-1, generate
|
||||||
|
1, 6, 1
|
||||||
|
*Elset, elset=_PickedSet8, internal, instance=Part-1-1, generate
|
||||||
|
1, 5, 1
|
||||||
|
*Nset, nset=_PickedSet14, internal, instance=Part-1-1, generate
|
||||||
|
61, 66, 1
|
||||||
|
*Elset, elset=_PickedSet14, internal, instance=Part-1-1, generate
|
||||||
|
46, 50, 1
|
||||||
|
*Nset, nset=_PickedSet15, internal, instance=Part-1-1, generate
|
||||||
|
1, 66, 1
|
||||||
|
*Elset, elset=_PickedSet15, internal, instance=Part-1-1, generate
|
||||||
|
1, 50, 1
|
||||||
|
*Nset, nset=_PickedSet16, internal, instance=Part-1-1, generate
|
||||||
|
1, 66, 1
|
||||||
|
*Elset, elset=_PickedSet16, internal, instance=Part-1-1, generate
|
||||||
|
1, 50, 1
|
||||||
|
*Nset, nset=_PickedSet17, internal, instance=Part-1-1, generate
|
||||||
|
1, 66, 1
|
||||||
|
*Elset, elset=_PickedSet17, internal, instance=Part-1-1, generate
|
||||||
|
1, 50, 1
|
||||||
|
*Elset, elset=__PickedSurf12_S3, internal, instance=Part-1-1, generate
|
||||||
|
46, 50, 1
|
||||||
|
*Surface, type=ELEMENT, name=_PickedSurf12, internal
|
||||||
|
__PickedSurf12_S3, S3
|
||||||
|
*Elset, elset=__PickedSurf13_S2, internal, instance=Part-1-1, generate
|
||||||
|
5, 50, 5
|
||||||
|
*Surface, type=ELEMENT, name=_PickedSurf13, internal
|
||||||
|
__PickedSurf13_S2, S2
|
||||||
|
*Elset, elset=__PickedSurf18_S3, internal, instance=Part-1-1, generate
|
||||||
|
46, 50, 1
|
||||||
|
*Surface, type=ELEMENT, name=_PickedSurf18, internal
|
||||||
|
__PickedSurf18_S3, S3
|
||||||
|
*End Assembly
|
||||||
|
*Amplitude, name=Amp-1
|
||||||
|
0., 0., 1., 1.
|
||||||
|
*Amplitude, name=Amp-2
|
||||||
|
0., 0., 1., 1.
|
||||||
|
**
|
||||||
|
** MATERIALS
|
||||||
|
**
|
||||||
|
*Material, name=Material-1
|
||||||
|
*Density
|
||||||
|
2.7e-06,
|
||||||
|
*Elastic,dependencies=1
|
||||||
|
45., 0.2, 0.
|
||||||
|
75., 0.2, 100.
|
||||||
|
*Permeability, specific=10.
|
||||||
|
1e-08, 0.3
|
||||||
|
*Mohr Coulomb, dependencies=1
|
||||||
|
30.,10., , 0.
|
||||||
|
40.,20., , 100.
|
||||||
|
*Mohr Coulomb Hardening
|
||||||
|
0.2, 0.,
|
||||||
|
0.4, 0.05,
|
||||||
|
0.6, 0.09,
|
||||||
|
**
|
||||||
|
** BOUNDARY CONDITIONS
|
||||||
|
**
|
||||||
|
** Name: Bottom-nodes Type: Symmetry/Antisymmetry/Encastre
|
||||||
|
*Boundary
|
||||||
|
_PickedSet8, YSYMM
|
||||||
|
** Name: Side-nodes Type: Symmetry/Antisymmetry/Encastre
|
||||||
|
*Boundary
|
||||||
|
_PickedSet7, XSYMM
|
||||||
|
**
|
||||||
|
** PREDEFINED FIELDS
|
||||||
|
**
|
||||||
|
** Name: Predefined Field-1 Type: Geostatic stress
|
||||||
|
*Initial Conditions, type=STRESS, GEOSTATIC
|
||||||
|
_PickedSet15, -0.221, 0., -0.221, 100., 1., 1.
|
||||||
|
** Name: Predefined Field-2 Type: Void ratio
|
||||||
|
*Initial Conditions, TYPE=RATIO
|
||||||
|
_PickedSet16, 0.3
|
||||||
|
** Name: Predefined Field-3 Type: Pore pressure
|
||||||
|
*Initial Conditions, TYPE=PORE PRESSURE
|
||||||
|
_PickedSet17, 1.
|
||||||
|
** ----------------------------------------------------------------
|
||||||
|
**
|
||||||
|
** STEP: Step-1
|
||||||
|
**
|
||||||
|
*Step, name=Step-1
|
||||||
|
*Geostatic
|
||||||
|
**
|
||||||
|
*FIELD, VARIABLE=1, USER
|
||||||
|
**
|
||||||
|
**
|
||||||
|
** LOADS
|
||||||
|
**
|
||||||
|
** Name: Side-Confining-Stress Type: Pressure
|
||||||
|
*Dsload
|
||||||
|
_PickedSurf13, P, 1.221
|
||||||
|
** Name: Top-Confining-Stress Type: Pressure
|
||||||
|
*Dsload
|
||||||
|
_PickedSurf12, P, 1.221
|
||||||
|
**
|
||||||
|
** OUTPUT REQUESTS
|
||||||
|
**
|
||||||
|
*Restart, write, frequency=0
|
||||||
|
**
|
||||||
|
** FIELD OUTPUT: F-Output-1
|
||||||
|
**
|
||||||
|
*Output, field, variable=PRESELECT
|
||||||
|
**
|
||||||
|
** HISTORY OUTPUT: H-Output-1
|
||||||
|
**
|
||||||
|
*Output, history, variable=PRESELECT
|
||||||
|
*End Step
|
||||||
|
** ----------------------------------------------------------------
|
||||||
|
**
|
||||||
|
** STEP: Step-2
|
||||||
|
**
|
||||||
|
*Step, name=Step-2
|
||||||
|
*Soils, consolidation, end=PERIOD, utol=1000.
|
||||||
|
0.01, 1., 1e-05, 0.01,
|
||||||
|
**
|
||||||
|
** BOUNDARY CONDITIONS
|
||||||
|
**
|
||||||
|
** Name: BC-4 Type: Displacement/Rotation
|
||||||
|
*Boundary, amplitude=Amp-1
|
||||||
|
_PickedSet14, 2, 2, -50.
|
||||||
|
**
|
||||||
|
** OUTPUT REQUESTS
|
||||||
|
**
|
||||||
|
*Restart, write, frequency=0
|
||||||
|
**
|
||||||
|
** FIELD OUTPUT: F-Output-1
|
||||||
|
**
|
||||||
|
*Output, field, variable=PRESELECT
|
||||||
|
**
|
||||||
|
** HISTORY OUTPUT: H-Output-1
|
||||||
|
**
|
||||||
|
*Output, history, variable=PRESELECT
|
||||||
|
*End Step
|
14
test/data/meshio_meshes/abaqus/element_elset.inp
Normal file
14
test/data/meshio_meshes/abaqus/element_elset.inp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
*Heading
|
||||||
|
Abaqus DataFile Version 6.14
|
||||||
|
*Node
|
||||||
|
1, 1, 0, 0
|
||||||
|
2, 1, 1, 0
|
||||||
|
3, 2, 0.5, 0
|
||||||
|
4, 0, 0.5, 0
|
||||||
|
*Element, type=S3, ELSET=right
|
||||||
|
1, 1, 2, 3
|
||||||
|
*Element, type=S3, ELSET=left
|
||||||
|
2, 1, 2, 4
|
||||||
|
*Elset, elset=all
|
||||||
|
right
|
||||||
|
left
|
59
test/data/meshio_meshes/abaqus/nle1xf3c.inp
Normal file
59
test/data/meshio_meshes/abaqus/nle1xf3c.inp
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
*HEADING
|
||||||
|
: NAFEMS TEST LE1, Plane Stress Elements -- Elliptic Membr. [CPS3]
|
||||||
|
*RESTART,WRITE
|
||||||
|
*NODE, NSET=CF000
|
||||||
|
1, 0.000000000E+00, 0.100000000E+01, 0.000000000E+00
|
||||||
|
2, 0.000000000E+00, 0.187500000E+01, 0.000000000E+00
|
||||||
|
3, 0.000000000E+00, 0.275000000E+01, 0.000000000E+00
|
||||||
|
4, 0.116500008E+01, 0.812829971E+00, 0.000000000E+00
|
||||||
|
5, 0.147400010E+01, 0.155601501E+01, 0.000000000E+00
|
||||||
|
6, 0.178300011E+01, 0.229920006E+01, 0.000000000E+00
|
||||||
|
7, 0.178302014E+01, 0.452999949E+00, 0.000000000E+00
|
||||||
|
8, 0.230790997E+01, 0.900500059E+00, 0.000000000E+00
|
||||||
|
9, 0.283279991E+01, 0.134800017E+01, 0.000000000E+00
|
||||||
|
10, 0.200000000E+01, 0.000000000E+00, 0.000000000E+00
|
||||||
|
11, 0.262500000E+01, 0.000000000E+00, 0.000000000E+00
|
||||||
|
12, 0.325000000E+01, 0.000000000E+00, 0.000000000E+00
|
||||||
|
*ELEMENT, TYPE=CPS3, ELSET=M001P001
|
||||||
|
1, 5, 2, 1
|
||||||
|
2, 1, 4, 5
|
||||||
|
3, 8, 5, 4
|
||||||
|
4, 4, 7, 8
|
||||||
|
5, 11, 8, 7
|
||||||
|
6, 7, 10, 11
|
||||||
|
7, 6, 3, 2
|
||||||
|
8, 2, 5, 6
|
||||||
|
9, 9, 6, 5
|
||||||
|
10, 5, 8, 9
|
||||||
|
11, 12, 9, 8
|
||||||
|
12, 8, 11, 12
|
||||||
|
*ELSET,ELSET=LOAD
|
||||||
|
7,9,11
|
||||||
|
*ELSET,ELSET=PR
|
||||||
|
6,
|
||||||
|
*SOLID SECTION, ELSET=M001P001, MATERIAL=M001P001
|
||||||
|
0.1000 , 5
|
||||||
|
*MATERIAL, NAME=M001P001
|
||||||
|
*ELASTIC, TYPE=ISO
|
||||||
|
0.2100E+06, 0.3000 , 0.0000E+00
|
||||||
|
*STEP, AMP=RAMP
|
||||||
|
LOAD CASE 1
|
||||||
|
*STATIC
|
||||||
|
*DLOAD, OP=NEW
|
||||||
|
LOAD,P1,-10.0
|
||||||
|
*BOUNDARY, OP=NEW
|
||||||
|
1, 1, , 0.0000E+00
|
||||||
|
2, 1, , 0.0000E+00
|
||||||
|
3, 1, , 0.0000E+00
|
||||||
|
10, 2, , 0.0000E+00
|
||||||
|
11, 2, , 0.0000E+00
|
||||||
|
12, 2, , 0.0000E+00
|
||||||
|
*EL FILE, ELSET=PR, POSITION=AVERAGED AT NODES
|
||||||
|
S,
|
||||||
|
*NODE FILE, GLOBAL=YES
|
||||||
|
U,
|
||||||
|
*OUTPUT,FIELD
|
||||||
|
*NODE OUTPUT
|
||||||
|
U,
|
||||||
|
*EL PRINT,POS=AVERAGED AT NODES
|
||||||
|
*END STEP
|
13
test/data/meshio_meshes/abaqus/wInclude_bulk.inp
Normal file
13
test/data/meshio_meshes/abaqus/wInclude_bulk.inp
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
*NODE
|
||||||
|
1, 0.0, 0.0, 0.0
|
||||||
|
2, 1.0, 0.0, 0.0
|
||||||
|
3, 0.5, 0.0, 0.0
|
||||||
|
*ELEMENT, type=B31
|
||||||
|
3, 1, 3
|
||||||
|
4, 3, 2
|
||||||
|
*Elset, elset=elBm_set
|
||||||
|
3, 4
|
||||||
|
** Section: elBm_set Profile: elBm_set
|
||||||
|
*Beam Section, elset=elBm_set, material=Bm_mat, temperature=GRADIENT, section=I
|
||||||
|
0.15, 0.3, 0.15, 0.15, 0.0107, 0.0107, 0.0071
|
||||||
|
0.0, -1.0, 0.0
|
7
test/data/meshio_meshes/abaqus/wInclude_main.inp
Normal file
7
test/data/meshio_meshes/abaqus/wInclude_main.inp
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
*Heading
|
||||||
|
** meshio with *include example
|
||||||
|
*Preprint, echo=NO, model=NO, history=NO, contact=NO
|
||||||
|
*constraint controls, print=yes
|
||||||
|
*Part, name=ParametricModel
|
||||||
|
*INCLUDE,INPUT=wInclude_bulk.inp
|
||||||
|
*End Part
|
307
test/data/meshio_meshes/flac3d/flac3d_mesh_ex.f3grid
Normal file
307
test/data/meshio_meshes/flac3d/flac3d_mesh_ex.f3grid
Normal file
@ -0,0 +1,307 @@
|
|||||||
|
* FLAC3D grid produced by FLAC3D 7.00 Release 118
|
||||||
|
* Wed Aug 19 01:28:26 2020
|
||||||
|
* GRIDPOINTS
|
||||||
|
G 1 0.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 2 3.33333333333333e-01 0.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 3 0.00000000000000e+00 3.33333333333333e-01 0.00000000000000e+00
|
||||||
|
G 4 0.00000000000000e+00 0.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 5 3.33333333333333e-01 3.33333333333333e-01 0.00000000000000e+00
|
||||||
|
G 6 0.00000000000000e+00 3.33333333333333e-01 3.33333333333333e-01
|
||||||
|
G 7 3.33333333333333e-01 0.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 8 3.33333333333333e-01 3.33333333333333e-01 3.33333333333333e-01
|
||||||
|
G 9 6.66666666666667e-01 0.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 10 6.66666666666667e-01 3.33333333333333e-01 0.00000000000000e+00
|
||||||
|
G 11 6.66666666666667e-01 0.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 12 6.66666666666667e-01 3.33333333333333e-01 3.33333333333333e-01
|
||||||
|
G 13 1.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 14 1.00000000000000e+00 3.33333333333333e-01 0.00000000000000e+00
|
||||||
|
G 15 1.00000000000000e+00 0.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 16 1.00000000000000e+00 3.33333333333333e-01 3.33333333333333e-01
|
||||||
|
G 17 0.00000000000000e+00 6.66666666666667e-01 0.00000000000000e+00
|
||||||
|
G 18 3.33333333333333e-01 6.66666666666667e-01 0.00000000000000e+00
|
||||||
|
G 19 0.00000000000000e+00 6.66666666666667e-01 3.33333333333333e-01
|
||||||
|
G 20 3.33333333333333e-01 6.66666666666667e-01 3.33333333333333e-01
|
||||||
|
G 21 6.66666666666667e-01 6.66666666666667e-01 0.00000000000000e+00
|
||||||
|
G 22 6.66666666666667e-01 6.66666666666667e-01 3.33333333333333e-01
|
||||||
|
G 23 1.00000000000000e+00 6.66666666666667e-01 0.00000000000000e+00
|
||||||
|
G 24 1.00000000000000e+00 6.66666666666667e-01 3.33333333333333e-01
|
||||||
|
G 25 0.00000000000000e+00 1.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 26 3.33333333333333e-01 1.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 27 0.00000000000000e+00 1.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 28 3.33333333333333e-01 1.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 29 6.66666666666667e-01 1.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 30 6.66666666666667e-01 1.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 31 1.00000000000000e+00 1.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 32 1.00000000000000e+00 1.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 33 0.00000000000000e+00 0.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 34 0.00000000000000e+00 3.33333333333333e-01 6.66666666666667e-01
|
||||||
|
G 35 3.33333333333333e-01 0.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 36 3.33333333333333e-01 3.33333333333333e-01 6.66666666666667e-01
|
||||||
|
G 37 6.66666666666667e-01 0.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 38 6.66666666666667e-01 3.33333333333333e-01 6.66666666666667e-01
|
||||||
|
G 39 1.00000000000000e+00 0.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 40 1.00000000000000e+00 3.33333333333333e-01 6.66666666666667e-01
|
||||||
|
G 41 0.00000000000000e+00 6.66666666666667e-01 6.66666666666667e-01
|
||||||
|
G 42 3.33333333333333e-01 6.66666666666667e-01 6.66666666666667e-01
|
||||||
|
G 43 6.66666666666667e-01 6.66666666666667e-01 6.66666666666667e-01
|
||||||
|
G 44 1.00000000000000e+00 6.66666666666667e-01 6.66666666666667e-01
|
||||||
|
G 45 0.00000000000000e+00 1.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 46 3.33333333333333e-01 1.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 47 6.66666666666667e-01 1.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 48 1.00000000000000e+00 1.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 49 0.00000000000000e+00 0.00000000000000e+00 1.00000000000000e+00
|
||||||
|
G 50 0.00000000000000e+00 3.33333333333333e-01 1.00000000000000e+00
|
||||||
|
G 51 3.33333333333333e-01 0.00000000000000e+00 1.00000000000000e+00
|
||||||
|
G 52 3.33333333333333e-01 3.33333333333333e-01 1.00000000000000e+00
|
||||||
|
G 53 6.66666666666667e-01 0.00000000000000e+00 1.00000000000000e+00
|
||||||
|
G 54 6.66666666666667e-01 3.33333333333333e-01 1.00000000000000e+00
|
||||||
|
G 55 1.00000000000000e+00 0.00000000000000e+00 1.00000000000000e+00
|
||||||
|
G 56 1.00000000000000e+00 3.33333333333333e-01 1.00000000000000e+00
|
||||||
|
G 57 0.00000000000000e+00 6.66666666666667e-01 1.00000000000000e+00
|
||||||
|
G 58 3.33333333333333e-01 6.66666666666667e-01 1.00000000000000e+00
|
||||||
|
G 59 6.66666666666667e-01 6.66666666666667e-01 1.00000000000000e+00
|
||||||
|
G 60 1.00000000000000e+00 6.66666666666667e-01 1.00000000000000e+00
|
||||||
|
G 61 0.00000000000000e+00 1.00000000000000e+00 1.00000000000000e+00
|
||||||
|
G 62 3.33333333333333e-01 1.00000000000000e+00 1.00000000000000e+00
|
||||||
|
G 63 6.66666666666667e-01 1.00000000000000e+00 1.00000000000000e+00
|
||||||
|
G 64 1.00000000000000e+00 1.00000000000000e+00 1.00000000000000e+00
|
||||||
|
G 65 1.66666666666667e-01 1.66666666666667e-01 1.16666666666667e+00
|
||||||
|
G 66 1.66666666666667e-01 3.88888888888889e-01 1.16666666666667e+00
|
||||||
|
G 67 3.88888888888889e-01 1.66666666666667e-01 1.16666666666667e+00
|
||||||
|
G 68 3.88888888888889e-01 3.88888888888889e-01 1.16666666666667e+00
|
||||||
|
G 69 6.11111111111111e-01 1.66666666666667e-01 1.16666666666667e+00
|
||||||
|
G 70 6.11111111111111e-01 3.88888888888889e-01 1.16666666666667e+00
|
||||||
|
G 71 8.33333333333333e-01 1.66666666666667e-01 1.16666666666667e+00
|
||||||
|
G 72 8.33333333333333e-01 3.88888888888889e-01 1.16666666666667e+00
|
||||||
|
G 73 1.66666666666667e-01 6.11111111111111e-01 1.16666666666667e+00
|
||||||
|
G 74 3.88888888888889e-01 6.11111111111111e-01 1.16666666666667e+00
|
||||||
|
G 75 6.11111111111111e-01 6.11111111111111e-01 1.16666666666667e+00
|
||||||
|
G 76 8.33333333333333e-01 6.11111111111111e-01 1.16666666666667e+00
|
||||||
|
G 77 1.66666666666667e-01 8.33333333333333e-01 1.16666666666667e+00
|
||||||
|
G 78 3.88888888888889e-01 8.33333333333333e-01 1.16666666666667e+00
|
||||||
|
G 79 6.11111111111111e-01 8.33333333333333e-01 1.16666666666667e+00
|
||||||
|
G 80 8.33333333333333e-01 8.33333333333333e-01 1.16666666666667e+00
|
||||||
|
G 81 3.33333333333333e-01 3.33333333333333e-01 1.33333333333333e+00
|
||||||
|
G 82 3.33333333333333e-01 4.44444444444444e-01 1.33333333333333e+00
|
||||||
|
G 83 4.44444444444444e-01 3.33333333333333e-01 1.33333333333333e+00
|
||||||
|
G 84 4.44444444444444e-01 4.44444444444444e-01 1.33333333333333e+00
|
||||||
|
G 85 5.55555555555556e-01 3.33333333333333e-01 1.33333333333333e+00
|
||||||
|
G 86 5.55555555555556e-01 4.44444444444444e-01 1.33333333333333e+00
|
||||||
|
G 87 6.66666666666667e-01 3.33333333333333e-01 1.33333333333333e+00
|
||||||
|
G 88 6.66666666666667e-01 4.44444444444444e-01 1.33333333333333e+00
|
||||||
|
G 89 3.33333333333333e-01 5.55555555555556e-01 1.33333333333333e+00
|
||||||
|
G 90 4.44444444444444e-01 5.55555555555556e-01 1.33333333333333e+00
|
||||||
|
G 91 5.55555555555556e-01 5.55555555555556e-01 1.33333333333333e+00
|
||||||
|
G 92 6.66666666666667e-01 5.55555555555556e-01 1.33333333333333e+00
|
||||||
|
G 93 3.33333333333333e-01 6.66666666666667e-01 1.33333333333333e+00
|
||||||
|
G 94 4.44444444444444e-01 6.66666666666667e-01 1.33333333333333e+00
|
||||||
|
G 95 5.55555555555556e-01 6.66666666666667e-01 1.33333333333333e+00
|
||||||
|
G 96 6.66666666666667e-01 6.66666666666667e-01 1.33333333333333e+00
|
||||||
|
G 97 5.00000000000000e-01 5.00000000000000e-01 1.50000000000000e+00
|
||||||
|
G 98 1.33333333333333e+00 0.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 99 1.33333333333333e+00 3.33333333333333e-01 0.00000000000000e+00
|
||||||
|
G 100 1.22222222222222e+00 0.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 101 1.22222222222222e+00 3.33333333333333e-01 3.33333333333333e-01
|
||||||
|
G 102 1.66666666666667e+00 0.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 103 1.66666666666667e+00 3.33333333333333e-01 0.00000000000000e+00
|
||||||
|
G 104 1.44444444444444e+00 0.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 105 1.44444444444444e+00 3.33333333333333e-01 3.33333333333333e-01
|
||||||
|
G 106 2.00000000000000e+00 0.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 107 2.00000000000000e+00 3.33333333333333e-01 0.00000000000000e+00
|
||||||
|
G 108 1.66666666666667e+00 0.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 109 1.66666666666667e+00 3.33333333333333e-01 3.33333333333333e-01
|
||||||
|
G 110 1.33333333333333e+00 6.66666666666667e-01 0.00000000000000e+00
|
||||||
|
G 111 1.22222222222222e+00 6.66666666666667e-01 3.33333333333333e-01
|
||||||
|
G 112 1.66666666666667e+00 6.66666666666667e-01 0.00000000000000e+00
|
||||||
|
G 113 1.44444444444444e+00 6.66666666666667e-01 3.33333333333333e-01
|
||||||
|
G 114 2.00000000000000e+00 6.66666666666667e-01 0.00000000000000e+00
|
||||||
|
G 115 1.66666666666667e+00 6.66666666666667e-01 3.33333333333333e-01
|
||||||
|
G 116 1.33333333333333e+00 1.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 117 1.22222222222222e+00 1.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 118 1.66666666666667e+00 1.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 119 1.44444444444444e+00 1.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 120 2.00000000000000e+00 1.00000000000000e+00 0.00000000000000e+00
|
||||||
|
G 121 1.66666666666667e+00 1.00000000000000e+00 3.33333333333333e-01
|
||||||
|
G 122 1.11111111111111e+00 0.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 123 1.11111111111111e+00 3.33333333333333e-01 6.66666666666667e-01
|
||||||
|
G 124 1.22222222222222e+00 0.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 125 1.22222222222222e+00 3.33333333333333e-01 6.66666666666667e-01
|
||||||
|
G 126 1.33333333333333e+00 0.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 127 1.33333333333333e+00 3.33333333333333e-01 6.66666666666667e-01
|
||||||
|
G 128 1.11111111111111e+00 6.66666666666667e-01 6.66666666666667e-01
|
||||||
|
G 129 1.22222222222222e+00 6.66666666666667e-01 6.66666666666667e-01
|
||||||
|
G 130 1.33333333333333e+00 6.66666666666667e-01 6.66666666666667e-01
|
||||||
|
G 131 1.11111111111111e+00 1.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 132 1.22222222222222e+00 1.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 133 1.33333333333333e+00 1.00000000000000e+00 6.66666666666667e-01
|
||||||
|
G 134 0.00000000000000e+00 5.00000000000000e-01 1.50000000000000e+00
|
||||||
|
G 135 0.00000000000000e+00 3.33333333333333e-01 1.33333333333333e+00
|
||||||
|
G 136 0.00000000000000e+00 6.66666666666667e-01 1.33333333333333e+00
|
||||||
|
G 137 1.66666666666667e-01 5.00000000000000e-01 1.50000000000000e+00
|
||||||
|
G 138 0.00000000000000e+00 5.55555555555556e-01 1.22222222222222e+00
|
||||||
|
G 139 1.66666666666667e-01 6.11111111111111e-01 1.38888888888889e+00
|
||||||
|
G 140 1.66666666666667e-01 3.88888888888889e-01 1.38888888888889e+00
|
||||||
|
G 141 1.66666666666667e-01 5.37037037037037e-01 1.31481481481481e+00
|
||||||
|
G 142 0.00000000000000e+00 1.66666666666667e-01 1.16666666666667e+00
|
||||||
|
G 143 0.00000000000000e+00 4.44444444444444e-01 1.11111111111111e+00
|
||||||
|
G 144 1.66666666666667e-01 2.77777777777778e-01 1.27777777777778e+00
|
||||||
|
G 145 1.66666666666667e-01 4.62962962962963e-01 1.24074074074074e+00
|
||||||
|
G 146 0.00000000000000e+00 8.33333333333333e-01 1.16666666666667e+00
|
||||||
|
G 147 0.00000000000000e+00 7.77777777777778e-01 1.11111111111111e+00
|
||||||
|
G 148 1.66666666666667e-01 7.22222222222222e-01 1.27777777777778e+00
|
||||||
|
G 149 1.66666666666667e-01 6.85185185185185e-01 1.24074074074074e+00
|
||||||
|
G 150 0.00000000000000e+00 7.22222222222222e-01 1.05555555555556e+00
|
||||||
|
G 151 1.66666666666667e-01 6.48148148148148e-01 1.20370370370370e+00
|
||||||
|
G 152 3.33333333333333e-01 5.00000000000000e-01 1.50000000000000e+00
|
||||||
|
G 153 3.33333333333333e-01 5.55555555555556e-01 1.44444444444444e+00
|
||||||
|
G 154 3.33333333333333e-01 4.44444444444444e-01 1.44444444444444e+00
|
||||||
|
G 155 3.33333333333333e-01 5.18518518518518e-01 1.40740740740741e+00
|
||||||
|
G 156 3.33333333333333e-01 3.88888888888889e-01 1.38888888888889e+00
|
||||||
|
G 157 3.33333333333333e-01 4.81481481481481e-01 1.37037037037037e+00
|
||||||
|
G 158 3.33333333333333e-01 6.11111111111111e-01 1.38888888888889e+00
|
||||||
|
G 159 3.33333333333333e-01 5.92592592592593e-01 1.37037037037037e+00
|
||||||
|
G 160 3.33333333333333e-01 5.74074074074074e-01 1.35185185185185e+00
|
||||||
|
* ZONES
|
||||||
|
Z B8 1 1 2 3 4 5 6 7 8
|
||||||
|
Z B8 2 2 9 5 7 10 8 11 12
|
||||||
|
Z B8 3 9 13 10 11 14 12 15 16
|
||||||
|
Z B8 4 3 5 17 6 18 19 8 20
|
||||||
|
Z B8 5 5 10 18 8 21 20 12 22
|
||||||
|
Z B8 6 10 14 21 12 23 22 16 24
|
||||||
|
Z B8 7 17 18 25 19 26 27 20 28
|
||||||
|
Z B8 8 18 21 26 20 29 28 22 30
|
||||||
|
Z B8 9 21 23 29 22 31 30 24 32
|
||||||
|
Z B8 10 4 7 6 33 8 34 35 36
|
||||||
|
Z B8 11 7 11 8 35 12 36 37 38
|
||||||
|
Z B8 12 11 15 12 37 16 38 39 40
|
||||||
|
Z B8 13 6 8 19 34 20 41 36 42
|
||||||
|
Z B8 14 8 12 20 36 22 42 38 43
|
||||||
|
Z B8 15 12 16 22 38 24 43 40 44
|
||||||
|
Z B8 16 19 20 27 41 28 45 42 46
|
||||||
|
Z B8 17 20 22 28 42 30 46 43 47
|
||||||
|
Z B8 18 22 24 30 43 32 47 44 48
|
||||||
|
Z B8 19 33 35 34 49 36 50 51 52
|
||||||
|
Z B8 20 35 37 36 51 38 52 53 54
|
||||||
|
Z B8 21 37 39 38 53 40 54 55 56
|
||||||
|
Z B8 22 34 36 41 50 42 57 52 58
|
||||||
|
Z B8 23 36 38 42 52 43 58 54 59
|
||||||
|
Z B8 24 38 40 43 54 44 59 56 60
|
||||||
|
Z B8 25 41 42 45 57 46 61 58 62
|
||||||
|
Z B8 26 42 43 46 58 47 62 59 63
|
||||||
|
Z B8 27 43 44 47 59 48 63 60 64
|
||||||
|
Z B8 28 49 51 50 65 52 66 67 68
|
||||||
|
Z B8 29 51 53 52 67 54 68 69 70
|
||||||
|
Z B8 30 53 55 54 69 56 70 71 72
|
||||||
|
Z B8 31 50 52 57 66 58 73 68 74
|
||||||
|
Z B8 32 52 54 58 68 59 74 70 75
|
||||||
|
Z B8 33 54 56 59 70 60 75 72 76
|
||||||
|
Z B8 34 57 58 61 73 62 77 74 78
|
||||||
|
Z B8 35 58 59 62 74 63 78 75 79
|
||||||
|
Z B8 36 59 60 63 75 64 79 76 80
|
||||||
|
Z B8 37 65 67 66 81 68 82 83 84
|
||||||
|
Z B8 38 67 69 68 83 70 84 85 86
|
||||||
|
Z B8 39 69 71 70 85 72 86 87 88
|
||||||
|
Z B8 40 66 68 73 82 74 89 84 90
|
||||||
|
Z B8 41 68 70 74 84 75 90 86 91
|
||||||
|
Z B8 42 70 72 75 86 76 91 88 92
|
||||||
|
Z B8 43 73 74 77 89 78 93 90 94
|
||||||
|
Z B8 44 74 75 78 90 79 94 91 95
|
||||||
|
Z B8 45 75 76 79 91 80 95 92 96
|
||||||
|
Z P5 46 81 83 82 97 84
|
||||||
|
Z P5 47 83 85 84 97 86
|
||||||
|
Z P5 48 85 87 86 97 88
|
||||||
|
Z P5 49 82 84 89 97 90
|
||||||
|
Z P5 50 84 86 90 97 91
|
||||||
|
Z P5 51 86 88 91 97 92
|
||||||
|
Z P5 52 89 90 93 97 94
|
||||||
|
Z P5 53 90 91 94 97 95
|
||||||
|
Z P5 54 91 92 95 97 96
|
||||||
|
Z B8 55 13 98 14 15 99 16 100 101
|
||||||
|
Z B8 56 98 102 99 100 103 101 104 105
|
||||||
|
Z B8 57 102 106 103 104 107 105 108 109
|
||||||
|
Z B8 58 14 99 23 16 110 24 101 111
|
||||||
|
Z B8 59 99 103 110 101 112 111 105 113
|
||||||
|
Z B8 60 103 107 112 105 114 113 109 115
|
||||||
|
Z B8 61 23 110 31 24 116 32 111 117
|
||||||
|
Z B8 62 110 112 116 111 118 117 113 119
|
||||||
|
Z B8 63 112 114 118 113 120 119 115 121
|
||||||
|
Z B8 64 15 100 16 39 101 40 122 123
|
||||||
|
Z B8 65 100 104 101 122 105 123 124 125
|
||||||
|
Z B8 66 104 108 105 124 109 125 126 127
|
||||||
|
Z B8 67 16 101 24 40 111 44 123 128
|
||||||
|
Z B8 68 101 105 111 123 113 128 125 129
|
||||||
|
Z B8 69 105 109 113 125 115 129 127 130
|
||||||
|
Z B8 70 24 111 32 44 117 48 128 131
|
||||||
|
Z B8 71 111 113 117 128 119 131 129 132
|
||||||
|
Z B8 72 113 115 119 129 121 132 130 133
|
||||||
|
Z W6 73 39 122 40 55 123 56
|
||||||
|
Z W6 74 122 124 123 55 125 56
|
||||||
|
Z W6 75 124 126 125 55 127 56
|
||||||
|
Z W6 76 40 123 44 56 128 60
|
||||||
|
Z W6 77 123 125 128 56 129 60
|
||||||
|
Z W6 78 125 127 129 56 130 60
|
||||||
|
Z W6 79 44 128 48 60 131 64
|
||||||
|
Z W6 80 128 129 131 60 132 64
|
||||||
|
Z W6 81 129 130 132 60 133 64
|
||||||
|
Z B8 82 134 135 136 137 138 139 140 141
|
||||||
|
Z B8 83 135 142 138 140 143 141 144 145
|
||||||
|
Z B8 84 142 49 143 144 50 145 65 66
|
||||||
|
Z B8 85 136 138 146 139 147 148 141 149
|
||||||
|
Z B8 86 138 143 147 141 150 149 145 151
|
||||||
|
Z B8 87 143 50 150 145 57 151 66 73
|
||||||
|
Z W6 88 148 149 146 77 147 61
|
||||||
|
Z W6 89 149 151 147 77 150 61
|
||||||
|
Z W6 90 151 73 150 77 57 61
|
||||||
|
Z B8 91 137 140 139 152 141 153 154 155
|
||||||
|
Z B8 92 140 144 141 154 145 155 156 157
|
||||||
|
Z B8 93 144 65 145 156 66 157 81 82
|
||||||
|
Z B8 94 139 141 148 153 149 158 155 159
|
||||||
|
Z B8 95 141 145 149 155 151 159 157 160
|
||||||
|
Z B8 96 145 66 151 157 73 160 82 89
|
||||||
|
Z W6 97 158 159 148 93 149 77
|
||||||
|
Z W6 98 159 160 149 93 151 77
|
||||||
|
Z W6 99 160 89 151 93 73 77
|
||||||
|
Z P5 100 152 154 153 97 155
|
||||||
|
Z P5 101 154 156 155 97 157
|
||||||
|
Z P5 102 156 81 157 97 82
|
||||||
|
Z P5 103 153 155 158 97 159
|
||||||
|
Z P5 104 155 157 159 97 160
|
||||||
|
Z P5 105 157 82 160 97 89
|
||||||
|
Z T4 106 158 159 93 97
|
||||||
|
Z T4 107 159 160 93 97
|
||||||
|
Z T4 108 160 89 93 97
|
||||||
|
* ZONE GROUPS
|
||||||
|
ZGROUP "Brick1" SLOT "Default"
|
||||||
|
6 7 4 5 2 3 1 14 15 12 13 10 11 8 9 22 23 20 21 18
|
||||||
|
19 16 17 26 27 24 25
|
||||||
|
ZGROUP "Pyramid2" SLOT "Default"
|
||||||
|
38 39 36 37 34 35 32 33 46 47 44 45 42 43 40 41 54 52 30 53
|
||||||
|
31 50 28 51 29 48 49
|
||||||
|
ZGROUP "Tetrahedron4" SLOT "Default"
|
||||||
|
101 98 99 96 97 108 86 87 106 84 107 85 104 82 105 83 94 95 92 93
|
||||||
|
90 91 88 89 102 103 100
|
||||||
|
ZGROUP "Wedge3" SLOT "Default"
|
||||||
|
56 78 57 79 76 77 74 75 72 73 80 81 55 70 71 68 62 63 69 60
|
||||||
|
66 61 67 58 64 59 65
|
||||||
|
* FACES
|
||||||
|
F Q4 1 1 3 6 4
|
||||||
|
F Q4 2 3 17 19 6
|
||||||
|
F Q4 3 17 25 27 19
|
||||||
|
F Q4 4 4 6 34 33
|
||||||
|
F Q4 5 6 19 41 34
|
||||||
|
F Q4 6 19 27 45 41
|
||||||
|
F Q4 7 33 34 50 49
|
||||||
|
F Q4 8 34 41 57 50
|
||||||
|
F Q4 9 41 45 61 57
|
||||||
|
F Q4 10 135 138 136 134
|
||||||
|
F Q4 11 142 143 138 135
|
||||||
|
F Q4 12 49 50 143 142
|
||||||
|
F Q4 13 138 147 146 136
|
||||||
|
F Q4 14 143 150 147 138
|
||||||
|
F Q4 15 50 57 150 143
|
||||||
|
F T3 16 146 147 61
|
||||||
|
F T3 17 147 150 61
|
||||||
|
F T3 18 150 57 61
|
||||||
|
* FACE GROUPS
|
||||||
|
FGROUP "bottom" SLOT "Default"
|
||||||
|
6 7 4 5 2 3 1 14 15 12 13 10 11 8 9 18 16 17
|
BIN
test/data/meshio_meshes/flac3d/flac3d_mesh_ex_bin.f3grid
Normal file
BIN
test/data/meshio_meshes/flac3d/flac3d_mesh_ex_bin.f3grid
Normal file
Binary file not shown.
54
test/data/meshio_meshes/med/README.md
Normal file
54
test/data/meshio_meshes/med/README.md
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
`cylinder.med` is first generated by salome 9.2.2. The mesh version is then modified by HDFView by changing the mesh version from 4.0.0 to 3.0.0 so that it can also be read in gmsh.
|
||||||
|
|
||||||
|
`box.med` is generated by code_aster 13.6 using the following command file. A specific displacement field is prescribed to an orthotropic hexahedral element, and we verify if meshio is able to read the current stress/strain/energy data.
|
||||||
|
|
||||||
|
```
|
||||||
|
DEBUT()
|
||||||
|
|
||||||
|
mesh = LIRE_MAILLAGE(FORMAT='MED', INFO=2, UNITE=20)
|
||||||
|
|
||||||
|
mesh = DEFI_GROUP(
|
||||||
|
reuse=mesh, MAILLAGE=mesh,
|
||||||
|
CREA_GROUP_NO=(_F(NOM='Left', NOEUD=('N1', 'N2', 'N3', 'N4')),
|
||||||
|
_F(NOM='Right', NOEUD=('N5', 'N6', 'N7', 'N8'))))
|
||||||
|
|
||||||
|
model = AFFE_MODELE(
|
||||||
|
AFFE=_F(MODELISATION=('3D', ), PHENOMENE='MECANIQUE', TOUT='OUI'),
|
||||||
|
MAILLAGE=mesh
|
||||||
|
)
|
||||||
|
|
||||||
|
mat = DEFI_MATERIAU(
|
||||||
|
ELAS_ORTH=_F(RHO=1.37486e-09, E_L=5329.16, E_T=2418.93, E_N=1746.66,
|
||||||
|
G_LT=1202.6, G_TN=515.638, G_LN=569.752,
|
||||||
|
NU_LT=0.450006, NU_TN=0.564862, NU_LN=0.397544,
|
||||||
|
ALPHA_L=1.0163e-05, ALPHA_T=2.67311e-05, ALPHA_N=6.86122e-05))
|
||||||
|
|
||||||
|
load = AFFE_CHAR_MECA(
|
||||||
|
MODELE=model, DDL_IMPO=(_F(GROUP_NO='Left', DX=0, DY=0, DZ=0),
|
||||||
|
_F(GROUP_NO='Right', DX=1, DY=1, DZ=1))
|
||||||
|
)
|
||||||
|
|
||||||
|
fieldmat = AFFE_MATERIAU(
|
||||||
|
AFFE=_F(MATER=(mat, ), TOUT='OUI'),
|
||||||
|
MODELE=model
|
||||||
|
)
|
||||||
|
|
||||||
|
resu = MECA_STATIQUE(
|
||||||
|
CHAM_MATER=fieldmat,
|
||||||
|
EXCIT=_F(CHARGE=load),
|
||||||
|
MODELE=model,
|
||||||
|
OPTION='SANS',
|
||||||
|
SOLVEUR=_F(METHODE='MUMPS')
|
||||||
|
)
|
||||||
|
|
||||||
|
resu = CALC_CHAMP(
|
||||||
|
reuse=resu, RESULTAT=resu, CONTRAINTE='SIEF_ELNO', DEFORMATION='EPSI_ELNO', ENERGIE=('ENEL_ELEM', 'ENEL_ELNO'))
|
||||||
|
|
||||||
|
IMPR_RESU(
|
||||||
|
FORMAT='MED',
|
||||||
|
RESU=_F(RESULTAT=resu),
|
||||||
|
UNITE=80
|
||||||
|
)
|
||||||
|
|
||||||
|
FIN()
|
||||||
|
```
|
BIN
test/data/meshio_meshes/med/box.med
Normal file
BIN
test/data/meshio_meshes/med/box.med
Normal file
Binary file not shown.
BIN
test/data/meshio_meshes/med/cylinder.med
Normal file
BIN
test/data/meshio_meshes/med/cylinder.med
Normal file
Binary file not shown.
211
test/data/meshio_meshes/medit/cube86.mesh
Normal file
211
test/data/meshio_meshes/medit/cube86.mesh
Normal file
@ -0,0 +1,211 @@
|
|||||||
|
MeshVersionFormatted 1
|
||||||
|
|
||||||
|
Dimension
|
||||||
|
3
|
||||||
|
#Mesh generated by GAMBIT converted by GAMBIT_to_LifeV (Martin P.)
|
||||||
|
|
||||||
|
Vertices
|
||||||
|
39
|
||||||
|
1 0 1 6
|
||||||
|
1 0 0 4
|
||||||
|
1 0 0.5 3
|
||||||
|
1 1 0 5
|
||||||
|
1 0.5 0 4
|
||||||
|
1 1 1 6
|
||||||
|
1 1 0.5 5
|
||||||
|
1 0.5 1 6
|
||||||
|
1 0.707565 0.707566 3
|
||||||
|
1 0.292433 0.292434 3
|
||||||
|
1 0.652965 0.347034 3
|
||||||
|
1 0.347033 0.652966 3
|
||||||
|
0 1 0 5
|
||||||
|
0.5 1 0 5
|
||||||
|
0 1 1 6
|
||||||
|
0 1 0.5 5
|
||||||
|
0.5 1 1 6
|
||||||
|
0.292435 1 0.707566 5
|
||||||
|
0.707567 1 0.292434 5
|
||||||
|
0.347035 1 0.347034 5
|
||||||
|
0.652967 1 0.652966 5
|
||||||
|
0 0 0 4
|
||||||
|
0 0.5 0 4
|
||||||
|
0 0 1 6
|
||||||
|
0 0 0.5 2
|
||||||
|
0 0.5 1 6
|
||||||
|
0 0.292435 0.707566 1
|
||||||
|
0 0.707567 0.292434 1
|
||||||
|
0 0.347035 0.347034 1
|
||||||
|
0 0.652967 0.652966 1
|
||||||
|
0.5 0 0 4
|
||||||
|
0.5 0 1 6
|
||||||
|
0.707565 0 0.707566 2
|
||||||
|
0.292433 0 0.292434 2
|
||||||
|
0.652965 0 0.347034 2
|
||||||
|
0.347033 0 0.652966 2
|
||||||
|
0.581989 0.58199 0 4
|
||||||
|
0.581989 0.41801 1 6
|
||||||
|
0.646741 0.569188 0.569188 0
|
||||||
|
|
||||||
|
Tetrahedra
|
||||||
|
86
|
||||||
|
32 1 33 38 1
|
||||||
|
32 36 38 33 1
|
||||||
|
12 33 1 38 1
|
||||||
|
12 33 3 1 1
|
||||||
|
12 1 8 38 1
|
||||||
|
27 32 36 38 1
|
||||||
|
27 36 32 24 1
|
||||||
|
27 32 38 26 1
|
||||||
|
35 3 12 33 1
|
||||||
|
35 10 12 3 1
|
||||||
|
30 26 27 38 1
|
||||||
|
27 25 36 24 1
|
||||||
|
27 24 32 26 1
|
||||||
|
18 26 30 38 1
|
||||||
|
27 36 25 29 1
|
||||||
|
17 8 9 6 1
|
||||||
|
2 35 3 10 1
|
||||||
|
2 35 10 31 1
|
||||||
|
35 31 37 10 1
|
||||||
|
37 5 11 10 1
|
||||||
|
17 6 9 21 1
|
||||||
|
15 18 26 30 1
|
||||||
|
17 26 18 38 1
|
||||||
|
34 25 36 29 1
|
||||||
|
35 31 34 37 1
|
||||||
|
23 34 37 29 1
|
||||||
|
23 34 29 22 1
|
||||||
|
23 37 28 29 1
|
||||||
|
23 34 31 37 1
|
||||||
|
34 25 29 22 1
|
||||||
|
17 15 18 26 1
|
||||||
|
15 18 30 16 1
|
||||||
|
6 9 21 7 1
|
||||||
|
37 4 19 11 1
|
||||||
|
37 11 5 4 1
|
||||||
|
31 37 10 5 1
|
||||||
|
2 5 31 10 1
|
||||||
|
37 14 19 4 1
|
||||||
|
7 19 4 11 1
|
||||||
|
20 37 14 19 1
|
||||||
|
20 28 14 37 1
|
||||||
|
20 28 30 16 1
|
||||||
|
20 30 18 16 1
|
||||||
|
23 14 28 37 1
|
||||||
|
23 31 34 22 1
|
||||||
|
13 23 14 28 1
|
||||||
|
20 28 16 13 1
|
||||||
|
20 13 14 28 1
|
||||||
|
39 37 19 11 1
|
||||||
|
39 11 9 12 1
|
||||||
|
39 20 19 37 1
|
||||||
|
39 20 21 19 1
|
||||||
|
39 19 7 11 1
|
||||||
|
39 19 21 7 1
|
||||||
|
39 20 18 21 1
|
||||||
|
39 18 20 30 1
|
||||||
|
39 38 18 30 1
|
||||||
|
39 9 11 7 1
|
||||||
|
39 21 9 7 1
|
||||||
|
39 17 9 21 1
|
||||||
|
39 38 12 8 1
|
||||||
|
39 12 9 8 1
|
||||||
|
39 12 38 33 1
|
||||||
|
39 33 35 12 1
|
||||||
|
39 10 37 11 1
|
||||||
|
39 35 37 10 1
|
||||||
|
39 11 12 10 1
|
||||||
|
39 12 35 10 1
|
||||||
|
39 38 36 33 1
|
||||||
|
39 35 33 36 1
|
||||||
|
39 38 17 18 1
|
||||||
|
39 21 18 17 1
|
||||||
|
39 29 30 28 1
|
||||||
|
39 30 20 28 1
|
||||||
|
39 28 37 29 1
|
||||||
|
39 20 37 28 1
|
||||||
|
39 36 27 29 1
|
||||||
|
39 29 27 30 1
|
||||||
|
39 27 36 38 1
|
||||||
|
39 38 30 27 1
|
||||||
|
39 37 34 29 1
|
||||||
|
39 35 34 37 1
|
||||||
|
39 29 34 36 1
|
||||||
|
39 35 36 34 1
|
||||||
|
39 8 17 38 1
|
||||||
|
39 9 17 8 1
|
||||||
|
|
||||||
|
Triangles
|
||||||
|
72
|
||||||
|
27 24 26 1
|
||||||
|
27 25 24 1
|
||||||
|
25 29 22 1
|
||||||
|
23 22 29 1
|
||||||
|
13 23 28 1
|
||||||
|
28 16 13 1
|
||||||
|
15 16 30 1
|
||||||
|
15 30 26 1
|
||||||
|
30 27 26 1
|
||||||
|
27 29 25 1
|
||||||
|
28 30 16 1
|
||||||
|
23 29 28 1
|
||||||
|
29 30 28 1
|
||||||
|
29 27 30 1
|
||||||
|
32 33 1 2
|
||||||
|
33 3 1 2
|
||||||
|
2 3 35 2
|
||||||
|
2 35 31 2
|
||||||
|
31 34 22 2
|
||||||
|
34 25 22 2
|
||||||
|
25 36 24 2
|
||||||
|
36 32 24 2
|
||||||
|
32 36 33 2
|
||||||
|
35 3 33 2
|
||||||
|
34 36 25 2
|
||||||
|
35 34 31 2
|
||||||
|
35 36 34 2
|
||||||
|
35 33 36 2
|
||||||
|
8 9 6 3
|
||||||
|
6 9 7 3
|
||||||
|
7 11 4 3
|
||||||
|
11 5 4 3
|
||||||
|
2 5 10 3
|
||||||
|
2 10 3 3
|
||||||
|
12 1 3 3
|
||||||
|
12 8 1 3
|
||||||
|
12 9 8 3
|
||||||
|
9 11 7 3
|
||||||
|
10 12 3 3
|
||||||
|
5 11 10 3
|
||||||
|
11 12 10 3
|
||||||
|
11 9 12 3
|
||||||
|
37 14 4 4
|
||||||
|
37 4 5 4
|
||||||
|
13 14 23 4
|
||||||
|
23 31 22 4
|
||||||
|
2 31 5 4
|
||||||
|
23 14 37 4
|
||||||
|
23 37 31 4
|
||||||
|
31 37 5 4
|
||||||
|
17 18 15 5
|
||||||
|
15 18 16 5
|
||||||
|
20 13 16 5
|
||||||
|
20 14 13 5
|
||||||
|
14 19 4 5
|
||||||
|
7 4 19 5
|
||||||
|
6 7 21 5
|
||||||
|
17 6 21 5
|
||||||
|
21 18 17 5
|
||||||
|
20 16 18 5
|
||||||
|
19 21 7 5
|
||||||
|
20 19 14 5
|
||||||
|
20 21 19 5
|
||||||
|
20 18 21 5
|
||||||
|
32 1 38 6
|
||||||
|
1 8 38 6
|
||||||
|
24 32 26 6
|
||||||
|
17 15 26 6
|
||||||
|
17 8 6 6
|
||||||
|
32 38 26 6
|
||||||
|
17 26 38 6
|
||||||
|
8 17 38 6
|
BIN
test/data/meshio_meshes/medit/hch_strct.4.be.meshb
Normal file
BIN
test/data/meshio_meshes/medit/hch_strct.4.be.meshb
Normal file
Binary file not shown.
BIN
test/data/meshio_meshes/medit/hch_strct.4.meshb
Normal file
BIN
test/data/meshio_meshes/medit/hch_strct.4.meshb
Normal file
Binary file not shown.
BIN
test/data/meshio_meshes/medit/sphere_mixed.1.meshb
Normal file
BIN
test/data/meshio_meshes/medit/sphere_mixed.1.meshb
Normal file
Binary file not shown.
5
test/data/meshio_meshes/msh/Makefile
Normal file
5
test/data/meshio_meshes/msh/Makefile
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
%-2.2.msh: %.geo
|
||||||
|
gmsh -2 -format msh2 -o $@ $<
|
||||||
|
%-4.1.msh: %.geo
|
||||||
|
gmsh -2 -o $@ $<
|
||||||
|
all: insulated-2.2.msh insulated-4.1.msh
|
5
test/data/meshio_meshes/msh/README.md
Normal file
5
test/data/meshio_meshes/msh/README.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
Two versions of the Gmsh MSH format are covered here: 2.2 and 4.1.
|
||||||
|
|
||||||
|
The meshes were generated by Gmsh 4.2.2-git-0766f664d from the same Gmsh GEO file `insulated.geo` as shown in the `Makefile` (`make -j2`); the difference is that the first was passed `-format msh2`, MSH4.1 being the default.
|
||||||
|
|
||||||
|
The meshes are coarse versions of a real finite element example and contain 111 3-node triangular domain elements, divided into two Physical Surfaces, and 21 2-node line boundary elements, in a single Physical Line.
|
214
test/data/meshio_meshes/msh/insulated-2.2.msh
Normal file
214
test/data/meshio_meshes/msh/insulated-2.2.msh
Normal file
@ -0,0 +1,214 @@
|
|||||||
|
$MeshFormat
|
||||||
|
2.2 0 8
|
||||||
|
$EndMeshFormat
|
||||||
|
$PhysicalNames
|
||||||
|
3
|
||||||
|
1 3 "convection"
|
||||||
|
2 1 "wire"
|
||||||
|
2 2 "insulation"
|
||||||
|
$EndPhysicalNames
|
||||||
|
$Nodes
|
||||||
|
67
|
||||||
|
1 2 0 0
|
||||||
|
2 -0.9999999999999996 1.732050807568877 0
|
||||||
|
3 -1.000000000000001 -1.732050807568877 0
|
||||||
|
4 3 0 0
|
||||||
|
5 -1.499999999999999 2.598076211353316 0
|
||||||
|
6 -1.500000000000001 -2.598076211353315 0
|
||||||
|
7 1.827090914409903 0.8134732881175547 0
|
||||||
|
8 1.338261209269959 1.486289654059163 0
|
||||||
|
9 0.6180339846184854 1.902113033932683 0
|
||||||
|
10 -0.2090569285631289 1.989043790523414 0
|
||||||
|
11 -1.618033990162066 1.17557050264126 0
|
||||||
|
12 -1.95629520245368 0.4158233769964312 0
|
||||||
|
13 -1.956295200503979 -0.4158233861690545 0
|
||||||
|
14 -1.618033987472603 -1.175570506342989 0
|
||||||
|
15 -0.2090569245005841 -1.989043790950405 0
|
||||||
|
16 0.6180339927037 -1.902113031305638 0
|
||||||
|
17 1.33826121597086 -1.486289648025645 0
|
||||||
|
18 1.827090916184073 -0.8134732841327028 0
|
||||||
|
19 2.866718416712208 0.884265525327689 0
|
||||||
|
20 2.478716320112386 1.689960178349925 0
|
||||||
|
21 1.870469399717563 2.345494452076197 0
|
||||||
|
22 1.096023066394168 2.792621248564138 0
|
||||||
|
23 0.2241902761490784 2.991611391889027 0
|
||||||
|
24 -0.6675628038033028 2.924783736103966 0
|
||||||
|
25 -2.19915561691068 2.040518211781069 0
|
||||||
|
26 -2.70290660585828 1.301651212886028 0
|
||||||
|
27 -2.96649247971263 0.4471267916468595 0
|
||||||
|
28 -2.966492477661765 -0.447126805253458 0
|
||||||
|
29 -2.702906601876784 -1.301651221153692 0
|
||||||
|
30 -2.199155614492735 -2.040518214386993 0
|
||||||
|
31 -0.667562799591218 -2.924783737065347 0
|
||||||
|
32 0.2241902856922546 -2.991611391173865 0
|
||||||
|
33 1.096023079844227 -2.792621243285379 0
|
||||||
|
34 1.870469411104438 -2.345494442995467 0
|
||||||
|
35 2.478716325782583 -1.689960170033273 0
|
||||||
|
36 2.866718418080356 -0.8842655208922591 0
|
||||||
|
37 -0.9339546057726886 -0.4158233831706852 0
|
||||||
|
38 0.02141496984582745 1.058980690221818 0
|
||||||
|
39 -0.1941278312183717 0.1071477189577097 0
|
||||||
|
40 0.9834805227413372 0.6826480240423473 0
|
||||||
|
41 -0.7686480115959173 0.5453804900735302 0
|
||||||
|
42 0.9999999999999992 -0.2125565610925706 0
|
||||||
|
43 0.1213651863888595 -1.154712599348981 0
|
||||||
|
44 -0.6406278644518437 -1.11916553237733 0
|
||||||
|
45 0.8593162093855847 -0.9615150557898803 0
|
||||||
|
46 -0.5943735880144831 1.234440025041052 0
|
||||||
|
47 -1.335215615779825 0.1351111195641902 0
|
||||||
|
48 0.6825711700739076 1.215293176376306 0
|
||||||
|
49 1.45264285928781 0.3208911877668328 0
|
||||||
|
50 0.3069952762974677 -0.3818091452905251 0
|
||||||
|
51 -0.2680699677513154 -0.5928725882459622 0
|
||||||
|
52 0.3727472045845057 0.474808656902285 0
|
||||||
|
53 1.237382076390581 -2.143208614122736 0
|
||||||
|
54 -2.474764143942451 -5.801802924119936e-09 0
|
||||||
|
55 -0.7488578504306679 2.3047474739574 0
|
||||||
|
56 1.237382067086159 2.143208619683771 0
|
||||||
|
57 -1.621540936588582 -1.800903659450643 0
|
||||||
|
58 -1.621540937918335 1.800903656784694 0
|
||||||
|
59 2.37039878696343 -0.5038438145749483 0
|
||||||
|
60 -2.187495154555313 -1.033152983087325 0
|
||||||
|
61 0.1990108480843664 2.411002866027006 0
|
||||||
|
62 1.988484306593702 -1.377849882960454 0
|
||||||
|
63 -2.187495156981738 1.033152975378704 0
|
||||||
|
64 1.988484301214432 1.377849888762947 0
|
||||||
|
65 0.1990108553729037 -2.411002864348951 0
|
||||||
|
66 -0.7488578478505082 -2.304747474025119 0
|
||||||
|
67 2.370398785654296 0.5038438169983678 0
|
||||||
|
$EndNodes
|
||||||
|
$Elements
|
||||||
|
132
|
||||||
|
1 1 2 3 4 4 19
|
||||||
|
2 1 2 3 4 19 20
|
||||||
|
3 1 2 3 4 20 21
|
||||||
|
4 1 2 3 4 21 22
|
||||||
|
5 1 2 3 4 22 23
|
||||||
|
6 1 2 3 4 23 24
|
||||||
|
7 1 2 3 4 24 5
|
||||||
|
8 1 2 3 5 5 25
|
||||||
|
9 1 2 3 5 25 26
|
||||||
|
10 1 2 3 5 26 27
|
||||||
|
11 1 2 3 5 27 28
|
||||||
|
12 1 2 3 5 28 29
|
||||||
|
13 1 2 3 5 29 30
|
||||||
|
14 1 2 3 5 30 6
|
||||||
|
15 1 2 3 6 6 31
|
||||||
|
16 1 2 3 6 31 32
|
||||||
|
17 1 2 3 6 32 33
|
||||||
|
18 1 2 3 6 33 34
|
||||||
|
19 1 2 3 6 34 35
|
||||||
|
20 1 2 3 6 35 36
|
||||||
|
21 1 2 3 6 36 4
|
||||||
|
22 2 2 1 1 39 38 41
|
||||||
|
23 2 2 1 1 37 39 41
|
||||||
|
24 2 2 1 1 38 39 52
|
||||||
|
25 2 2 1 1 13 14 37
|
||||||
|
26 2 2 1 1 9 10 38
|
||||||
|
27 2 2 1 1 18 1 42
|
||||||
|
28 2 2 1 1 15 16 43
|
||||||
|
29 2 2 1 1 41 11 47
|
||||||
|
30 2 2 1 1 11 41 46
|
||||||
|
31 2 2 1 1 37 14 44
|
||||||
|
32 2 2 1 1 18 42 45
|
||||||
|
33 2 2 1 1 43 16 45
|
||||||
|
34 2 2 1 1 15 43 44
|
||||||
|
35 2 2 1 1 11 12 47
|
||||||
|
36 2 2 1 1 39 37 51
|
||||||
|
37 2 2 1 1 9 38 48
|
||||||
|
38 2 2 1 1 42 1 49
|
||||||
|
39 2 2 1 1 2 11 46
|
||||||
|
40 2 2 1 1 38 10 46
|
||||||
|
41 2 2 1 1 41 38 46
|
||||||
|
42 2 2 1 1 13 37 47
|
||||||
|
43 2 2 1 1 14 3 44
|
||||||
|
44 2 2 1 1 17 18 45
|
||||||
|
45 2 2 1 1 3 15 44
|
||||||
|
46 2 2 1 1 16 17 45
|
||||||
|
47 2 2 1 1 7 8 40
|
||||||
|
48 2 2 1 1 37 41 47
|
||||||
|
49 2 2 1 1 50 42 52
|
||||||
|
50 2 2 1 1 42 40 52
|
||||||
|
51 2 2 1 1 39 50 52
|
||||||
|
52 2 2 1 1 10 2 46
|
||||||
|
53 2 2 1 1 12 13 47
|
||||||
|
54 2 2 1 1 40 8 48
|
||||||
|
55 2 2 1 1 7 40 49
|
||||||
|
56 2 2 1 1 40 42 49
|
||||||
|
57 2 2 1 1 48 38 52
|
||||||
|
58 2 2 1 1 40 48 52
|
||||||
|
59 2 2 1 1 1 7 49
|
||||||
|
60 2 2 1 1 8 9 48
|
||||||
|
61 2 2 1 1 43 50 51
|
||||||
|
62 2 2 1 1 50 39 51
|
||||||
|
63 2 2 1 1 44 43 51
|
||||||
|
64 2 2 1 1 43 45 50
|
||||||
|
65 2 2 1 1 37 44 51
|
||||||
|
66 2 2 1 1 45 42 50
|
||||||
|
67 2 2 2 2 58 25 63
|
||||||
|
68 2 2 2 2 36 59 62
|
||||||
|
69 2 2 2 2 24 55 61
|
||||||
|
70 2 2 2 2 67 19 64
|
||||||
|
71 2 2 2 2 30 57 60
|
||||||
|
72 2 2 2 2 66 31 65
|
||||||
|
73 2 2 2 2 11 58 63
|
||||||
|
74 2 2 2 2 7 67 64
|
||||||
|
75 2 2 2 2 15 66 65
|
||||||
|
76 2 2 2 2 55 10 61
|
||||||
|
77 2 2 2 2 59 18 62
|
||||||
|
78 2 2 2 2 57 14 60
|
||||||
|
79 2 2 2 2 35 36 62
|
||||||
|
80 2 2 2 2 23 24 61
|
||||||
|
81 2 2 2 2 25 26 63
|
||||||
|
82 2 2 2 2 29 30 60
|
||||||
|
83 2 2 2 2 19 20 64
|
||||||
|
84 2 2 2 2 31 32 65
|
||||||
|
85 2 2 2 2 13 28 60
|
||||||
|
86 2 2 2 2 9 22 61
|
||||||
|
87 2 2 2 2 17 34 62
|
||||||
|
88 2 2 2 2 21 8 64
|
||||||
|
89 2 2 2 2 33 16 65
|
||||||
|
90 2 2 2 2 27 12 63
|
||||||
|
91 2 2 2 2 28 13 54
|
||||||
|
92 2 2 2 2 22 9 56
|
||||||
|
93 2 2 2 2 34 17 53
|
||||||
|
94 2 2 2 2 8 21 56
|
||||||
|
95 2 2 2 2 16 33 53
|
||||||
|
96 2 2 2 2 12 27 54
|
||||||
|
97 2 2 2 2 4 1 59
|
||||||
|
98 2 2 2 2 5 2 55
|
||||||
|
99 2 2 2 2 6 3 57
|
||||||
|
100 2 2 2 2 1 4 67
|
||||||
|
101 2 2 2 2 2 5 58
|
||||||
|
102 2 2 2 2 3 6 66
|
||||||
|
103 2 2 2 2 28 29 60
|
||||||
|
104 2 2 2 2 20 21 64
|
||||||
|
105 2 2 2 2 32 33 65
|
||||||
|
106 2 2 2 2 34 35 62
|
||||||
|
107 2 2 2 2 22 23 61
|
||||||
|
108 2 2 2 2 26 27 63
|
||||||
|
109 2 2 2 2 4 19 67
|
||||||
|
110 2 2 2 2 5 25 58
|
||||||
|
111 2 2 2 2 6 31 66
|
||||||
|
112 2 2 2 2 30 6 57
|
||||||
|
113 2 2 2 2 24 5 55
|
||||||
|
114 2 2 2 2 36 4 59
|
||||||
|
115 2 2 2 2 27 28 54
|
||||||
|
116 2 2 2 2 21 22 56
|
||||||
|
117 2 2 2 2 33 34 53
|
||||||
|
118 2 2 2 2 13 12 54
|
||||||
|
119 2 2 2 2 17 16 53
|
||||||
|
120 2 2 2 2 9 8 56
|
||||||
|
121 2 2 2 2 11 2 58
|
||||||
|
122 2 2 2 2 7 1 67
|
||||||
|
123 2 2 2 2 15 3 66
|
||||||
|
124 2 2 2 2 3 14 57
|
||||||
|
125 2 2 2 2 2 10 55
|
||||||
|
126 2 2 2 2 1 18 59
|
||||||
|
127 2 2 2 2 8 7 64
|
||||||
|
128 2 2 2 2 12 11 63
|
||||||
|
129 2 2 2 2 16 15 65
|
||||||
|
130 2 2 2 2 18 17 62
|
||||||
|
131 2 2 2 2 10 9 61
|
||||||
|
132 2 2 2 2 14 13 60
|
||||||
|
$EndElements
|
319
test/data/meshio_meshes/msh/insulated-4.1.msh
Normal file
319
test/data/meshio_meshes/msh/insulated-4.1.msh
Normal file
@ -0,0 +1,319 @@
|
|||||||
|
$MeshFormat
|
||||||
|
4.1 0 8
|
||||||
|
$EndMeshFormat
|
||||||
|
$PhysicalNames
|
||||||
|
3
|
||||||
|
1 3 "convection"
|
||||||
|
2 1 "wire"
|
||||||
|
2 2 "insulation"
|
||||||
|
$EndPhysicalNames
|
||||||
|
$Entities
|
||||||
|
8 6 2 0
|
||||||
|
1 0 0 0 0
|
||||||
|
2 2 0 0 0
|
||||||
|
3 -0.9999999999999996 1.732050807568877 0 0
|
||||||
|
4 -1.000000000000001 -1.732050807568877 0 0
|
||||||
|
5 0 0 0 0
|
||||||
|
6 3 0 0 0
|
||||||
|
7 -1.499999999999999 2.598076211353316 0 0
|
||||||
|
8 -1.500000000000001 -2.598076211353315 0 0
|
||||||
|
1 -0.9999999999999996 0 0 2 1.996616316542536 0 0 2 2 -3
|
||||||
|
2 -1.986476715483886 -1.732050807568877 0 -1 1.732050807568878 0 0 2 3 -4
|
||||||
|
3 -1.000000000000001 -1.996616316542536 0 2 3.33066907387547e-16 0 0 2 4 -2
|
||||||
|
4 -1.499999999999999 0 0 3 2.994924474813804 0 1 3 2 6 -7
|
||||||
|
5 -2.97971507322583 -2.598076211353315 0 -1.5 2.598076211353317 0 1 3 2 7 -8
|
||||||
|
6 -1.500000000000002 -2.994924474813804 0 3 6.661338147750939e-16 0 1 3 2 8 -6
|
||||||
|
1 -1.986476715483886 -1.996616316542536 0 2 1.996616316542536 0 1 1 3 1 2 3
|
||||||
|
2 -2.97971507322583 -2.994924474813804 0 3 2.994924474813804 0 1 2 6 4 5 6 -3 -2 -1
|
||||||
|
$EndEntities
|
||||||
|
$Nodes
|
||||||
|
14 67 1 67
|
||||||
|
0 2 0 1
|
||||||
|
1
|
||||||
|
2 0 0
|
||||||
|
0 3 0 1
|
||||||
|
2
|
||||||
|
-0.9999999999999996 1.732050807568877 0
|
||||||
|
0 4 0 1
|
||||||
|
3
|
||||||
|
-1.000000000000001 -1.732050807568877 0
|
||||||
|
0 6 0 1
|
||||||
|
4
|
||||||
|
3 0 0
|
||||||
|
0 7 0 1
|
||||||
|
5
|
||||||
|
-1.499999999999999 2.598076211353316 0
|
||||||
|
0 8 0 1
|
||||||
|
6
|
||||||
|
-1.500000000000001 -2.598076211353315 0
|
||||||
|
1 1 0 4
|
||||||
|
7
|
||||||
|
8
|
||||||
|
9
|
||||||
|
10
|
||||||
|
1.827090914409903 0.8134732881175547 0
|
||||||
|
1.338261209269959 1.486289654059163 0
|
||||||
|
0.6180339846184854 1.902113033932683 0
|
||||||
|
-0.2090569285631289 1.989043790523414 0
|
||||||
|
1 2 0 4
|
||||||
|
11
|
||||||
|
12
|
||||||
|
13
|
||||||
|
14
|
||||||
|
-1.618033990162066 1.17557050264126 0
|
||||||
|
-1.95629520245368 0.4158233769964312 0
|
||||||
|
-1.956295200503979 -0.4158233861690545 0
|
||||||
|
-1.618033987472603 -1.175570506342989 0
|
||||||
|
1 3 0 4
|
||||||
|
15
|
||||||
|
16
|
||||||
|
17
|
||||||
|
18
|
||||||
|
-0.2090569245005841 -1.989043790950405 0
|
||||||
|
0.6180339927037 -1.902113031305638 0
|
||||||
|
1.33826121597086 -1.486289648025645 0
|
||||||
|
1.827090916184073 -0.8134732841327028 0
|
||||||
|
1 4 0 6
|
||||||
|
19
|
||||||
|
20
|
||||||
|
21
|
||||||
|
22
|
||||||
|
23
|
||||||
|
24
|
||||||
|
2.866718416712208 0.884265525327689 0
|
||||||
|
2.478716320112386 1.689960178349925 0
|
||||||
|
1.870469399717563 2.345494452076197 0
|
||||||
|
1.096023066394168 2.792621248564138 0
|
||||||
|
0.2241902761490784 2.991611391889027 0
|
||||||
|
-0.6675628038033028 2.924783736103966 0
|
||||||
|
1 5 0 6
|
||||||
|
25
|
||||||
|
26
|
||||||
|
27
|
||||||
|
28
|
||||||
|
29
|
||||||
|
30
|
||||||
|
-2.19915561691068 2.040518211781069 0
|
||||||
|
-2.70290660585828 1.301651212886028 0
|
||||||
|
-2.96649247971263 0.4471267916468595 0
|
||||||
|
-2.966492477661765 -0.447126805253458 0
|
||||||
|
-2.702906601876784 -1.301651221153692 0
|
||||||
|
-2.199155614492735 -2.040518214386993 0
|
||||||
|
1 6 0 6
|
||||||
|
31
|
||||||
|
32
|
||||||
|
33
|
||||||
|
34
|
||||||
|
35
|
||||||
|
36
|
||||||
|
-0.667562799591218 -2.924783737065347 0
|
||||||
|
0.2241902856922546 -2.991611391173865 0
|
||||||
|
1.096023079844227 -2.792621243285379 0
|
||||||
|
1.870469411104438 -2.345494442995467 0
|
||||||
|
2.478716325782583 -1.689960170033273 0
|
||||||
|
2.866718418080356 -0.8842655208922591 0
|
||||||
|
2 1 0 16
|
||||||
|
37
|
||||||
|
38
|
||||||
|
39
|
||||||
|
40
|
||||||
|
41
|
||||||
|
42
|
||||||
|
43
|
||||||
|
44
|
||||||
|
45
|
||||||
|
46
|
||||||
|
47
|
||||||
|
48
|
||||||
|
49
|
||||||
|
50
|
||||||
|
51
|
||||||
|
52
|
||||||
|
-0.9339546057726886 -0.4158233831706852 0
|
||||||
|
0.02141496984582745 1.058980690221818 0
|
||||||
|
-0.1941278312183717 0.1071477189577097 0
|
||||||
|
0.9834805227413372 0.6826480240423473 0
|
||||||
|
-0.7686480115959173 0.5453804900735302 0
|
||||||
|
0.9999999999999992 -0.2125565610925706 0
|
||||||
|
0.1213651863888595 -1.154712599348981 0
|
||||||
|
-0.6406278644518437 -1.11916553237733 0
|
||||||
|
0.8593162093855847 -0.9615150557898803 0
|
||||||
|
-0.5943735880144831 1.234440025041052 0
|
||||||
|
-1.335215615779825 0.1351111195641902 0
|
||||||
|
0.6825711700739076 1.215293176376306 0
|
||||||
|
1.45264285928781 0.3208911877668328 0
|
||||||
|
0.3069952762974677 -0.3818091452905251 0
|
||||||
|
-0.2680699677513154 -0.5928725882459622 0
|
||||||
|
0.3727472045845057 0.474808656902285 0
|
||||||
|
2 2 0 15
|
||||||
|
53
|
||||||
|
54
|
||||||
|
55
|
||||||
|
56
|
||||||
|
57
|
||||||
|
58
|
||||||
|
59
|
||||||
|
60
|
||||||
|
61
|
||||||
|
62
|
||||||
|
63
|
||||||
|
64
|
||||||
|
65
|
||||||
|
66
|
||||||
|
67
|
||||||
|
1.237382076390581 -2.143208614122736 0
|
||||||
|
-2.474764143942451 -5.801802924119936e-09 0
|
||||||
|
-0.7488578504306679 2.3047474739574 0
|
||||||
|
1.237382067086159 2.143208619683771 0
|
||||||
|
-1.621540936588582 -1.800903659450643 0
|
||||||
|
-1.621540937918335 1.800903656784694 0
|
||||||
|
2.37039878696343 -0.5038438145749483 0
|
||||||
|
-2.187495154555313 -1.033152983087325 0
|
||||||
|
0.1990108480843664 2.411002866027006 0
|
||||||
|
1.988484306593702 -1.377849882960454 0
|
||||||
|
-2.187495156981738 1.033152975378704 0
|
||||||
|
1.988484301214432 1.377849888762947 0
|
||||||
|
0.1990108553729037 -2.411002864348951 0
|
||||||
|
-0.7488578478505082 -2.304747474025119 0
|
||||||
|
2.370398785654296 0.5038438169983678 0
|
||||||
|
$EndNodes
|
||||||
|
$Elements
|
||||||
|
5 132 1 132
|
||||||
|
1 4 1 7
|
||||||
|
1 4 19
|
||||||
|
2 19 20
|
||||||
|
3 20 21
|
||||||
|
4 21 22
|
||||||
|
5 22 23
|
||||||
|
6 23 24
|
||||||
|
7 24 5
|
||||||
|
1 5 1 7
|
||||||
|
8 5 25
|
||||||
|
9 25 26
|
||||||
|
10 26 27
|
||||||
|
11 27 28
|
||||||
|
12 28 29
|
||||||
|
13 29 30
|
||||||
|
14 30 6
|
||||||
|
1 6 1 7
|
||||||
|
15 6 31
|
||||||
|
16 31 32
|
||||||
|
17 32 33
|
||||||
|
18 33 34
|
||||||
|
19 34 35
|
||||||
|
20 35 36
|
||||||
|
21 36 4
|
||||||
|
2 1 2 45
|
||||||
|
22 39 38 41
|
||||||
|
23 37 39 41
|
||||||
|
24 38 39 52
|
||||||
|
25 13 14 37
|
||||||
|
26 9 10 38
|
||||||
|
27 18 1 42
|
||||||
|
28 15 16 43
|
||||||
|
29 41 11 47
|
||||||
|
30 11 41 46
|
||||||
|
31 37 14 44
|
||||||
|
32 18 42 45
|
||||||
|
33 43 16 45
|
||||||
|
34 15 43 44
|
||||||
|
35 11 12 47
|
||||||
|
36 39 37 51
|
||||||
|
37 9 38 48
|
||||||
|
38 42 1 49
|
||||||
|
39 2 11 46
|
||||||
|
40 38 10 46
|
||||||
|
41 41 38 46
|
||||||
|
42 13 37 47
|
||||||
|
43 14 3 44
|
||||||
|
44 17 18 45
|
||||||
|
45 3 15 44
|
||||||
|
46 16 17 45
|
||||||
|
47 7 8 40
|
||||||
|
48 37 41 47
|
||||||
|
49 50 42 52
|
||||||
|
50 42 40 52
|
||||||
|
51 39 50 52
|
||||||
|
52 10 2 46
|
||||||
|
53 12 13 47
|
||||||
|
54 40 8 48
|
||||||
|
55 7 40 49
|
||||||
|
56 40 42 49
|
||||||
|
57 48 38 52
|
||||||
|
58 40 48 52
|
||||||
|
59 1 7 49
|
||||||
|
60 8 9 48
|
||||||
|
61 43 50 51
|
||||||
|
62 50 39 51
|
||||||
|
63 44 43 51
|
||||||
|
64 43 45 50
|
||||||
|
65 37 44 51
|
||||||
|
66 45 42 50
|
||||||
|
2 2 2 66
|
||||||
|
67 58 25 63
|
||||||
|
68 36 59 62
|
||||||
|
69 24 55 61
|
||||||
|
70 67 19 64
|
||||||
|
71 30 57 60
|
||||||
|
72 66 31 65
|
||||||
|
73 11 58 63
|
||||||
|
74 7 67 64
|
||||||
|
75 15 66 65
|
||||||
|
76 55 10 61
|
||||||
|
77 59 18 62
|
||||||
|
78 57 14 60
|
||||||
|
79 35 36 62
|
||||||
|
80 23 24 61
|
||||||
|
81 25 26 63
|
||||||
|
82 29 30 60
|
||||||
|
83 19 20 64
|
||||||
|
84 31 32 65
|
||||||
|
85 13 28 60
|
||||||
|
86 9 22 61
|
||||||
|
87 17 34 62
|
||||||
|
88 21 8 64
|
||||||
|
89 33 16 65
|
||||||
|
90 27 12 63
|
||||||
|
91 28 13 54
|
||||||
|
92 22 9 56
|
||||||
|
93 34 17 53
|
||||||
|
94 8 21 56
|
||||||
|
95 16 33 53
|
||||||
|
96 12 27 54
|
||||||
|
97 4 1 59
|
||||||
|
98 5 2 55
|
||||||
|
99 6 3 57
|
||||||
|
100 1 4 67
|
||||||
|
101 2 5 58
|
||||||
|
102 3 6 66
|
||||||
|
103 28 29 60
|
||||||
|
104 20 21 64
|
||||||
|
105 32 33 65
|
||||||
|
106 34 35 62
|
||||||
|
107 22 23 61
|
||||||
|
108 26 27 63
|
||||||
|
109 4 19 67
|
||||||
|
110 5 25 58
|
||||||
|
111 6 31 66
|
||||||
|
112 30 6 57
|
||||||
|
113 24 5 55
|
||||||
|
114 36 4 59
|
||||||
|
115 27 28 54
|
||||||
|
116 21 22 56
|
||||||
|
117 33 34 53
|
||||||
|
118 13 12 54
|
||||||
|
119 17 16 53
|
||||||
|
120 9 8 56
|
||||||
|
121 11 2 58
|
||||||
|
122 7 1 67
|
||||||
|
123 15 3 66
|
||||||
|
124 3 14 57
|
||||||
|
125 2 10 55
|
||||||
|
126 1 18 59
|
||||||
|
127 8 7 64
|
||||||
|
128 12 11 63
|
||||||
|
129 16 15 65
|
||||||
|
130 18 17 62
|
||||||
|
131 10 9 61
|
||||||
|
132 14 13 60
|
||||||
|
$EndElements
|
1
test/data/meshio_meshes/nastran/README.md
Normal file
1
test/data/meshio_meshes/nastran/README.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
`cylinder.fem` is a HyperMesh-generated Optistruct (Nastran-like) mesh file. It contains the same mesh information as that in `../med/cylinder.med`.
|
245
test/data/meshio_meshes/nastran/cylinder.fem
Normal file
245
test/data/meshio_meshes/nastran/cylinder.fem
Normal file
@ -0,0 +1,245 @@
|
|||||||
|
$$
|
||||||
|
$$ Optistruct Input Deck Generated by HyperMesh Version : 2017.3.0.17
|
||||||
|
$$ Generated using HyperMesh-Optistruct Template Version : 2017.3
|
||||||
|
$$
|
||||||
|
$$ Template: optistruct
|
||||||
|
$$
|
||||||
|
$$
|
||||||
|
$$ optistruct
|
||||||
|
$
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$ Case Control Cards $
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$--------------------------------------------------------------
|
||||||
|
$$ HYPERMESH TAGS
|
||||||
|
$$--------------------------------------------------------------
|
||||||
|
$$BEGIN TAGS
|
||||||
|
$$END TAGS
|
||||||
|
$
|
||||||
|
BEGIN BULK
|
||||||
|
$$
|
||||||
|
$$ Stacking Information for Ply-Based Composite Definition
|
||||||
|
$$
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$$
|
||||||
|
$$ GRID Data
|
||||||
|
$$
|
||||||
|
GRID 1 1.0 -2.45-160.0
|
||||||
|
GRID 2 1.0 -2.45-161.0
|
||||||
|
GRID 3 .7071068.70710680.0
|
||||||
|
GRID 4 2.06-15 1.0 0.0
|
||||||
|
GRID 5 -.707107.70710680.0
|
||||||
|
GRID 6 -1.0 9.004-150.0
|
||||||
|
GRID 7 -.707107-.7071070.0
|
||||||
|
GRID 8 8.698-15-1.0 0.0
|
||||||
|
GRID 9 .7071068-.7071070.0
|
||||||
|
GRID 10 .7071068.70710681.0
|
||||||
|
GRID 11 2.06-15 1.0 1.0
|
||||||
|
GRID 12 -.707107.70710681.0
|
||||||
|
GRID 13 -1.0 9.004-151.0
|
||||||
|
GRID 14 -.707107-.7071071.0
|
||||||
|
GRID 15 8.698-15-1.0 1.0
|
||||||
|
GRID 16 .7071068-.7071071.0
|
||||||
|
GRID 17 .3254219-6.154-20.0
|
||||||
|
GRID 18 9.8468-2.35124360.0
|
||||||
|
GRID 19 -0.14533-.2592060.0
|
||||||
|
GRID 20 -.0442730.2844711.0
|
||||||
|
GRID 21 .3224226-.2460451.0
|
||||||
|
GRID 22 -.169874-.2417461.0
|
||||||
|
GRID 23 -5.965-2-.291461.5227236
|
||||||
|
GRID 24 -.412743.1771685.4583333
|
||||||
|
GRID 25 -.271964-.345838.4791667
|
||||||
|
GRID 26 .1950392-.464081.4583333
|
||||||
|
GRID 27 .2936736-.1216440.5
|
||||||
|
GRID 28 .4547628.1859033.5416667
|
||||||
|
GRID 29 -4.085-20.440721.4791667
|
||||||
|
GRID 30 -.247058.3278403.4868056
|
||||||
|
GRID 31 .2479088.3405819.5163716
|
||||||
|
GRID 32 .2528394-.303703.4738152
|
||||||
|
GRID 33 -0.35812-7.943-2.4813956
|
||||||
|
$$
|
||||||
|
$$ CBAR Elements
|
||||||
|
$$
|
||||||
|
CBAR 37 3 11.0 0.0 0.0
|
||||||
|
CBAR 38 4 31.0 0.0 0.0
|
||||||
|
CBAR 39 5 41.0 0.0 0.0
|
||||||
|
CBAR 40 6 51.0 0.0 0.0
|
||||||
|
CBAR 41 7 61.0 0.0 0.0
|
||||||
|
CBAR 42 8 71.0 0.0 0.0
|
||||||
|
CBAR 43 9 81.0 0.0 0.0
|
||||||
|
CBAR 44 1 91.0 0.0 0.0
|
||||||
|
CBAR 45 2 101.0 0.0 0.0
|
||||||
|
CBAR 46 10 111.0 0.0 0.0
|
||||||
|
CBAR 47 11 121.0 0.0 0.0
|
||||||
|
CBAR 48 12 131.0 0.0 0.0
|
||||||
|
CBAR 49 13 141.0 0.0 0.0
|
||||||
|
CBAR 50 14 151.0 0.0 0.0
|
||||||
|
CBAR 51 15 161.0 0.0 0.0
|
||||||
|
CBAR 52 16 21.0 0.0 0.0
|
||||||
|
CBAR 53 1 21.0 0.0 0.0
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 37THRU 53
|
||||||
|
$$
|
||||||
|
$$ CTRIA3 Data
|
||||||
|
$$
|
||||||
|
CTRIA3 117 0 1 9 17
|
||||||
|
CTRIA3 118 0 17 19 18
|
||||||
|
CTRIA3 119 0 16 2 21
|
||||||
|
CTRIA3 120 0 22 21 20
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 117THRU 120
|
||||||
|
$$
|
||||||
|
$$ CQUAD4 Elements
|
||||||
|
$$
|
||||||
|
CQUAD4 19 0 3 1 17 18
|
||||||
|
CQUAD4 20 0 4 3 18 5
|
||||||
|
CQUAD4 21 0 6 5 18 19
|
||||||
|
CQUAD4 22 0 7 6 19 8
|
||||||
|
CQUAD4 23 0 9 8 19 17
|
||||||
|
CQUAD4 24 0 2 10 20 21
|
||||||
|
CQUAD4 25 0 10 11 12 20
|
||||||
|
CQUAD4 26 0 12 13 22 20
|
||||||
|
CQUAD4 27 0 13 14 15 22
|
||||||
|
CQUAD4 28 0 15 16 21 22
|
||||||
|
CQUAD4 29 0 11 10 3 4
|
||||||
|
CQUAD4 30 0 13 12 5 6
|
||||||
|
CQUAD4 31 0 14 13 6 7
|
||||||
|
CQUAD4 32 0 16 15 8 9
|
||||||
|
CQUAD4 33 0 2 16 9 1
|
||||||
|
CQUAD4 34 0 1 3 10 2
|
||||||
|
CQUAD4 35 0 5 12 11 4
|
||||||
|
CQUAD4 36 0 8 15 14 7
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 19THRU 36
|
||||||
|
$$
|
||||||
|
$$ CPYRA Elements 5-noded
|
||||||
|
$$
|
||||||
|
CPYRA 1 0 11 4 3 10 29
|
||||||
|
CPYRA 2 0 13 6 5 12 24
|
||||||
|
CPYRA 3 0 14 7 6 13 25
|
||||||
|
CPYRA 4 0 16 9 8 15 26
|
||||||
|
CPYRA 5 0 2 1 9 16 27
|
||||||
|
CPYRA 6 0 1 2 10 3 28
|
||||||
|
CPYRA 7 0 5 4 11 12 29
|
||||||
|
CPYRA 8 0 8 7 14 15 25
|
||||||
|
CPYRA 9 0 2 21 20 10 28
|
||||||
|
CPYRA 10 0 10 20 12 11 29
|
||||||
|
CPYRA 11 0 12 20 22 13 24
|
||||||
|
CPYRA 12 0 13 22 15 14 25
|
||||||
|
CPYRA 13 0 15 22 21 16 26
|
||||||
|
CPYRA 14 0 3 18 17 1 28
|
||||||
|
CPYRA 15 0 4 5 18 3 29
|
||||||
|
CPYRA 16 0 6 19 18 5 24
|
||||||
|
CPYRA 17 0 7 8 19 6 25
|
||||||
|
CPYRA 18 0 9 17 19 8 26
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 1THRU 18
|
||||||
|
$$
|
||||||
|
$$ CTETRA elements 4-noded
|
||||||
|
$$
|
||||||
|
CTETRA 54 0 29 30 27 20
|
||||||
|
CTETRA 55 0 23 8 25 19
|
||||||
|
CTETRA 56 0 15 25 22 23
|
||||||
|
CTETRA 57 0 5 18 29 30
|
||||||
|
CTETRA 58 0 23 27 33 22
|
||||||
|
CTETRA 59 0 16 2 27 21
|
||||||
|
CTETRA 60 0 32 19 17 26
|
||||||
|
CTETRA 61 0 17 19 27 18
|
||||||
|
CTETRA 62 0 31 10 29 20
|
||||||
|
CTETRA 63 0 27 2 28 21
|
||||||
|
CTETRA 64 0 17 1 28 27
|
||||||
|
CTETRA 65 0 27 20 22 21
|
||||||
|
CTETRA 66 0 32 26 17 9
|
||||||
|
CTETRA 67 0 31 20 29 27
|
||||||
|
CTETRA 68 0 28 20 27 21
|
||||||
|
CTETRA 69 0 27 24 22 20
|
||||||
|
CTETRA 70 0 28 2 27 1
|
||||||
|
CTETRA 71 0 6 13 33 24
|
||||||
|
CTETRA 72 0 19 24 33 27
|
||||||
|
CTETRA 73 0 29 20 12 30
|
||||||
|
CTETRA 74 0 16 21 32 26
|
||||||
|
CTETRA 75 0 23 22 33 25
|
||||||
|
CTETRA 76 0 31 18 29 3
|
||||||
|
CTETRA 77 0 29 18 31 27
|
||||||
|
CTETRA 78 0 23 25 33 19
|
||||||
|
CTETRA 79 0 21 26 23 32
|
||||||
|
CTETRA 80 0 29 18 27 30
|
||||||
|
CTETRA 81 0 29 30 12 5
|
||||||
|
CTETRA 82 0 27 19 32 23
|
||||||
|
CTETRA 83 0 28 18 17 27
|
||||||
|
CTETRA 84 0 24 33 22 13
|
||||||
|
CTETRA 85 0 29 10 31 3
|
||||||
|
CTETRA 86 0 23 8 15 25
|
||||||
|
CTETRA 87 0 27 18 19 24
|
||||||
|
CTETRA 88 0 17 1 27 9
|
||||||
|
CTETRA 89 0 16 26 32 9
|
||||||
|
CTETRA 90 0 26 8 23 19
|
||||||
|
CTETRA 91 0 15 23 22 26
|
||||||
|
CTETRA 92 0 21 32 23 27
|
||||||
|
CTETRA 93 0 32 19 26 23
|
||||||
|
CTETRA 94 0 26 8 15 23
|
||||||
|
CTETRA 95 0 30 24 27 20
|
||||||
|
CTETRA 96 0 5 18 30 24
|
||||||
|
CTETRA 97 0 30 20 12 24
|
||||||
|
CTETRA 98 0 30 18 27 24
|
||||||
|
CTETRA 99 0 30 24 12 5
|
||||||
|
CTETRA 100 0 21 27 23 22
|
||||||
|
CTETRA 101 0 22 33 25 13
|
||||||
|
CTETRA 102 0 28 10 31 20
|
||||||
|
CTETRA 103 0 28 20 31 27
|
||||||
|
CTETRA 104 0 28 18 31 3
|
||||||
|
CTETRA 105 0 31 18 28 27
|
||||||
|
CTETRA 106 0 31 10 28 3
|
||||||
|
CTETRA 107 0 6 13 25 33
|
||||||
|
CTETRA 108 0 16 32 27 9
|
||||||
|
CTETRA 109 0 21 22 23 26
|
||||||
|
CTETRA 110 0 27 19 17 32
|
||||||
|
CTETRA 111 0 27 32 17 9
|
||||||
|
CTETRA 112 0 16 21 27 32
|
||||||
|
CTETRA 113 0 19 25 33 6
|
||||||
|
CTETRA 114 0 24 27 22 33
|
||||||
|
CTETRA 115 0 23 19 33 27
|
||||||
|
CTETRA 116 0 19 6 33 24
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 54THRU 116
|
||||||
|
$$
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$ HyperMesh name and color information for generic components $
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$HMNAME COMP 1"misc1"
|
||||||
|
$HWCOLOR COMP 1 11
|
||||||
|
$
|
||||||
|
|
||||||
|
$
|
||||||
|
|
||||||
|
$
|
||||||
|
$$
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$ HyperMesh Commands for loadcollectors name and color information $
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
ENDDATA
|
||||||
|
$$
|
||||||
|
$$------------------------------------------------------------------------------$$
|
||||||
|
$$ Data Definition for AutoDV $$
|
||||||
|
$$------------------------------------------------------------------------------$$
|
||||||
|
$$
|
||||||
|
$$-----------------------------------------------------------------------------$$
|
||||||
|
$$ Design Variables Card for Control Perturbations $$
|
||||||
|
$$-----------------------------------------------------------------------------$$
|
||||||
|
$$
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$ Domain Element Definitions $
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$
|
||||||
|
$$------------------------------------------------------------------------------$$
|
||||||
|
$$ Control Perturbation $$
|
||||||
|
$$------------------------------------------------------------------------------$$
|
245
test/data/meshio_meshes/nastran/cylinder_cells_first.fem
Normal file
245
test/data/meshio_meshes/nastran/cylinder_cells_first.fem
Normal file
@ -0,0 +1,245 @@
|
|||||||
|
$$
|
||||||
|
$$ Optistruct Input Deck Generated by HyperMesh Version : 2017.3.0.17
|
||||||
|
$$ Generated using HyperMesh-Optistruct Template Version : 2017.3
|
||||||
|
$$
|
||||||
|
$$ Template: optistruct
|
||||||
|
$$
|
||||||
|
$$
|
||||||
|
$$ optistruct
|
||||||
|
$
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$ Case Control Cards $
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$--------------------------------------------------------------
|
||||||
|
$$ HYPERMESH TAGS
|
||||||
|
$$--------------------------------------------------------------
|
||||||
|
$$BEGIN TAGS
|
||||||
|
$$END TAGS
|
||||||
|
$
|
||||||
|
BEGIN BULK
|
||||||
|
$$
|
||||||
|
$$ Stacking Information for Ply-Based Composite Definition
|
||||||
|
$$
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$$
|
||||||
|
$$ CBAR Elements
|
||||||
|
$$
|
||||||
|
CBAR 37 3 11.0 0.0 0.0
|
||||||
|
CBAR 38 4 31.0 0.0 0.0
|
||||||
|
CBAR 39 5 41.0 0.0 0.0
|
||||||
|
CBAR 40 6 51.0 0.0 0.0
|
||||||
|
CBAR 41 7 61.0 0.0 0.0
|
||||||
|
CBAR 42 8 71.0 0.0 0.0
|
||||||
|
CBAR 43 9 81.0 0.0 0.0
|
||||||
|
CBAR 44 1 91.0 0.0 0.0
|
||||||
|
CBAR 45 2 101.0 0.0 0.0
|
||||||
|
CBAR 46 10 111.0 0.0 0.0
|
||||||
|
CBAR 47 11 121.0 0.0 0.0
|
||||||
|
CBAR 48 12 131.0 0.0 0.0
|
||||||
|
CBAR 49 13 141.0 0.0 0.0
|
||||||
|
CBAR 50 14 151.0 0.0 0.0
|
||||||
|
CBAR 51 15 161.0 0.0 0.0
|
||||||
|
CBAR 52 16 21.0 0.0 0.0
|
||||||
|
CBAR 53 1 21.0 0.0 0.0
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 37THRU 53
|
||||||
|
$$
|
||||||
|
$$ CTRIA3 Data
|
||||||
|
$$
|
||||||
|
CTRIA3 117 0 1 9 17
|
||||||
|
CTRIA3 118 0 17 19 18
|
||||||
|
CTRIA3 119 0 16 2 21
|
||||||
|
CTRIA3 120 0 22 21 20
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 117THRU 120
|
||||||
|
$$
|
||||||
|
$$ CQUAD4 Elements
|
||||||
|
$$
|
||||||
|
CQUAD4 19 0 3 1 17 18
|
||||||
|
CQUAD4 20 0 4 3 18 5
|
||||||
|
CQUAD4 21 0 6 5 18 19
|
||||||
|
CQUAD4 22 0 7 6 19 8
|
||||||
|
CQUAD4 23 0 9 8 19 17
|
||||||
|
CQUAD4 24 0 2 10 20 21
|
||||||
|
CQUAD4 25 0 10 11 12 20
|
||||||
|
CQUAD4 26 0 12 13 22 20
|
||||||
|
CQUAD4 27 0 13 14 15 22
|
||||||
|
CQUAD4 28 0 15 16 21 22
|
||||||
|
CQUAD4 29 0 11 10 3 4
|
||||||
|
CQUAD4 30 0 13 12 5 6
|
||||||
|
CQUAD4 31 0 14 13 6 7
|
||||||
|
CQUAD4 32 0 16 15 8 9
|
||||||
|
CQUAD4 33 0 2 16 9 1
|
||||||
|
CQUAD4 34 0 1 3 10 2
|
||||||
|
CQUAD4 35 0 5 12 11 4
|
||||||
|
CQUAD4 36 0 8 15 14 7
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 19THRU 36
|
||||||
|
$$
|
||||||
|
$$ CPYRA Elements 5-noded
|
||||||
|
$$
|
||||||
|
CPYRA 1 0 11 4 3 10 29
|
||||||
|
CPYRA 2 0 13 6 5 12 24
|
||||||
|
CPYRA 3 0 14 7 6 13 25
|
||||||
|
CPYRA 4 0 16 9 8 15 26
|
||||||
|
CPYRA 5 0 2 1 9 16 27
|
||||||
|
CPYRA 6 0 1 2 10 3 28
|
||||||
|
CPYRA 7 0 5 4 11 12 29
|
||||||
|
CPYRA 8 0 8 7 14 15 25
|
||||||
|
CPYRA 9 0 2 21 20 10 28
|
||||||
|
CPYRA 10 0 10 20 12 11 29
|
||||||
|
CPYRA 11 0 12 20 22 13 24
|
||||||
|
CPYRA 12 0 13 22 15 14 25
|
||||||
|
CPYRA 13 0 15 22 21 16 26
|
||||||
|
CPYRA 14 0 3 18 17 1 28
|
||||||
|
CPYRA 15 0 4 5 18 3 29
|
||||||
|
CPYRA 16 0 6 19 18 5 24
|
||||||
|
CPYRA 17 0 7 8 19 6 25
|
||||||
|
CPYRA 18 0 9 17 19 8 26
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 1THRU 18
|
||||||
|
$$
|
||||||
|
$$ CTETRA elements 4-noded
|
||||||
|
$$
|
||||||
|
CTETRA 54 0 29 30 27 20
|
||||||
|
CTETRA 55 0 23 8 25 19
|
||||||
|
CTETRA 56 0 15 25 22 23
|
||||||
|
CTETRA 57 0 5 18 29 30
|
||||||
|
CTETRA 58 0 23 27 33 22
|
||||||
|
CTETRA 59 0 16 2 27 21
|
||||||
|
CTETRA 60 0 32 19 17 26
|
||||||
|
CTETRA 61 0 17 19 27 18
|
||||||
|
CTETRA 62 0 31 10 29 20
|
||||||
|
CTETRA 63 0 27 2 28 21
|
||||||
|
CTETRA 64 0 17 1 28 27
|
||||||
|
CTETRA 65 0 27 20 22 21
|
||||||
|
CTETRA 66 0 32 26 17 9
|
||||||
|
CTETRA 67 0 31 20 29 27
|
||||||
|
CTETRA 68 0 28 20 27 21
|
||||||
|
CTETRA 69 0 27 24 22 20
|
||||||
|
CTETRA 70 0 28 2 27 1
|
||||||
|
CTETRA 71 0 6 13 33 24
|
||||||
|
CTETRA 72 0 19 24 33 27
|
||||||
|
CTETRA 73 0 29 20 12 30
|
||||||
|
CTETRA 74 0 16 21 32 26
|
||||||
|
CTETRA 75 0 23 22 33 25
|
||||||
|
CTETRA 76 0 31 18 29 3
|
||||||
|
CTETRA 77 0 29 18 31 27
|
||||||
|
CTETRA 78 0 23 25 33 19
|
||||||
|
CTETRA 79 0 21 26 23 32
|
||||||
|
CTETRA 80 0 29 18 27 30
|
||||||
|
CTETRA 81 0 29 30 12 5
|
||||||
|
CTETRA 82 0 27 19 32 23
|
||||||
|
CTETRA 83 0 28 18 17 27
|
||||||
|
CTETRA 84 0 24 33 22 13
|
||||||
|
CTETRA 85 0 29 10 31 3
|
||||||
|
CTETRA 86 0 23 8 15 25
|
||||||
|
CTETRA 87 0 27 18 19 24
|
||||||
|
CTETRA 88 0 17 1 27 9
|
||||||
|
CTETRA 89 0 16 26 32 9
|
||||||
|
CTETRA 90 0 26 8 23 19
|
||||||
|
CTETRA 91 0 15 23 22 26
|
||||||
|
CTETRA 92 0 21 32 23 27
|
||||||
|
CTETRA 93 0 32 19 26 23
|
||||||
|
CTETRA 94 0 26 8 15 23
|
||||||
|
CTETRA 95 0 30 24 27 20
|
||||||
|
CTETRA 96 0 5 18 30 24
|
||||||
|
CTETRA 97 0 30 20 12 24
|
||||||
|
CTETRA 98 0 30 18 27 24
|
||||||
|
CTETRA 99 0 30 24 12 5
|
||||||
|
CTETRA 100 0 21 27 23 22
|
||||||
|
CTETRA 101 0 22 33 25 13
|
||||||
|
CTETRA 102 0 28 10 31 20
|
||||||
|
CTETRA 103 0 28 20 31 27
|
||||||
|
CTETRA 104 0 28 18 31 3
|
||||||
|
CTETRA 105 0 31 18 28 27
|
||||||
|
CTETRA 106 0 31 10 28 3
|
||||||
|
CTETRA 107 0 6 13 25 33
|
||||||
|
CTETRA 108 0 16 32 27 9
|
||||||
|
CTETRA 109 0 21 22 23 26
|
||||||
|
CTETRA 110 0 27 19 17 32
|
||||||
|
CTETRA 111 0 27 32 17 9
|
||||||
|
CTETRA 112 0 16 21 27 32
|
||||||
|
CTETRA 113 0 19 25 33 6
|
||||||
|
CTETRA 114 0 24 27 22 33
|
||||||
|
CTETRA 115 0 23 19 33 27
|
||||||
|
CTETRA 116 0 19 6 33 24
|
||||||
|
$
|
||||||
|
$HMMOVE 1
|
||||||
|
$ 54THRU 116
|
||||||
|
$$
|
||||||
|
$$ GRID Data
|
||||||
|
$$
|
||||||
|
GRID 1 1.0 -2.45-160.0
|
||||||
|
GRID 2 1.0 -2.45-161.0
|
||||||
|
GRID 3 .7071068.70710680.0
|
||||||
|
GRID 4 2.06-15 1.0 0.0
|
||||||
|
GRID 5 -.707107.70710680.0
|
||||||
|
GRID 6 -1.0 9.004-150.0
|
||||||
|
GRID 7 -.707107-.7071070.0
|
||||||
|
GRID 8 8.698-15-1.0 0.0
|
||||||
|
GRID 9 .7071068-.7071070.0
|
||||||
|
GRID 10 .7071068.70710681.0
|
||||||
|
GRID 11 2.06-15 1.0 1.0
|
||||||
|
GRID 12 -.707107.70710681.0
|
||||||
|
GRID 13 -1.0 9.004-151.0
|
||||||
|
GRID 14 -.707107-.7071071.0
|
||||||
|
GRID 15 8.698-15-1.0 1.0
|
||||||
|
GRID 16 .7071068-.7071071.0
|
||||||
|
GRID 17 .3254219-6.154-20.0
|
||||||
|
GRID 18 9.8468-2.35124360.0
|
||||||
|
GRID 19 -0.14533-.2592060.0
|
||||||
|
GRID 20 -.0442730.2844711.0
|
||||||
|
GRID 21 .3224226-.2460451.0
|
||||||
|
GRID 22 -.169874-.2417461.0
|
||||||
|
GRID 23 -5.965-2-.291461.5227236
|
||||||
|
GRID 24 -.412743.1771685.4583333
|
||||||
|
GRID 25 -.271964-.345838.4791667
|
||||||
|
GRID 26 .1950392-.464081.4583333
|
||||||
|
GRID 27 .2936736-.1216440.5
|
||||||
|
GRID 28 .4547628.1859033.5416667
|
||||||
|
GRID 29 -4.085-20.440721.4791667
|
||||||
|
GRID 30 -.247058.3278403.4868056
|
||||||
|
GRID 31 .2479088.3405819.5163716
|
||||||
|
GRID 32 .2528394-.303703.4738152
|
||||||
|
GRID 33 -0.35812-7.943-2.4813956
|
||||||
|
$
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$ HyperMesh name and color information for generic components $
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$HMNAME COMP 1"misc1"
|
||||||
|
$HWCOLOR COMP 1 11
|
||||||
|
$
|
||||||
|
|
||||||
|
$
|
||||||
|
|
||||||
|
$
|
||||||
|
$$
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$ HyperMesh Commands for loadcollectors name and color information $
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
ENDDATA
|
||||||
|
$$
|
||||||
|
$$------------------------------------------------------------------------------$$
|
||||||
|
$$ Data Definition for AutoDV $$
|
||||||
|
$$------------------------------------------------------------------------------$$
|
||||||
|
$$
|
||||||
|
$$-----------------------------------------------------------------------------$$
|
||||||
|
$$ Design Variables Card for Control Perturbations $$
|
||||||
|
$$-----------------------------------------------------------------------------$$
|
||||||
|
$$
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$ Domain Element Definitions $
|
||||||
|
$$------------------------------------------------------------------------------$
|
||||||
|
$$
|
||||||
|
$$------------------------------------------------------------------------------$$
|
||||||
|
$$ Control Perturbation $$
|
||||||
|
$$------------------------------------------------------------------------------$$
|
144
test/data/meshio_meshes/netgen/periodic_1d.vol
Normal file
144
test/data/meshio_meshes/netgen/periodic_1d.vol
Normal file
@ -0,0 +1,144 @@
|
|||||||
|
# Generated by NETGEN v6.2.2103-39-g3165e042
|
||||||
|
|
||||||
|
mesh3d
|
||||||
|
dimension
|
||||||
|
1
|
||||||
|
geomtype
|
||||||
|
0
|
||||||
|
|
||||||
|
# surfnr bcnr domin domout np p1 p2 p3
|
||||||
|
surfaceelements
|
||||||
|
0
|
||||||
|
|
||||||
|
|
||||||
|
# matnr np p1 p2 p3 p4
|
||||||
|
volumeelements
|
||||||
|
0
|
||||||
|
|
||||||
|
|
||||||
|
# surfid 0 p1 p2 trignum1 trignum2 domin/surfnr1 domout/surfnr2 ednr1 dist1 ednr2 dist2
|
||||||
|
edgesegmentsgi2
|
||||||
|
50
|
||||||
|
1 0 1 2 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 2 3 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 3 4 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 4 5 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 5 6 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 6 7 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 7 8 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 8 9 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 9 10 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 10 11 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 11 12 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 12 13 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 13 14 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 14 15 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 15 16 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 16 17 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 17 18 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 18 19 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 19 20 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 20 21 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 21 22 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 22 23 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 23 24 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 24 25 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 25 26 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 26 27 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 27 28 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 28 29 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 29 30 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 30 31 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 31 32 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 32 33 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 33 34 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 34 35 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 35 36 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 36 37 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 37 38 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 38 39 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 39 40 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 40 41 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 41 42 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 42 43 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 43 44 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 44 45 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 45 46 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 46 47 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 47 48 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 48 49 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 49 50 -1 -1 -1 -1 1 0 1 0
|
||||||
|
1 0 50 51 -1 -1 -1 -1 1 0 1 0
|
||||||
|
|
||||||
|
|
||||||
|
# X Y Z
|
||||||
|
points
|
||||||
|
51
|
||||||
|
0.0000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.0200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.0400000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.0600000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.0800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.1000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.1200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.1400000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.1600000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.1800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.2000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.2200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.2400000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.2600000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.2800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.3000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.3200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.3400000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.3600000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.3800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.4000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.4200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.4400000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.4600000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.4800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.5000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.5200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.5400000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.5600000000000001 0.0000000000000000 0.0000000000000000
|
||||||
|
0.5800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.6000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.6200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.6400000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.6600000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.6800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.7000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.7200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.7400000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.7600000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.7800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.8000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.8200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.8400000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.8600000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.8800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.9000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.9200000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.9399999999999999 0.0000000000000000 0.0000000000000000
|
||||||
|
0.9600000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.9800000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
1.0000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
|
||||||
|
|
||||||
|
# pnum index
|
||||||
|
pointelements
|
||||||
|
2
|
||||||
|
1 1
|
||||||
|
51 2
|
||||||
|
identifications
|
||||||
|
1
|
||||||
|
1 51 1
|
||||||
|
identificationtypes
|
||||||
|
1
|
||||||
|
2
|
||||||
|
|
||||||
|
|
||||||
|
endmesh
|
||||||
|
|
194
test/data/meshio_meshes/netgen/periodic_2d.vol
Normal file
194
test/data/meshio_meshes/netgen/periodic_2d.vol
Normal file
@ -0,0 +1,194 @@
|
|||||||
|
# Generated by NETGEN v6.2.2103-39-g3165e042
|
||||||
|
|
||||||
|
mesh3d
|
||||||
|
dimension
|
||||||
|
2
|
||||||
|
geomtype
|
||||||
|
0
|
||||||
|
|
||||||
|
# surfnr bcnr domin domout np p1 p2 p3
|
||||||
|
surfaceelements
|
||||||
|
58
|
||||||
|
2 1 0 0 3 1 5 17
|
||||||
|
2 1 0 0 3 5 6 21
|
||||||
|
2 1 0 0 3 6 7 22
|
||||||
|
2 1 0 0 3 6 22 21
|
||||||
|
2 1 0 0 3 7 8 23
|
||||||
|
2 1 0 0 3 7 23 22
|
||||||
|
2 1 0 0 3 2 24 8
|
||||||
|
2 1 0 0 3 8 24 23
|
||||||
|
2 1 0 0 3 2 9 24
|
||||||
|
2 1 0 0 3 9 10 25
|
||||||
|
2 1 0 0 3 9 25 24
|
||||||
|
2 1 0 0 3 10 11 26
|
||||||
|
2 1 0 0 3 10 26 25
|
||||||
|
2 1 0 0 3 11 12 27
|
||||||
|
2 1 0 0 3 11 27 26
|
||||||
|
2 1 0 0 3 3 13 12
|
||||||
|
2 1 0 0 3 13 14 28
|
||||||
|
2 1 0 0 3 14 15 29
|
||||||
|
2 1 0 0 3 14 29 28
|
||||||
|
2 1 0 0 3 15 16 30
|
||||||
|
2 1 0 0 3 15 30 29
|
||||||
|
2 1 0 0 3 4 31 16
|
||||||
|
2 1 0 0 3 16 31 30
|
||||||
|
2 1 0 0 3 4 20 31
|
||||||
|
2 1 0 0 3 17 32 18
|
||||||
|
2 1 0 0 3 18 33 19
|
||||||
|
2 1 0 0 3 18 32 33
|
||||||
|
2 1 0 0 3 19 34 20
|
||||||
|
2 1 0 0 3 20 34 31
|
||||||
|
2 1 0 0 3 19 33 34
|
||||||
|
2 1 0 0 3 12 13 27
|
||||||
|
2 1 0 0 3 13 28 27
|
||||||
|
2 1 0 0 3 5 21 17
|
||||||
|
2 1 0 0 3 22 23 35
|
||||||
|
2 1 0 0 3 21 22 36
|
||||||
|
2 1 0 0 3 22 35 36
|
||||||
|
2 1 0 0 3 26 27 37
|
||||||
|
2 1 0 0 3 27 28 37
|
||||||
|
2 1 0 0 3 23 24 25
|
||||||
|
2 1 0 0 3 23 25 35
|
||||||
|
2 1 0 0 3 30 31 38
|
||||||
|
2 1 0 0 3 31 34 38
|
||||||
|
2 1 0 0 3 29 30 38
|
||||||
|
2 1 0 0 3 28 29 39
|
||||||
|
2 1 0 0 3 28 39 37
|
||||||
|
2 1 0 0 3 29 38 39
|
||||||
|
2 1 0 0 3 17 21 32
|
||||||
|
2 1 0 0 3 21 36 32
|
||||||
|
2 1 0 0 3 25 26 40
|
||||||
|
2 1 0 0 3 32 36 33
|
||||||
|
2 1 0 0 3 26 37 40
|
||||||
|
2 1 0 0 3 33 38 34
|
||||||
|
2 1 0 0 3 33 36 38
|
||||||
|
2 1 0 0 3 25 40 35
|
||||||
|
2 1 0 0 3 36 39 38
|
||||||
|
2 1 0 0 3 35 39 36
|
||||||
|
2 1 0 0 3 35 40 39
|
||||||
|
2 1 0 0 3 37 39 40
|
||||||
|
|
||||||
|
|
||||||
|
# matnr np p1 p2 p3 p4
|
||||||
|
volumeelements
|
||||||
|
0
|
||||||
|
|
||||||
|
|
||||||
|
# surfid 0 p1 p2 trignum1 trignum2 domin/surfnr1 domout/surfnr2 ednr1 dist1 ednr2 dist2
|
||||||
|
edgesegmentsgi2
|
||||||
|
20
|
||||||
|
1 0 1 5 -1 -1 1 0 1 0 1 0.2
|
||||||
|
1 0 5 6 -1 -1 1 0 1 0.2 1 0.4
|
||||||
|
1 0 6 7 -1 -1 1 0 1 0.4 1 0.6
|
||||||
|
1 0 7 8 -1 -1 1 0 1 0.6 1 0.8
|
||||||
|
1 0 8 2 -1 -1 1 0 1 0.8 1 1
|
||||||
|
2 0 2 9 -1 -1 1 0 2 0 2 0.2
|
||||||
|
2 0 9 10 -1 -1 1 0 2 0.2 2 0.4
|
||||||
|
2 0 10 11 -1 -1 1 0 2 0.4 2 0.6
|
||||||
|
2 0 11 12 -1 -1 1 0 2 0.6 2 0.8
|
||||||
|
2 0 12 3 -1 -1 1 0 2 0.8 2 1
|
||||||
|
3 0 3 13 -1 -1 1 0 3 0 3 0.2
|
||||||
|
3 0 13 14 -1 -1 1 0 3 0.2 3 0.4
|
||||||
|
3 0 14 15 -1 -1 1 0 3 0.4 3 0.6
|
||||||
|
3 0 15 16 -1 -1 1 0 3 0.6 3 0.8
|
||||||
|
3 0 16 4 -1 -1 1 0 3 0.8 3 1
|
||||||
|
4 0 1 17 -1 -1 0 1 4 0 4 0.2
|
||||||
|
4 0 17 18 -1 -1 0 1 4 0.2 4 0.4
|
||||||
|
4 0 18 19 -1 -1 0 1 4 0.4 4 0.6
|
||||||
|
4 0 19 20 -1 -1 0 1 4 0.6 4 0.8
|
||||||
|
4 0 20 4 -1 -1 0 1 4 0.8 4 1
|
||||||
|
|
||||||
|
|
||||||
|
# X Y Z
|
||||||
|
points
|
||||||
|
40
|
||||||
|
0.0000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
1.0000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
1.0000000000000000 1.0000000000000000 0.0000000000000000
|
||||||
|
0.0000000000000000 1.0000000000000000 0.0000000000000000
|
||||||
|
0.2000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.4000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.6000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.8000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
1.0000000000000000 0.2000000000000000 0.0000000000000000
|
||||||
|
1.0000000000000000 0.4000000000000000 0.0000000000000000
|
||||||
|
1.0000000000000000 0.6000000000000000 0.0000000000000000
|
||||||
|
1.0000000000000000 0.8000000000000000 0.0000000000000000
|
||||||
|
0.7999999999999999 1.0000000000000000 0.0000000000000000
|
||||||
|
0.6000000000000000 1.0000000000000000 0.0000000000000000
|
||||||
|
0.4000000000000000 1.0000000000000000 0.0000000000000000
|
||||||
|
0.2000000000000000 1.0000000000000000 0.0000000000000000
|
||||||
|
0.0000000000000000 0.2000000000000000 0.0000000000000000
|
||||||
|
0.0000000000000000 0.4000000000000000 0.0000000000000000
|
||||||
|
0.0000000000000000 0.6000000000000000 0.0000000000000000
|
||||||
|
0.0000000000000000 0.8000000000000000 0.0000000000000000
|
||||||
|
0.2737029466317127 0.1811747818216966 0.0000000000000000
|
||||||
|
0.4805348579459315 0.1852935472807671 0.0000000000000000
|
||||||
|
0.6827590117435046 0.1702890061939871 0.0000000000000000
|
||||||
|
0.8575695844442716 0.1419063764469471 0.0000000000000000
|
||||||
|
0.8111112850985802 0.3258703253208415 0.0000000000000000
|
||||||
|
0.8493339534816288 0.5262364626047286 0.0000000000000000
|
||||||
|
0.8421283897191041 0.7318614438631723 0.0000000000000000
|
||||||
|
0.6601606467397222 0.8032633168034399 0.0000000000000000
|
||||||
|
0.4765343016929663 0.8179836454001187 0.0000000000000000
|
||||||
|
0.3132853271934791 0.8629930180472398 0.0000000000000000
|
||||||
|
0.1584925502078927 0.8390807603910830 0.0000000000000000
|
||||||
|
0.1662260298847409 0.3347019222223993 0.0000000000000000
|
||||||
|
0.1698338083646673 0.5130730339035593 0.0000000000000000
|
||||||
|
0.1324637082656786 0.6819019947250892 0.0000000000000000
|
||||||
|
0.5818135591952022 0.3542155081169817 0.0000000000000000
|
||||||
|
0.3642445694293263 0.4057099958862074 0.0000000000000000
|
||||||
|
0.7111939984221883 0.6337182845699614 0.0000000000000000
|
||||||
|
0.3154224090519101 0.6697496604451058 0.0000000000000000
|
||||||
|
0.5278793480475702 0.5943130585988371 0.0000000000000000
|
||||||
|
0.6923017137632204 0.4803955670550934 0.0000000000000000
|
||||||
|
|
||||||
|
|
||||||
|
# pnum index
|
||||||
|
pointelements
|
||||||
|
4
|
||||||
|
1 1
|
||||||
|
2 2
|
||||||
|
3 3
|
||||||
|
4 4
|
||||||
|
identifications
|
||||||
|
6
|
||||||
|
2 1 4
|
||||||
|
3 4 4
|
||||||
|
9 17 4
|
||||||
|
10 18 4
|
||||||
|
11 19 4
|
||||||
|
12 20 4
|
||||||
|
identificationtypes
|
||||||
|
4
|
||||||
|
1 1 1 2
|
||||||
|
|
||||||
|
|
||||||
|
bcnames
|
||||||
|
4
|
||||||
|
1 outer
|
||||||
|
2 periodic
|
||||||
|
3 outer
|
||||||
|
4 periodic
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
cd2names
|
||||||
|
4
|
||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
||||||
|
4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Surfnr Red Green Blue
|
||||||
|
face_colours
|
||||||
|
1
|
||||||
|
2 0.00000000 1.00000000 0.00000000
|
||||||
|
|
||||||
|
|
||||||
|
endmesh
|
||||||
|
|
506
test/data/meshio_meshes/netgen/periodic_3d.vol
Normal file
506
test/data/meshio_meshes/netgen/periodic_3d.vol
Normal file
@ -0,0 +1,506 @@
|
|||||||
|
# Generated by NETGEN v6.2.2103-39-g3165e042
|
||||||
|
|
||||||
|
mesh3d
|
||||||
|
dimension
|
||||||
|
3
|
||||||
|
geomtype
|
||||||
|
0
|
||||||
|
|
||||||
|
# surfnr bcnr domin domout np p1 p2 p3
|
||||||
|
surfaceelements
|
||||||
|
108
|
||||||
|
1 1 1 0 3 1 9 32
|
||||||
|
1 1 1 0 3 9 10 33
|
||||||
|
1 1 1 0 3 4 34 10
|
||||||
|
1 1 1 0 3 10 34 33
|
||||||
|
1 1 1 0 3 4 28 34
|
||||||
|
1 1 1 0 3 3 31 11
|
||||||
|
1 1 1 0 3 11 35 12
|
||||||
|
1 1 1 0 3 7 12 36
|
||||||
|
1 1 1 0 3 7 36 27
|
||||||
|
1 1 1 0 3 12 35 36
|
||||||
|
1 1 1 0 3 27 37 28
|
||||||
|
1 1 1 0 3 28 37 34
|
||||||
|
1 1 1 0 3 27 36 37
|
||||||
|
3 6 1 0 3 49 51 53
|
||||||
|
1 1 1 0 3 9 33 32
|
||||||
|
3 6 1 0 3 30 51 49
|
||||||
|
1 1 1 0 3 35 37 36
|
||||||
|
1 1 1 0 3 33 34 37
|
||||||
|
1 1 1 0 3 31 32 33
|
||||||
|
1 1 1 0 3 11 31 35
|
||||||
|
1 1 1 0 3 31 33 35
|
||||||
|
1 1 1 0 3 33 37 35
|
||||||
|
7 2 1 0 3 1 22 9
|
||||||
|
7 2 1 0 3 9 38 10
|
||||||
|
7 2 1 0 3 4 10 16
|
||||||
|
3 6 1 0 3 49 53 50
|
||||||
|
7 2 1 0 3 10 38 16
|
||||||
|
7 2 1 0 3 6 15 26
|
||||||
|
7 2 1 0 3 15 16 39
|
||||||
|
7 2 1 0 3 15 39 26
|
||||||
|
3 6 1 0 3 51 52 53
|
||||||
|
7 2 1 0 3 2 25 21
|
||||||
|
7 2 1 0 3 21 40 22
|
||||||
|
7 2 1 0 3 25 26 39
|
||||||
|
7 2 1 0 3 9 22 40
|
||||||
|
7 2 1 0 3 21 25 40
|
||||||
|
7 2 1 0 3 25 39 40
|
||||||
|
7 2 1 0 3 9 40 38
|
||||||
|
7 2 1 0 3 16 38 39
|
||||||
|
7 2 1 0 3 38 40 39
|
||||||
|
4 4 1 0 3 8 13 17
|
||||||
|
4 4 1 0 3 13 14 41
|
||||||
|
4 4 1 0 3 7 42 14
|
||||||
|
4 4 1 0 3 14 42 41
|
||||||
|
4 4 1 0 3 7 27 42
|
||||||
|
3 6 1 0 3 29 30 49
|
||||||
|
4 4 1 0 3 15 43 16
|
||||||
|
4 4 1 0 3 4 16 44
|
||||||
|
4 4 1 0 3 4 44 28
|
||||||
|
4 4 1 0 3 16 43 44
|
||||||
|
3 6 1 0 3 19 29 49
|
||||||
|
4 4 1 0 3 6 18 15
|
||||||
|
4 4 1 0 3 27 28 45
|
||||||
|
4 4 1 0 3 27 45 42
|
||||||
|
4 4 1 0 3 28 44 45
|
||||||
|
4 4 1 0 3 13 41 17
|
||||||
|
4 4 1 0 3 43 45 44
|
||||||
|
4 4 1 0 3 41 42 45
|
||||||
|
4 4 1 0 3 15 18 43
|
||||||
|
4 4 1 0 3 17 41 18
|
||||||
|
4 4 1 0 3 18 41 43
|
||||||
|
4 4 1 0 3 41 45 43
|
||||||
|
2 5 1 0 3 8 17 24
|
||||||
|
2 5 1 0 3 17 18 46
|
||||||
|
2 5 1 0 3 6 26 18
|
||||||
|
2 5 1 0 3 18 26 46
|
||||||
|
3 6 1 0 3 31 50 53
|
||||||
|
2 5 1 0 3 5 23 47
|
||||||
|
2 5 1 0 3 23 24 47
|
||||||
|
2 5 1 0 3 2 30 25
|
||||||
|
2 5 1 0 3 25 48 26
|
||||||
|
2 5 1 0 3 25 30 48
|
||||||
|
2 5 1 0 3 5 47 29
|
||||||
|
2 5 1 0 3 29 48 30
|
||||||
|
2 5 1 0 3 17 46 24
|
||||||
|
2 5 1 0 3 29 47 48
|
||||||
|
2 5 1 0 3 24 46 47
|
||||||
|
2 5 1 0 3 46 48 47
|
||||||
|
3 6 1 0 3 32 53 52
|
||||||
|
2 5 1 0 3 26 48 46
|
||||||
|
3 6 1 0 3 5 29 19
|
||||||
|
3 6 1 0 3 19 49 20
|
||||||
|
3 6 1 0 3 3 20 50
|
||||||
|
3 6 1 0 3 3 50 31
|
||||||
|
3 6 1 0 3 20 49 50
|
||||||
|
3 6 1 0 3 2 21 30
|
||||||
|
3 6 1 0 3 21 22 51
|
||||||
|
3 6 1 0 3 1 52 22
|
||||||
|
3 6 1 0 3 22 52 51
|
||||||
|
3 6 1 0 3 1 32 52
|
||||||
|
3 6 1 0 3 21 51 30
|
||||||
|
3 6 1 0 3 31 53 32
|
||||||
|
8 3 1 0 3 3 11 20
|
||||||
|
8 3 1 0 3 11 12 54
|
||||||
|
8 3 1 0 3 7 14 12
|
||||||
|
8 3 1 0 3 12 14 54
|
||||||
|
8 3 1 0 3 8 24 13
|
||||||
|
8 3 1 0 3 13 55 14
|
||||||
|
8 3 1 0 3 13 24 55
|
||||||
|
8 3 1 0 3 5 19 23
|
||||||
|
8 3 1 0 3 19 20 56
|
||||||
|
8 3 1 0 3 23 55 24
|
||||||
|
8 3 1 0 3 11 56 20
|
||||||
|
8 3 1 0 3 19 56 23
|
||||||
|
8 3 1 0 3 23 56 55
|
||||||
|
8 3 1 0 3 11 54 56
|
||||||
|
8 3 1 0 3 14 55 54
|
||||||
|
8 3 1 0 3 54 55 56
|
||||||
|
|
||||||
|
|
||||||
|
# matnr np p1 p2 p3 p4
|
||||||
|
volumeelements
|
||||||
|
166
|
||||||
|
1 4 33 57 59 61
|
||||||
|
1 4 12 14 54 36
|
||||||
|
1 4 33 38 59 57
|
||||||
|
1 4 21 40 51 60
|
||||||
|
1 4 49 51 53 57
|
||||||
|
1 4 11 35 54 58
|
||||||
|
1 4 57 59 61 64
|
||||||
|
1 4 11 20 58 56
|
||||||
|
1 4 54 55 56 61
|
||||||
|
1 4 15 39 62 43
|
||||||
|
1 4 39 43 59 62
|
||||||
|
1 4 55 56 61 64
|
||||||
|
1 4 1 9 65 22
|
||||||
|
1 4 49 57 63 60
|
||||||
|
1 4 41 45 59 61
|
||||||
|
1 4 29 47 60 63
|
||||||
|
1 4 29 47 48 60
|
||||||
|
1 4 46 47 60 48
|
||||||
|
1 4 9 38 65 40
|
||||||
|
1 4 24 46 47 64
|
||||||
|
1 4 39 40 62 59
|
||||||
|
1 4 21 30 60 51
|
||||||
|
1 4 1 9 32 65
|
||||||
|
1 4 57 59 64 62
|
||||||
|
1 4 56 58 61 64
|
||||||
|
1 4 38 39 59 40
|
||||||
|
1 4 20 49 58 56
|
||||||
|
1 4 36 37 42 61
|
||||||
|
1 4 35 36 61 37
|
||||||
|
1 4 27 36 37 42
|
||||||
|
1 4 35 36 54 61
|
||||||
|
1 4 37 42 61 45
|
||||||
|
1 4 5 19 23 63
|
||||||
|
1 4 14 41 55 61
|
||||||
|
1 4 23 47 63 64
|
||||||
|
1 4 9 22 40 65
|
||||||
|
1 4 31 32 33 53
|
||||||
|
1 4 25 26 62 48
|
||||||
|
1 4 23 24 47 64
|
||||||
|
1 4 40 57 62 59
|
||||||
|
1 4 56 58 64 63
|
||||||
|
1 4 22 51 65 52
|
||||||
|
1 4 29 49 63 60
|
||||||
|
1 4 34 37 59 45
|
||||||
|
1 4 33 53 57 58
|
||||||
|
1 4 23 24 64 55
|
||||||
|
1 4 32 33 53 65
|
||||||
|
1 4 11 12 54 35
|
||||||
|
1 4 43 44 59 45
|
||||||
|
1 4 21 25 60 30
|
||||||
|
1 4 40 51 57 65
|
||||||
|
1 4 13 14 41 55
|
||||||
|
1 4 22 40 65 51
|
||||||
|
1 4 41 46 64 62
|
||||||
|
1 4 3 11 20 58
|
||||||
|
1 4 41 43 59 45
|
||||||
|
1 4 10 33 38 34
|
||||||
|
1 4 31 33 35 58
|
||||||
|
1 4 21 25 40 60
|
||||||
|
1 4 2 21 30 25
|
||||||
|
1 4 24 41 46 64
|
||||||
|
1 4 17 18 46 41
|
||||||
|
1 4 49 57 58 63
|
||||||
|
1 4 4 10 16 44
|
||||||
|
1 4 10 34 38 44
|
||||||
|
1 4 17 24 41 46
|
||||||
|
1 4 19 29 49 63
|
||||||
|
1 4 33 37 61 59
|
||||||
|
1 4 33 38 57 65
|
||||||
|
1 4 11 31 35 58
|
||||||
|
1 4 38 40 59 57
|
||||||
|
1 4 7 12 36 14
|
||||||
|
1 4 30 49 60 51
|
||||||
|
1 4 27 37 45 42
|
||||||
|
1 4 14 36 42 61
|
||||||
|
1 4 15 18 43 62
|
||||||
|
1 4 19 20 56 49
|
||||||
|
1 4 41 55 61 64
|
||||||
|
1 4 21 22 51 40
|
||||||
|
1 4 10 16 44 38
|
||||||
|
1 4 57 58 63 64
|
||||||
|
1 4 15 16 39 43
|
||||||
|
1 4 25 30 48 60
|
||||||
|
1 4 46 48 60 62
|
||||||
|
1 4 12 35 36 54
|
||||||
|
1 4 33 35 61 37
|
||||||
|
1 4 26 46 62 48
|
||||||
|
1 4 33 35 58 61
|
||||||
|
1 4 25 48 62 60
|
||||||
|
1 4 3 20 50 58
|
||||||
|
1 4 18 41 62 46
|
||||||
|
1 4 25 40 60 62
|
||||||
|
1 4 37 45 61 59
|
||||||
|
1 4 40 57 60 62
|
||||||
|
1 4 23 55 64 56
|
||||||
|
1 4 38 40 57 65
|
||||||
|
1 4 41 59 62 64
|
||||||
|
1 4 49 50 58 53
|
||||||
|
1 4 14 36 61 54
|
||||||
|
1 4 51 52 53 65
|
||||||
|
1 4 25 26 39 62
|
||||||
|
1 4 34 38 44 59
|
||||||
|
1 4 9 32 65 33
|
||||||
|
1 4 51 53 57 65
|
||||||
|
1 4 16 38 59 44
|
||||||
|
1 4 23 56 64 63
|
||||||
|
1 4 14 54 61 55
|
||||||
|
1 4 6 15 26 18
|
||||||
|
1 4 15 18 62 26
|
||||||
|
1 4 54 56 58 61
|
||||||
|
1 4 3 31 58 50
|
||||||
|
1 4 49 56 63 58
|
||||||
|
1 4 5 19 63 29
|
||||||
|
1 4 1 32 52 65
|
||||||
|
1 4 4 28 34 44
|
||||||
|
1 4 35 54 58 61
|
||||||
|
1 4 4 10 44 34
|
||||||
|
1 4 49 53 58 57
|
||||||
|
1 4 1 22 65 52
|
||||||
|
1 4 41 59 64 61
|
||||||
|
1 4 29 30 49 60
|
||||||
|
1 4 5 29 63 47
|
||||||
|
1 4 9 10 33 38
|
||||||
|
1 4 40 51 60 57
|
||||||
|
1 4 18 41 43 62
|
||||||
|
1 4 46 47 64 60
|
||||||
|
1 4 49 51 57 60
|
||||||
|
1 4 16 43 44 59
|
||||||
|
1 4 16 39 43 59
|
||||||
|
1 4 57 60 64 63
|
||||||
|
1 4 7 14 36 42
|
||||||
|
1 4 33 53 65 57
|
||||||
|
1 4 15 26 62 39
|
||||||
|
1 4 33 34 37 59
|
||||||
|
1 4 33 34 59 38
|
||||||
|
1 4 47 60 63 64
|
||||||
|
1 4 7 27 42 36
|
||||||
|
1 4 13 17 24 41
|
||||||
|
1 4 13 24 55 41
|
||||||
|
1 4 46 60 64 62
|
||||||
|
1 4 41 43 62 59
|
||||||
|
1 4 57 58 64 61
|
||||||
|
1 4 9 33 65 38
|
||||||
|
1 4 18 26 46 62
|
||||||
|
1 4 16 38 39 59
|
||||||
|
1 4 19 49 56 63
|
||||||
|
1 4 24 41 64 55
|
||||||
|
1 4 8 13 17 24
|
||||||
|
1 4 25 39 40 62
|
||||||
|
1 4 11 54 56 58
|
||||||
|
1 4 29 30 60 48
|
||||||
|
1 4 3 11 58 31
|
||||||
|
1 4 5 23 47 63
|
||||||
|
1 4 31 50 53 58
|
||||||
|
1 4 32 52 65 53
|
||||||
|
1 4 28 34 44 45
|
||||||
|
1 4 34 44 45 59
|
||||||
|
1 4 57 60 62 64
|
||||||
|
1 4 19 23 63 56
|
||||||
|
1 4 14 41 61 42
|
||||||
|
1 4 20 49 50 58
|
||||||
|
1 4 41 42 45 61
|
||||||
|
1 4 31 33 58 53
|
||||||
|
1 4 33 57 61 58
|
||||||
|
1 4 27 28 45 37
|
||||||
|
1 4 28 34 45 37
|
||||||
|
|
||||||
|
|
||||||
|
# surfid 0 p1 p2 trignum1 trignum2 domin/surfnr1 domout/surfnr2 ednr1 dist1 ednr2 dist2
|
||||||
|
edgesegmentsgi2
|
||||||
|
72
|
||||||
|
1 0 1 9 -1 -1 1 7 1 0 0 0
|
||||||
|
2 0 9 1 -1 -1 1 7 1 0 0 0
|
||||||
|
1 0 9 10 -1 -1 1 7 1 0 0 0
|
||||||
|
2 0 10 9 -1 -1 1 7 1 0 0 0
|
||||||
|
1 0 10 4 -1 -1 1 7 1 0 0 0
|
||||||
|
2 0 4 10 -1 -1 1 7 1 0 0 0
|
||||||
|
1 0 11 3 -1 -1 8 1 2 0 0 0
|
||||||
|
3 0 3 11 -1 -1 8 1 2 0 0 0
|
||||||
|
1 0 12 11 -1 -1 8 1 2 0 0 0
|
||||||
|
3 0 11 12 -1 -1 8 1 2 0 0 0
|
||||||
|
1 0 7 12 -1 -1 8 1 2 0 0 0
|
||||||
|
3 0 12 7 -1 -1 8 1 2 0 0 0
|
||||||
|
4 0 8 13 -1 -1 4 8 3 0 0 0
|
||||||
|
3 0 13 8 -1 -1 4 8 3 0 0 0
|
||||||
|
4 0 13 14 -1 -1 4 8 3 0 0 0
|
||||||
|
3 0 14 13 -1 -1 4 8 3 0 0 0
|
||||||
|
4 0 14 7 -1 -1 4 8 3 0 0 0
|
||||||
|
3 0 7 14 -1 -1 4 8 3 0 0 0
|
||||||
|
4 0 15 6 -1 -1 7 4 4 0 0 0
|
||||||
|
2 0 6 15 -1 -1 7 4 4 0 0 0
|
||||||
|
4 0 16 15 -1 -1 7 4 4 0 0 0
|
||||||
|
2 0 15 16 -1 -1 7 4 4 0 0 0
|
||||||
|
4 0 4 16 -1 -1 7 4 4 0 0 0
|
||||||
|
2 0 16 4 -1 -1 7 4 4 0 0 0
|
||||||
|
5 0 8 17 -1 -1 2 4 5 0 0 0
|
||||||
|
4 0 17 8 -1 -1 2 4 5 0 0 0
|
||||||
|
5 0 17 18 -1 -1 2 4 5 0 0 0
|
||||||
|
4 0 18 17 -1 -1 2 4 5 0 0 0
|
||||||
|
5 0 18 6 -1 -1 2 4 5 0 0 0
|
||||||
|
4 0 6 18 -1 -1 2 4 5 0 0 0
|
||||||
|
6 0 19 5 -1 -1 8 3 6 0 0 0
|
||||||
|
3 0 5 19 -1 -1 8 3 6 0 0 0
|
||||||
|
6 0 20 19 -1 -1 8 3 6 0 0 0
|
||||||
|
3 0 19 20 -1 -1 8 3 6 0 0 0
|
||||||
|
6 0 3 20 -1 -1 8 3 6 0 0 0
|
||||||
|
3 0 20 3 -1 -1 8 3 6 0 0 0
|
||||||
|
6 0 2 21 -1 -1 3 7 7 0 0 0
|
||||||
|
2 0 21 2 -1 -1 3 7 7 0 0 0
|
||||||
|
6 0 21 22 -1 -1 3 7 7 0 0 0
|
||||||
|
2 0 22 21 -1 -1 3 7 7 0 0 0
|
||||||
|
6 0 22 1 -1 -1 3 7 7 0 0 0
|
||||||
|
2 0 1 22 -1 -1 3 7 7 0 0 0
|
||||||
|
5 0 5 23 -1 -1 2 8 8 0 0 0
|
||||||
|
3 0 23 5 -1 -1 2 8 8 0 0 0
|
||||||
|
5 0 23 24 -1 -1 2 8 8 0 0 0
|
||||||
|
3 0 24 23 -1 -1 2 8 8 0 0 0
|
||||||
|
5 0 24 8 -1 -1 2 8 8 0 0 0
|
||||||
|
3 0 8 24 -1 -1 2 8 8 0 0 0
|
||||||
|
5 0 25 2 -1 -1 7 2 9 0 0 0
|
||||||
|
2 0 2 25 -1 -1 7 2 9 0 0 0
|
||||||
|
5 0 26 25 -1 -1 7 2 9 0 0 0
|
||||||
|
2 0 25 26 -1 -1 7 2 9 0 0 0
|
||||||
|
5 0 6 26 -1 -1 7 2 9 0 0 0
|
||||||
|
2 0 26 6 -1 -1 7 2 9 0 0 0
|
||||||
|
1 0 27 7 -1 -1 4 1 10 0 0 0
|
||||||
|
4 0 7 27 -1 -1 4 1 10 0 0 0
|
||||||
|
1 0 28 27 -1 -1 4 1 10 0 0 0
|
||||||
|
4 0 27 28 -1 -1 4 1 10 0 0 0
|
||||||
|
1 0 4 28 -1 -1 4 1 10 0 0 0
|
||||||
|
4 0 28 4 -1 -1 4 1 10 0 0 0
|
||||||
|
5 0 29 5 -1 -1 3 2 11 0 0 0
|
||||||
|
6 0 5 29 -1 -1 3 2 11 0 0 0
|
||||||
|
5 0 30 29 -1 -1 3 2 11 0 0 0
|
||||||
|
6 0 29 30 -1 -1 3 2 11 0 0 0
|
||||||
|
5 0 2 30 -1 -1 3 2 11 0 0 0
|
||||||
|
6 0 30 2 -1 -1 3 2 11 0 0 0
|
||||||
|
1 0 3 31 -1 -1 1 3 12 0 0 0
|
||||||
|
6 0 31 3 -1 -1 1 3 12 0 0 0
|
||||||
|
1 0 31 32 -1 -1 1 3 12 0 0 0
|
||||||
|
6 0 32 31 -1 -1 1 3 12 0 0 0
|
||||||
|
1 0 32 1 -1 -1 1 3 12 0 0 0
|
||||||
|
6 0 1 32 -1 -1 1 3 12 0 0 0
|
||||||
|
|
||||||
|
|
||||||
|
# X Y Z
|
||||||
|
points
|
||||||
|
65
|
||||||
|
0.0000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.0000000000000000 0.0000000000000000 1.0000000000000000
|
||||||
|
1.0000000000000000 0.0000000000000000 0.0000000000000000
|
||||||
|
0.0000000000000000 1.0000000000000000 0.0000000000000000
|
||||||
|
1.0000000000000000 0.0000000000000000 1.0000000000000000
|
||||||
|
0.0000000000000000 1.0000000000000000 1.0000000000000000
|
||||||
|
1.0000000000000000 1.0000000000000000 0.0000000000000000
|
||||||
|
1.0000000000000000 1.0000000000000000 1.0000000000000000
|
||||||
|
0.0000000000000000 0.3333333333333333 0.0000000000000000
|
||||||
|
0.0000000000000000 0.6666666666666666 0.0000000000000000
|
||||||
|
1.0000000000000000 0.3333333333333333 0.0000000000000000
|
||||||
|
1.0000000000000000 0.6666666666666666 0.0000000000000000
|
||||||
|
1.0000000000000000 1.0000000000000000 0.6666666666666666
|
||||||
|
1.0000000000000000 1.0000000000000000 0.3333333333333332
|
||||||
|
0.0000000000000000 1.0000000000000000 0.6666666666666666
|
||||||
|
0.0000000000000000 1.0000000000000000 0.3333333333333332
|
||||||
|
0.6666666666666666 1.0000000000000000 1.0000000000000000
|
||||||
|
0.3333333333333332 1.0000000000000000 1.0000000000000000
|
||||||
|
1.0000000000000000 0.0000000000000000 0.6666666666666666
|
||||||
|
1.0000000000000000 0.0000000000000000 0.3333333333333332
|
||||||
|
0.0000000000000000 0.0000000000000000 0.6666666666666666
|
||||||
|
0.0000000000000000 0.0000000000000000 0.3333333333333332
|
||||||
|
1.0000000000000000 0.3333333333333333 1.0000000000000000
|
||||||
|
1.0000000000000000 0.6666666666666666 1.0000000000000000
|
||||||
|
0.0000000000000000 0.3333333333333333 1.0000000000000000
|
||||||
|
0.0000000000000000 0.6666666666666666 1.0000000000000000
|
||||||
|
0.6666666666666666 1.0000000000000000 0.0000000000000000
|
||||||
|
0.3333333333333332 1.0000000000000000 0.0000000000000000
|
||||||
|
0.6666666666666666 0.0000000000000000 1.0000000000000000
|
||||||
|
0.3333333333333332 0.0000000000000000 1.0000000000000000
|
||||||
|
0.6666666666666666 0.0000000000000000 0.0000000000000000
|
||||||
|
0.3333333333333332 0.0000000000000000 0.0000000000000000
|
||||||
|
0.3453764872152520 0.4289616495406477 0.0000000000000000
|
||||||
|
0.2363722957339057 0.7629978630944177 0.0000000000000000
|
||||||
|
0.7093903868425258 0.4777271339652773 0.0000000000000000
|
||||||
|
0.7767853874295251 0.7740629504580570 0.0000000000000000
|
||||||
|
0.5093916952832738 0.7373846519656869 0.0000000000000000
|
||||||
|
0.0000000000000000 0.5848322921574791 0.2973390248238796
|
||||||
|
0.0000000000000000 0.6376771832790789 0.6256884212430072
|
||||||
|
0.0000000000000000 0.3078273776201016 0.4901690889415314
|
||||||
|
0.6546235127847480 1.0000000000000000 0.5710383504593523
|
||||||
|
0.7636277042660942 1.0000000000000000 0.2370021369055823
|
||||||
|
0.2906096131574742 1.0000000000000000 0.5222728660347228
|
||||||
|
0.2232146125704748 1.0000000000000000 0.2259370495419430
|
||||||
|
0.4906083047167261 1.0000000000000000 0.2626153480343131
|
||||||
|
0.5226154526972956 0.6723847618372673 1.0000000000000000
|
||||||
|
0.7303054535238108 0.3470956979891270 1.0000000000000000
|
||||||
|
0.3846043860484825 0.3457533069880933 1.0000000000000000
|
||||||
|
0.6545492698511188 0.0000000000000000 0.5710115507028192
|
||||||
|
0.7635147493753501 0.0000000000000000 0.2370411648783929
|
||||||
|
0.2904642514608775 0.0000000000000000 0.5222189640348618
|
||||||
|
0.2231265594790997 0.0000000000000000 0.2258767298015257
|
||||||
|
0.4905217481815927 0.0000000000000000 0.2626047101435547
|
||||||
|
1.0000000000000000 0.5848322921574791 0.2973390248238796
|
||||||
|
1.0000000000000000 0.6376771832790789 0.6256884212430072
|
||||||
|
1.0000000000000000 0.3078273776201016 0.4901690889415314
|
||||||
|
0.4272276804008159 0.3426052995823172 0.4176406498588326
|
||||||
|
0.7299469195459262 0.2730082184471636 0.2789191388190804
|
||||||
|
0.3202369865656342 0.7063322531411742 0.4178510398137523
|
||||||
|
0.4187321713884653 0.2791900408384976 0.7467956942298275
|
||||||
|
0.6883019035327874 0.6532015011171384 0.3389153362395730
|
||||||
|
0.2848826858717337 0.6291905246270143 0.7492446890085234
|
||||||
|
0.7505520006346695 0.2364072052628841 0.7265283730519375
|
||||||
|
0.6904080728530597 0.5313023561184044 0.6778821530260029
|
||||||
|
0.2153574046463540 0.2182196460363049 0.2340094009251045
|
||||||
|
|
||||||
|
|
||||||
|
# pnum index
|
||||||
|
pointelements
|
||||||
|
0
|
||||||
|
identifications
|
||||||
|
15
|
||||||
|
1 3 1
|
||||||
|
2 5 1
|
||||||
|
4 7 1
|
||||||
|
6 8 1
|
||||||
|
9 11 1
|
||||||
|
10 12 1
|
||||||
|
15 13 1
|
||||||
|
16 14 1
|
||||||
|
21 19 1
|
||||||
|
22 20 1
|
||||||
|
25 23 1
|
||||||
|
26 24 1
|
||||||
|
38 54 1
|
||||||
|
39 55 1
|
||||||
|
40 56 1
|
||||||
|
identificationtypes
|
||||||
|
1
|
||||||
|
2
|
||||||
|
|
||||||
|
|
||||||
|
bcnames
|
||||||
|
6
|
||||||
|
1 outer
|
||||||
|
2 default
|
||||||
|
3 default
|
||||||
|
4 outer
|
||||||
|
5 outer
|
||||||
|
6 outer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Surfnr Red Green Blue
|
||||||
|
face_colours
|
||||||
|
6
|
||||||
|
1 0.00000000 1.00000000 0.00000000
|
||||||
|
7 0.00000000 1.00000000 0.00000000
|
||||||
|
8 0.00000000 1.00000000 0.00000000
|
||||||
|
4 0.00000000 1.00000000 0.00000000
|
||||||
|
2 0.00000000 1.00000000 0.00000000
|
||||||
|
3 0.00000000 1.00000000 0.00000000
|
||||||
|
|
||||||
|
|
||||||
|
endmesh
|
||||||
|
|
||||||
|
csgsurfaces 8
|
||||||
|
plane 6
|
||||||
|
-1.00000000 0.00000000 0.00000000 0.00000000 0.00000000 -1.00000000
|
||||||
|
plane 6
|
||||||
|
-1.00000000 0.00000000 1.00000000 0.00000000 0.00000000 1.00000000
|
||||||
|
plane 6
|
||||||
|
-1.00000000 0.00000000 0.00000000 0.00000000 -1.00000000 0.00000000
|
||||||
|
plane 6
|
||||||
|
-1.00000000 1.00000000 0.00000000 0.00000000 1.00000000 0.00000000
|
||||||
|
plane 6
|
||||||
|
-1.00000000 0.00000000 0.00000000 -1.00000000 0.00000000 0.00000000
|
||||||
|
plane 6
|
||||||
|
2.00000000 0.00000000 0.00000000 1.00000000 0.00000000 0.00000000
|
||||||
|
plane 6
|
||||||
|
0.00000000 0.00000000 0.00000000 -1.00000000 0.00000000 0.00000000
|
||||||
|
plane 6
|
||||||
|
1.00000000 0.00000000 0.00000000 1.00000000 0.00000000 0.00000000
|
BIN
test/data/meshio_meshes/neuroglancer/simple1
Normal file
BIN
test/data/meshio_meshes/neuroglancer/simple1
Normal file
Binary file not shown.
2406
test/data/meshio_meshes/obj/elephav.obj
Normal file
2406
test/data/meshio_meshes/obj/elephav.obj
Normal file
File diff suppressed because it is too large
Load Diff
1413
test/data/meshio_meshes/ply/bun_zipper_res4.ply
Normal file
1413
test/data/meshio_meshes/ply/bun_zipper_res4.ply
Normal file
File diff suppressed because it is too large
Load Diff
22
test/data/meshio_meshes/ply/tet.ply
Normal file
22
test/data/meshio_meshes/ply/tet.ply
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
ply
|
||||||
|
format ascii 1.0
|
||||||
|
comment single tetrahedron with colored faces
|
||||||
|
element vertex 4
|
||||||
|
comment tetrahedron vertices
|
||||||
|
property float x
|
||||||
|
property float y
|
||||||
|
property float z
|
||||||
|
element face 4
|
||||||
|
property list uchar int vertex_indices
|
||||||
|
property uchar red
|
||||||
|
property uchar green
|
||||||
|
property uchar blue
|
||||||
|
end_header
|
||||||
|
0 0 0
|
||||||
|
0 1 1
|
||||||
|
1 0 1
|
||||||
|
1 1 0
|
||||||
|
3 0 1 2 255 255 255
|
||||||
|
3 0 2 3 255 0 0
|
||||||
|
3 0 1 3 0 255 0
|
||||||
|
3 1 2 3 0 0 255
|
2
test/data/meshio_meshes/su2/README.md
Normal file
2
test/data/meshio_meshes/su2/README.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
* `square.su2` : from https://su2code.github.io/docs_v7/Mesh-File/
|
||||||
|
* `mixgrid.su2` : generated using http://ossanworld.com/cfdbooks/cfdcodes/mixgrid_cube_v5.f90
|
73
test/data/meshio_meshes/su2/mixgrid.su2
Normal file
73
test/data/meshio_meshes/su2/mixgrid.su2
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
%
|
||||||
|
% Problem dimension
|
||||||
|
%
|
||||||
|
NDIME= 3
|
||||||
|
%
|
||||||
|
% Inner element connectivity
|
||||||
|
NELEM= 10
|
||||||
|
10 2 6 3 11 0
|
||||||
|
10 6 7 3 11 1
|
||||||
|
10 14 10 11 6 2
|
||||||
|
10 14 11 15 6 3
|
||||||
|
10 2 10 6 11 4
|
||||||
|
10 6 15 7 11 5
|
||||||
|
13 4 8 0 5 9 1 6
|
||||||
|
13 12 8 4 13 9 5 7
|
||||||
|
13 5 9 1 6 10 2 8
|
||||||
|
13 13 9 5 14 10 6 9
|
||||||
|
%
|
||||||
|
% Node coordinates
|
||||||
|
%
|
||||||
|
NPOIN= 16
|
||||||
|
0.000000000000000E+00 0.000000000000000E+00 0.000000000000000E+00
|
||||||
|
0.000000000000000E+00 0.000000000000000E+00 1.500000000000000E-01
|
||||||
|
0.000000000000000E+00 0.000000000000000E+00 3.000000000000000E-01
|
||||||
|
0.000000000000000E+00 0.000000000000000E+00 1.000000000000000E+00
|
||||||
|
0.000000000000000E+00 1.000000000000000E+00 0.000000000000000E+00
|
||||||
|
0.000000000000000E+00 1.000000000000000E+00 1.500000000000000E-01
|
||||||
|
0.000000000000000E+00 1.000000000000000E+00 3.000000000000000E-01
|
||||||
|
0.000000000000000E+00 1.000000000000000E+00 1.000000000000000E+00
|
||||||
|
1.000000000000000E+00 0.000000000000000E+00 0.000000000000000E+00
|
||||||
|
1.000000000000000E+00 0.000000000000000E+00 1.500000000000000E-01
|
||||||
|
1.000000000000000E+00 0.000000000000000E+00 3.000000000000000E-01
|
||||||
|
1.000000000000000E+00 0.000000000000000E+00 1.000000000000000E+00
|
||||||
|
1.000000000000000E+00 1.000000000000000E+00 0.000000000000000E+00
|
||||||
|
1.000000000000000E+00 1.000000000000000E+00 1.500000000000000E-01
|
||||||
|
1.000000000000000E+00 1.000000000000000E+00 3.000000000000000E-01
|
||||||
|
1.000000000000000E+00 1.000000000000000E+00 1.000000000000000E+00
|
||||||
|
%
|
||||||
|
% Boundary elements
|
||||||
|
%
|
||||||
|
NMARK= 6
|
||||||
|
MARKER_TAG= xmin
|
||||||
|
MARKER_ELEMS= 4
|
||||||
|
5 6 7 3
|
||||||
|
5 6 3 2
|
||||||
|
9 0 4 5 1
|
||||||
|
9 1 5 6 2
|
||||||
|
MARKER_TAG= xmax
|
||||||
|
MARKER_ELEMS= 4
|
||||||
|
5 14 10 11
|
||||||
|
5 14 11 15
|
||||||
|
9 12 8 9 13
|
||||||
|
9 13 9 10 14
|
||||||
|
MARKER_TAG= ymin
|
||||||
|
MARKER_ELEMS= 4
|
||||||
|
5 2 3 11
|
||||||
|
5 2 11 10
|
||||||
|
9 8 0 1 9
|
||||||
|
9 9 1 2 10
|
||||||
|
MARKER_TAG= ymax
|
||||||
|
MARKER_ELEMS= 4
|
||||||
|
5 6 14 15
|
||||||
|
5 6 15 7
|
||||||
|
9 4 12 13 5
|
||||||
|
9 5 13 14 6
|
||||||
|
MARKER_TAG= zmin
|
||||||
|
MARKER_ELEMS= 2
|
||||||
|
5 4 0 8
|
||||||
|
5 4 8 12
|
||||||
|
MARKER_TAG= zmax
|
||||||
|
MARKER_ELEMS= 2
|
||||||
|
5 7 15 11
|
||||||
|
5 7 11 3
|
49
test/data/meshio_meshes/su2/square.su2
Normal file
49
test/data/meshio_meshes/su2/square.su2
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
%
|
||||||
|
% Problem dimension
|
||||||
|
%
|
||||||
|
NDIME= 2
|
||||||
|
%
|
||||||
|
% Inner element connectivity
|
||||||
|
%
|
||||||
|
NELEM= 8
|
||||||
|
5 0 1 3 0
|
||||||
|
5 1 4 3 1
|
||||||
|
5 1 2 4 2
|
||||||
|
5 2 5 4 3
|
||||||
|
5 3 4 6 4
|
||||||
|
5 4 7 6 5
|
||||||
|
5 4 5 7 6
|
||||||
|
5 5 8 7 7
|
||||||
|
%
|
||||||
|
% Node coordinates
|
||||||
|
%
|
||||||
|
NPOIN= 9
|
||||||
|
0.00000000000000 0.00000000000000 0
|
||||||
|
0.50000000000000 0.00000000000000 1
|
||||||
|
1.00000000000000 0.00000000000000 2
|
||||||
|
0.00000000000000 0.50000000000000 3
|
||||||
|
0.50000000000000 0.50000000000000 4
|
||||||
|
1.00000000000000 0.50000000000000 5
|
||||||
|
0.00000000000000 1.00000000000000 6
|
||||||
|
0.50000000000000 1.00000000000000 7
|
||||||
|
1.00000000000000 1.00000000000000 8
|
||||||
|
%
|
||||||
|
% Boundary elements
|
||||||
|
%
|
||||||
|
NMARK= 4
|
||||||
|
MARKER_TAG= lower
|
||||||
|
MARKER_ELEMS= 2
|
||||||
|
3 0 1
|
||||||
|
3 1 2
|
||||||
|
MARKER_TAG= right
|
||||||
|
MARKER_ELEMS= 2
|
||||||
|
3 2 5
|
||||||
|
3 5 8
|
||||||
|
MARKER_TAG= upper
|
||||||
|
MARKER_ELEMS= 2
|
||||||
|
3 8 7
|
||||||
|
3 7 6
|
||||||
|
MARKER_TAG= left
|
||||||
|
MARKER_ELEMS= 2
|
||||||
|
3 6 3
|
||||||
|
3 3 0
|
14
test/data/meshio_meshes/tecplot/quad_zone_comma.tec
Normal file
14
test/data/meshio_meshes/tecplot/quad_zone_comma.tec
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
TITLE = "Zone and variables separated by commas"
|
||||||
|
VARIABLES = X, Y, "foo bar", foobar
|
||||||
|
# Random comment
|
||||||
|
ZONE N=4, E =1,ET= QUADRILATERAL , T = "Hex with commas"
|
||||||
|
# Random comment
|
||||||
|
, F = FEBLOCK, VARLOCATION =( [4]= CELLCENTERED )
|
||||||
|
0.0 1.0 1.0 0.0
|
||||||
|
0.0 0.0 1.0 1.0
|
||||||
|
# Random comment
|
||||||
|
1.0 2.0 3.0 4.0
|
||||||
|
# Random comment
|
||||||
|
42.0
|
||||||
|
# Random comment
|
||||||
|
1 2 3 4
|
16
test/data/meshio_meshes/tecplot/quad_zone_multivar.tec
Normal file
16
test/data/meshio_meshes/tecplot/quad_zone_multivar.tec
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
TITLE = "Zone and variables separated by commas"
|
||||||
|
VARIABLES = "X", "Y",
|
||||||
|
"foo bar",
|
||||||
|
"foobar"
|
||||||
|
# Random comment
|
||||||
|
ZONE N=4, E =1,ET= QUADRILATERAL , T = "Hex with commas"
|
||||||
|
# Random comment
|
||||||
|
, F = FEBLOCK, VARLOCATION =( [4]= CELLCENTERED )
|
||||||
|
0.0 1.0 1.0 0.0
|
||||||
|
0.0 0.0 1.0 1.0
|
||||||
|
# Random comment
|
||||||
|
1.0 2.0 3.0 4.0
|
||||||
|
# Random comment
|
||||||
|
42.0
|
||||||
|
# Random comment
|
||||||
|
1 2 3 4
|
14
test/data/meshio_meshes/tecplot/quad_zone_space.tec
Normal file
14
test/data/meshio_meshes/tecplot/quad_zone_space.tec
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
TITLE = "Zone and variables separated by white spaces"
|
||||||
|
VARIABLES = X Y "foo bar" foobar
|
||||||
|
# Random comment
|
||||||
|
ZONE T = "VARLOCATION" N=4 E =1 ET= QUADRILATERAL
|
||||||
|
# Random comment
|
||||||
|
F = FEBLOCK VARLOCATION =( [4]= CELLCENTERED )
|
||||||
|
0.0 1.0 1.0 0.0
|
||||||
|
0.0 0.0 1.0 1.0
|
||||||
|
# Random comment
|
||||||
|
1.0 2.0 3.0 4.0
|
||||||
|
# Random comment
|
||||||
|
42.0
|
||||||
|
# Random comment
|
||||||
|
1 2 3 4
|
307
test/data/meshio_meshes/tetgen/mesh.ele
Normal file
307
test/data/meshio_meshes/tetgen/mesh.ele
Normal file
@ -0,0 +1,307 @@
|
|||||||
|
# This file was created by meshio v4.1.0
|
||||||
|
# attribute names: medit:ref
|
||||||
|
304 4 1
|
||||||
|
0 41 35 40 42 2
|
||||||
|
1 50 36 46 45 2
|
||||||
|
2 40 54 41 42 2
|
||||||
|
3 41 54 44 43 2
|
||||||
|
4 56 40 35 38 2
|
||||||
|
5 55 51 50 37 2
|
||||||
|
6 42 35 40 38 2
|
||||||
|
7 50 51 55 36 2
|
||||||
|
8 54 41 48 43 2
|
||||||
|
9 52 56 35 38 2
|
||||||
|
10 46 36 49 45 2
|
||||||
|
11 41 48 43 42 2
|
||||||
|
12 41 54 48 42 2
|
||||||
|
13 53 55 51 36 2
|
||||||
|
14 47 49 36 45 2
|
||||||
|
15 35 42 52 38 2
|
||||||
|
16 42 40 54 39 2
|
||||||
|
17 54 48 42 38 2
|
||||||
|
18 20 56 35 52 2
|
||||||
|
19 38 56 40 39 2
|
||||||
|
20 50 55 13 36 2
|
||||||
|
21 49 43 48 46 2
|
||||||
|
22 40 42 38 39 2
|
||||||
|
23 53 51 49 36 2
|
||||||
|
24 49 0 51 53 2
|
||||||
|
25 36 51 49 47 2
|
||||||
|
26 35 40 56 19 2
|
||||||
|
27 49 16 43 46 2
|
||||||
|
28 48 54 16 38 2
|
||||||
|
29 38 42 54 39 2
|
||||||
|
30 12 55 50 37 2
|
||||||
|
31 13 55 14 36 2
|
||||||
|
32 55 51 0 53 2
|
||||||
|
33 38 54 16 39 2
|
||||||
|
34 18 56 40 19 2
|
||||||
|
35 54 44 16 47 2
|
||||||
|
36 19 56 35 20 2
|
||||||
|
37 43 48 16 49 2
|
||||||
|
38 51 55 11 37 2
|
||||||
|
39 50 13 55 12 2
|
||||||
|
40 55 12 11 37 2
|
||||||
|
41 51 16 0 49 2
|
||||||
|
42 38 16 1 39 2
|
||||||
|
43 55 53 14 36 2
|
||||||
|
44 51 55 10 11 2
|
||||||
|
45 53 0 55 15 2
|
||||||
|
46 52 20 56 21 2
|
||||||
|
47 49 51 16 47 2
|
||||||
|
48 38 1 56 39 2
|
||||||
|
49 40 56 18 39 2
|
||||||
|
50 55 53 15 14 2
|
||||||
|
51 0 51 55 10 2
|
||||||
|
52 56 18 39 17 2
|
||||||
|
53 39 1 56 17 2
|
||||||
|
54 22 1 56 38 2
|
||||||
|
55 56 52 21 38 2
|
||||||
|
56 22 56 21 38 2
|
||||||
|
57 45 47 43 44 2
|
||||||
|
58 16 43 47 44 2
|
||||||
|
59 36 45 51 47 2
|
||||||
|
60 36 51 45 50 2
|
||||||
|
61 37 51 45 47 2
|
||||||
|
62 37 45 51 50 2
|
||||||
|
63 43 45 16 47 2
|
||||||
|
64 43 16 45 46 2
|
||||||
|
65 49 16 45 47 2
|
||||||
|
66 49 45 16 46 2
|
||||||
|
67 43 16 54 44 2
|
||||||
|
68 43 54 16 48 2
|
||||||
|
69 43 48 73 42 1
|
||||||
|
70 74 41 35 40 1
|
||||||
|
71 45 50 37 75 1
|
||||||
|
72 54 44 65 41 1
|
||||||
|
73 35 62 74 40 1
|
||||||
|
74 75 45 44 68 1
|
||||||
|
75 41 74 65 40 1
|
||||||
|
76 48 77 73 42 1
|
||||||
|
77 44 74 65 41 1
|
||||||
|
78 41 65 54 40 1
|
||||||
|
79 75 37 45 68 1
|
||||||
|
80 37 50 12 86 1
|
||||||
|
81 32 46 48 76 1
|
||||||
|
82 50 37 75 86 1
|
||||||
|
83 37 47 45 68 1
|
||||||
|
84 43 44 74 45 1
|
||||||
|
85 45 47 44 68 1
|
||||||
|
86 80 46 48 32 1
|
||||||
|
87 35 41 74 42 1
|
||||||
|
88 46 36 50 76 1
|
||||||
|
89 42 63 35 52 1
|
||||||
|
90 62 40 18 64 1
|
||||||
|
91 40 35 62 19 1
|
||||||
|
92 36 46 80 76 1
|
||||||
|
93 37 11 88 86 1
|
||||||
|
94 42 77 73 52 1
|
||||||
|
95 50 46 76 45 1
|
||||||
|
96 85 36 80 76 1
|
||||||
|
97 62 65 74 40 1
|
||||||
|
98 76 46 43 45 1
|
||||||
|
99 65 44 54 68 1
|
||||||
|
100 76 50 45 75 1
|
||||||
|
101 73 77 48 32 1
|
||||||
|
102 45 44 74 75 1
|
||||||
|
103 54 44 47 68 1
|
||||||
|
104 51 67 16 47 1
|
||||||
|
105 16 71 29 67 1
|
||||||
|
106 75 12 50 86 1
|
||||||
|
107 68 75 37 86 1
|
||||||
|
108 32 48 73 76 1
|
||||||
|
109 43 74 41 42 1
|
||||||
|
110 44 27 75 68 1
|
||||||
|
111 40 18 64 39 1
|
||||||
|
112 37 88 51 28 1
|
||||||
|
113 76 85 36 87 1
|
||||||
|
114 67 16 71 51 1
|
||||||
|
115 65 27 44 68 1
|
||||||
|
116 73 35 74 42 1
|
||||||
|
117 49 82 0 53 1
|
||||||
|
118 41 44 74 43 1
|
||||||
|
119 67 66 16 47 1
|
||||||
|
120 19 35 62 25 1
|
||||||
|
121 70 2 60 29 1
|
||||||
|
122 60 66 70 29 1
|
||||||
|
123 66 60 2 29 1
|
||||||
|
124 76 36 50 87 1
|
||||||
|
125 79 72 30 49 1
|
||||||
|
126 43 74 76 45 1
|
||||||
|
127 57 60 39 70 1
|
||||||
|
128 77 61 73 52 1
|
||||||
|
129 65 27 74 44 1
|
||||||
|
130 34 83 8 79 1
|
||||||
|
131 4 26 78 59 1
|
||||||
|
132 65 54 40 39 1
|
||||||
|
133 43 73 74 42 1
|
||||||
|
134 80 48 77 32 1
|
||||||
|
135 27 74 44 75 1
|
||||||
|
136 35 74 62 25 1
|
||||||
|
137 40 62 23 64 1
|
||||||
|
138 53 14 36 85 1
|
||||||
|
139 86 88 37 28 1
|
||||||
|
140 73 63 35 42 1
|
||||||
|
141 79 30 78 49 1
|
||||||
|
142 51 16 71 81 1
|
||||||
|
143 66 39 60 70 1
|
||||||
|
144 50 33 12 75 1
|
||||||
|
145 29 66 16 67 1
|
||||||
|
146 52 77 61 38 1
|
||||||
|
147 66 54 16 47 1
|
||||||
|
148 71 70 16 29 1
|
||||||
|
149 23 40 64 39 1
|
||||||
|
150 80 46 32 76 1
|
||||||
|
151 71 67 51 84 1
|
||||||
|
152 73 63 42 52 1
|
||||||
|
153 60 57 2 70 1
|
||||||
|
154 16 78 69 72 1
|
||||||
|
155 69 78 30 72 1
|
||||||
|
156 85 80 9 76 1
|
||||||
|
157 16 48 38 78 1
|
||||||
|
158 11 88 51 37 1
|
||||||
|
159 83 72 8 79 1
|
||||||
|
160 60 2 23 66 1
|
||||||
|
161 54 39 66 70 1
|
||||||
|
162 69 38 16 58 1
|
||||||
|
163 84 7 67 28 1
|
||||||
|
164 36 34 53 85 1
|
||||||
|
165 38 78 59 69 1
|
||||||
|
166 72 16 78 49 1
|
||||||
|
167 78 38 16 69 1
|
||||||
|
168 59 78 4 69 1
|
||||||
|
169 72 78 30 49 1
|
||||||
|
170 69 59 38 58 1
|
||||||
|
171 39 54 16 70 1
|
||||||
|
172 84 51 71 81 1
|
||||||
|
173 9 85 76 87 1
|
||||||
|
174 63 73 61 52 1
|
||||||
|
175 47 37 51 68 1
|
||||||
|
176 8 82 72 83 1
|
||||||
|
177 68 6 75 86 1
|
||||||
|
178 65 3 62 74 1
|
||||||
|
179 58 16 69 70 1
|
||||||
|
180 0 16 51 81 1
|
||||||
|
181 36 53 34 80 1
|
||||||
|
182 16 48 78 49 1
|
||||||
|
183 66 16 54 70 1
|
||||||
|
184 43 74 73 76 1
|
||||||
|
185 70 66 16 29 1
|
||||||
|
186 65 62 23 40 1
|
||||||
|
187 80 9 34 85 1
|
||||||
|
188 35 25 63 73 1
|
||||||
|
189 45 74 76 75 1
|
||||||
|
190 72 82 16 49 1
|
||||||
|
191 74 3 62 25 1
|
||||||
|
192 87 76 9 33 1
|
||||||
|
193 40 23 65 39 1
|
||||||
|
194 67 71 7 84 1
|
||||||
|
195 15 53 83 14 1
|
||||||
|
196 57 1 16 39 1
|
||||||
|
197 1 16 38 58 1
|
||||||
|
198 32 9 80 76 1
|
||||||
|
199 82 0 16 49 1
|
||||||
|
200 25 35 74 73 1
|
||||||
|
201 31 81 71 72 1
|
||||||
|
202 49 53 36 80 1
|
||||||
|
203 72 30 8 79 1
|
||||||
|
204 75 27 6 68 1
|
||||||
|
205 53 83 82 15 1
|
||||||
|
206 75 6 33 86 1
|
||||||
|
207 2 57 24 70 1
|
||||||
|
208 86 68 6 28 1
|
||||||
|
209 50 76 33 75 1
|
||||||
|
210 39 16 57 70 1
|
||||||
|
211 49 36 46 80 1
|
||||||
|
212 37 68 86 28 1
|
||||||
|
213 1 16 58 70 1
|
||||||
|
214 68 37 51 28 1
|
||||||
|
215 82 31 8 72 1
|
||||||
|
216 3 65 27 74 1
|
||||||
|
217 30 4 78 69 1
|
||||||
|
218 26 61 5 77 1
|
||||||
|
219 29 71 7 67 1
|
||||||
|
220 63 25 5 73 1
|
||||||
|
221 34 36 80 85 1
|
||||||
|
222 21 52 61 38 1
|
||||||
|
223 82 16 0 72 1
|
||||||
|
224 81 71 7 31 1
|
||||||
|
225 38 48 77 78 1
|
||||||
|
226 33 12 75 86 1
|
||||||
|
227 47 66 54 68 1
|
||||||
|
228 66 65 54 68 1
|
||||||
|
229 67 51 84 88 1
|
||||||
|
230 65 54 39 66 1
|
||||||
|
231 39 60 64 66 1
|
||||||
|
232 67 51 88 28 1
|
||||||
|
233 24 58 69 70 1
|
||||||
|
234 48 49 46 80 1
|
||||||
|
235 78 48 77 80 1
|
||||||
|
236 51 67 47 68 1
|
||||||
|
237 84 71 7 81 1
|
||||||
|
238 57 16 1 70 1
|
||||||
|
239 77 73 5 32 1
|
||||||
|
240 14 53 34 85 1
|
||||||
|
241 62 23 3 65 1
|
||||||
|
242 13 50 36 87 1
|
||||||
|
243 58 69 4 24 1
|
||||||
|
244 31 0 81 72 1
|
||||||
|
245 63 19 35 20 1
|
||||||
|
246 47 67 66 68 1
|
||||||
|
247 53 82 0 15 1
|
||||||
|
248 82 0 31 72 1
|
||||||
|
249 60 23 64 66 1
|
||||||
|
250 13 50 87 12 1
|
||||||
|
251 1 58 24 70 1
|
||||||
|
252 50 76 87 33 1
|
||||||
|
253 24 57 1 70 1
|
||||||
|
254 77 26 61 38 1
|
||||||
|
255 20 35 63 52 1
|
||||||
|
256 51 67 68 28 1
|
||||||
|
257 61 73 5 77 1
|
||||||
|
258 88 84 67 28 1
|
||||||
|
259 48 78 49 80 1
|
||||||
|
260 4 59 69 58 1
|
||||||
|
261 22 38 59 58 1
|
||||||
|
262 21 22 38 59 1
|
||||||
|
263 70 16 69 72 1
|
||||||
|
264 77 26 38 78 1
|
||||||
|
265 39 23 65 66 1
|
||||||
|
266 73 5 63 61 1
|
||||||
|
267 39 64 23 66 1
|
||||||
|
268 78 79 49 80 1
|
||||||
|
269 39 60 57 17 1
|
||||||
|
270 78 26 38 59 1
|
||||||
|
271 53 34 83 14 1
|
||||||
|
272 21 61 26 38 1
|
||||||
|
273 57 1 39 17 1
|
||||||
|
274 33 87 50 12 1
|
||||||
|
275 25 19 35 63 1
|
||||||
|
276 84 10 51 81 1
|
||||||
|
277 38 22 1 58 1
|
||||||
|
278 71 16 70 72 1
|
||||||
|
279 85 13 36 87 1
|
||||||
|
280 10 0 51 81 1
|
||||||
|
281 14 13 36 85 1
|
||||||
|
282 38 26 21 59 1
|
||||||
|
283 51 10 84 88 1
|
||||||
|
284 88 51 10 11 1
|
||||||
|
285 64 60 39 17 1
|
||||||
|
286 52 61 20 21 1
|
||||||
|
287 18 40 62 19 1
|
||||||
|
288 12 11 37 86 1
|
||||||
|
289 20 63 61 52 1
|
||||||
|
290 18 64 39 17 1
|
||||||
|
291 76 48 43 46 1
|
||||||
|
292 76 43 48 73 1
|
||||||
|
293 42 38 77 52 1
|
||||||
|
294 77 38 42 48 1
|
||||||
|
295 79 49 83 72 1
|
||||||
|
296 82 83 49 72 1
|
||||||
|
297 82 49 83 53 1
|
||||||
|
298 81 16 72 0 1
|
||||||
|
299 81 72 16 71 1
|
||||||
|
300 49 83 80 79 1
|
||||||
|
301 49 80 83 53 1
|
||||||
|
302 34 80 83 79 1
|
||||||
|
303 34 83 80 53 1
|
92
test/data/meshio_meshes/tetgen/mesh.node
Normal file
92
test/data/meshio_meshes/tetgen/mesh.node
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
# This file was created by meshio v4.1.0
|
||||||
|
# attribute and marker names: moje_data, medit:ref
|
||||||
|
89 3 1 1
|
||||||
|
0 1.0000000000000000e+00 5.0000000000000000e-01 6.9999998807907104e-01 0.0000000000000000e+00 0
|
||||||
|
1 0.0000000000000000e+00 5.0000000000000000e-01 6.9999998807907104e-01 0.0000000000000000e+00 0
|
||||||
|
2 0.0000000000000000e+00 0.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
3 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
4 0.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
5 0.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
6 1.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
7 1.0000000000000000e+00 0.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
8 1.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
9 1.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
10 1.0000000000000000e+00 3.4363371133804321e-01 6.2469798326492310e-01 0.0000000000000000e+00 0
|
||||||
|
11 1.0000000000000000e+00 3.0501440167427063e-01 4.5549580454826355e-01 0.0000000000000000e+00 0
|
||||||
|
12 1.0000000000000000e+00 4.1322329640388489e-01 3.1980618834495544e-01 0.0000000000000000e+00 0
|
||||||
|
13 1.0000000000000000e+00 5.8677667379379272e-01 3.1980618834495544e-01 0.0000000000000000e+00 0
|
||||||
|
14 1.0000000000000000e+00 6.9498562812805176e-01 4.5549580454826355e-01 0.0000000000000000e+00 0
|
||||||
|
15 1.0000000000000000e+00 6.5636628866195679e-01 6.2469798326492310e-01 0.0000000000000000e+00 0
|
||||||
|
16 5.0000000000000000e-01 5.0000000000000000e-01 6.9999998807907104e-01 0.0000000000000000e+00 0
|
||||||
|
17 0.0000000000000000e+00 3.4363371133804321e-01 6.2469798326492310e-01 0.0000000000000000e+00 0
|
||||||
|
18 0.0000000000000000e+00 3.0501440167427063e-01 4.5549580454826355e-01 0.0000000000000000e+00 0
|
||||||
|
19 0.0000000000000000e+00 4.1322329640388489e-01 3.1980618834495544e-01 0.0000000000000000e+00 0
|
||||||
|
20 0.0000000000000000e+00 5.8677667379379272e-01 3.1980618834495544e-01 0.0000000000000000e+00 0
|
||||||
|
21 0.0000000000000000e+00 6.9498562812805176e-01 4.5549580454826355e-01 0.0000000000000000e+00 0
|
||||||
|
22 0.0000000000000000e+00 6.5636628866195679e-01 6.2469798326492310e-01 0.0000000000000000e+00 0
|
||||||
|
23 0.0000000000000000e+00 0.0000000000000000e+00 5.0000000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
24 0.0000000000000000e+00 5.0000000000000000e-01 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
25 0.0000000000000000e+00 5.0000000000000000e-01 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
26 0.0000000000000000e+00 1.0000000000000000e+00 5.0000000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
27 5.0000000000000000e-01 0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
28 1.0000000000000000e+00 0.0000000000000000e+00 5.0000000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
29 5.0000000000000000e-01 0.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
30 5.0000000000000000e-01 1.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
31 1.0000000000000000e+00 5.0000000000000000e-01 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
32 5.0000000000000000e-01 1.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
33 1.0000000000000000e+00 5.0000000000000000e-01 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
34 1.0000000000000000e+00 1.0000000000000000e+00 5.0000000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
35 1.5536570549011230e-01 4.9953359365463257e-01 3.0000048875808716e-01 0.0000000000000000e+00 0
|
||||||
|
36 8.1072819232940674e-01 6.6186362504959106e-01 3.8252589106559753e-01 0.0000000000000000e+00 0
|
||||||
|
37 8.3570951223373413e-01 3.4318828582763672e-01 3.7586259841918945e-01 0.0000000000000000e+00 0
|
||||||
|
38 1.4899100363254547e-01 6.9498562812805176e-01 5.4450422525405884e-01 0.0000000000000000e+00 0
|
||||||
|
39 1.4899100363254547e-01 3.0501440167427063e-01 5.4450422525405884e-01 0.0000000000000000e+00 0
|
||||||
|
40 1.6211509704589844e-01 3.4222349524497986e-01 3.7709110975265503e-01 0.0000000000000000e+00 0
|
||||||
|
41 3.1894388794898987e-01 4.1364109516143799e-01 3.1960558891296387e-01 0.0000000000000000e+00 0
|
||||||
|
42 3.0048260092735291e-01 5.9788781404495239e-01 3.2559248805046082e-01 0.0000000000000000e+00 0
|
||||||
|
43 4.7484621405601501e-01 5.1894259452819824e-01 3.0089908838272095e-01 0.0000000000000000e+00 0
|
||||||
|
44 4.8751631379127502e-01 3.6032208800315857e-01 3.5685640573501587e-01 0.0000000000000000e+00 0
|
||||||
|
45 6.5104299783706665e-01 4.2482939362525940e-01 3.1466409564018250e-01 0.0000000000000000e+00 0
|
||||||
|
46 6.4090651273727417e-01 6.1140972375869751e-01 3.3390399813652039e-01 0.0000000000000000e+00 0
|
||||||
|
47 6.5412777662277222e-01 3.0226328969001770e-01 4.6999689936637878e-01 0.0000000000000000e+00 0
|
||||||
|
48 4.3121519684791565e-01 6.9295471906661987e-01 4.4738370180130005e-01 0.0000000000000000e+00 0
|
||||||
|
49 6.4405417442321777e-01 6.9429111480712891e-01 5.4744458198547363e-01 0.0000000000000000e+00 0
|
||||||
|
50 8.2820540666580200e-01 5.0739651918411255e-01 3.0013680458068848e-01 0.0000000000000000e+00 0
|
||||||
|
51 8.2212162017822266e-01 3.0967760086059570e-01 5.6146049499511719e-01 0.0000000000000000e+00 0
|
||||||
|
52 1.1974179744720459e-01 6.4263367652893066e-01 3.5980150103569031e-01 0.0000000000000000e+00 0
|
||||||
|
53 8.5100901126861572e-01 6.9498562812805176e-01 5.4450422525405884e-01 0.0000000000000000e+00 0
|
||||||
|
54 3.2907238602638245e-01 3.0151790380477905e-01 4.7540658712387085e-01 0.0000000000000000e+00 0
|
||||||
|
55 1.0000000000000000e+00 5.0000000000000000e-01 5.0000000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
56 0.0000000000000000e+00 5.0000000000000000e-01 5.0000000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
57 0.0000000000000000e+00 3.5660341382026672e-01 7.9776620864868164e-01 0.0000000000000000e+00 0
|
||||||
|
58 0.0000000000000000e+00 6.4339661598205566e-01 7.9776620864868164e-01 0.0000000000000000e+00 0
|
||||||
|
59 0.0000000000000000e+00 8.3515560626983643e-01 7.2511637210845947e-01 0.0000000000000000e+00 0
|
||||||
|
60 0.0000000000000000e+00 1.7500209808349609e-01 7.0604157447814941e-01 0.0000000000000000e+00 0
|
||||||
|
61 0.0000000000000000e+00 7.7878558635711670e-01 2.8744849562644958e-01 0.0000000000000000e+00 0
|
||||||
|
62 0.0000000000000000e+00 2.4160820245742798e-01 2.9393941164016724e-01 0.0000000000000000e+00 0
|
||||||
|
63 0.0000000000000000e+00 6.4330238103866577e-01 1.7870600521564484e-01 0.0000000000000000e+00 0
|
||||||
|
64 0.0000000000000000e+00 1.9976480305194855e-01 5.5565208196640015e-01 0.0000000000000000e+00 0
|
||||||
|
65 2.5000000000000000e-01 0.0000000000000000e+00 2.5000000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
66 3.7500000000000000e-01 0.0000000000000000e+00 6.2500000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
67 7.1875000000000000e-01 0.0000000000000000e+00 7.1875000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
68 6.5429687500000000e-01 0.0000000000000000e+00 3.4570309519767761e-01 0.0000000000000000e+00 0
|
||||||
|
69 2.5000000000000000e-01 7.5000000000000000e-01 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
70 3.7500000000000000e-01 3.7500000000000000e-01 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
71 7.1875000000000000e-01 2.8125000000000000e-01 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
72 6.5429687500000000e-01 6.5429687500000000e-01 1.0000000000000000e+00 0.0000000000000000e+00 1
|
||||||
|
73 2.5000000000000000e-01 7.5000000000000000e-01 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
74 3.7500000000000000e-01 3.7500000000000000e-01 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
75 7.1875000000000000e-01 2.8125000000000000e-01 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
76 6.5429687500000000e-01 6.5429687500000000e-01 0.0000000000000000e+00 0.0000000000000000e+00 0
|
||||||
|
77 2.5000000000000000e-01 1.0000000000000000e+00 2.5000000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
78 3.7500000000000000e-01 1.0000000000000000e+00 6.2500000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
79 7.1875000000000000e-01 1.0000000000000000e+00 7.1875000000000000e-01 0.0000000000000000e+00 0
|
||||||
|
80 6.5429687500000000e-01 1.0000000000000000e+00 3.4570309519767761e-01 0.0000000000000000e+00 0
|
||||||
|
81 1.0000000000000000e+00 3.5660341382026672e-01 7.9776620864868164e-01 0.0000000000000000e+00 0
|
||||||
|
82 1.0000000000000000e+00 6.4339661598205566e-01 7.9776620864868164e-01 0.0000000000000000e+00 0
|
||||||
|
83 1.0000000000000000e+00 8.3515560626983643e-01 7.2511637210845947e-01 0.0000000000000000e+00 0
|
||||||
|
84 1.0000000000000000e+00 1.7500209808349609e-01 7.0604157447814941e-01 0.0000000000000000e+00 0
|
||||||
|
85 1.0000000000000000e+00 7.7878558635711670e-01 2.8744849562644958e-01 0.0000000000000000e+00 0
|
||||||
|
86 1.0000000000000000e+00 2.4160820245742798e-01 2.9393941164016724e-01 0.0000000000000000e+00 0
|
||||||
|
87 1.0000000000000000e+00 6.4330238103866577e-01 1.7870600521564484e-01 0.0000000000000000e+00 0
|
||||||
|
88 1.0000000000000000e+00 1.9976480305194855e-01 5.5565208196640015e-01 0.0000000000000000e+00 0
|
BIN
test/data/meshio_meshes/ugrid/hch_strct.4.lb8.ugrid
Normal file
BIN
test/data/meshio_meshes/ugrid/hch_strct.4.lb8.ugrid
Normal file
Binary file not shown.
16
test/data/meshio_meshes/ugrid/pyra_cube.ugrid
Normal file
16
test/data/meshio_meshes/ugrid/pyra_cube.ugrid
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
9 0 0 0 6 0 0
|
||||||
|
0.0 0.0 0.0
|
||||||
|
1.0 0.0 0.0
|
||||||
|
0.0 1.0 0.0
|
||||||
|
1.0 1.0 0.0
|
||||||
|
0.0 0.0 1.0
|
||||||
|
1.0 0.0 1.0
|
||||||
|
0.0 1.0 1.0
|
||||||
|
1.0 1.0 1.0
|
||||||
|
0.5 0.5 0.5
|
||||||
|
2 1 9 4 3
|
||||||
|
6 8 9 5 7
|
||||||
|
6 2 9 8 4
|
||||||
|
5 1 9 6 2
|
||||||
|
3 1 9 7 5
|
||||||
|
7 8 9 3 4
|
BIN
test/data/meshio_meshes/ugrid/sphere_mixed.1.lb8.ugrid
Normal file
BIN
test/data/meshio_meshes/ugrid/sphere_mixed.1.lb8.ugrid
Normal file
Binary file not shown.
110
test/data/meshio_meshes/vtk/00_image.vtk
Normal file
110
test/data/meshio_meshes/vtk/00_image.vtk
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
# vtk DataFile Version 3.4
|
||||||
|
Image
|
||||||
|
ASCII
|
||||||
|
DATASET STRUCTURED_POINTS
|
||||||
|
DIMENSIONS 10 10 1
|
||||||
|
ORIGIN 0.0 0.0 0.0
|
||||||
|
SPACING 0.5 0.5 0.0
|
||||||
|
POINT_DATA 100
|
||||||
|
SCALARS transmissivity float 1
|
||||||
|
LOOKUP_TABLE default
|
||||||
|
0.298739662586
|
||||||
|
0.279131445489
|
||||||
|
0.291060629758
|
||||||
|
0.209081029997
|
||||||
|
0.167312512876
|
||||||
|
0.17295265379
|
||||||
|
0.2100958905
|
||||||
|
0.203211077558
|
||||||
|
0.194905559894
|
||||||
|
0.194502141846
|
||||||
|
0.131241923907
|
||||||
|
0.19249787806
|
||||||
|
0.200954738051
|
||||||
|
0.155585026284
|
||||||
|
0.182841950501
|
||||||
|
0.187871957767
|
||||||
|
0.207598852496
|
||||||
|
0.195911898513
|
||||||
|
0.208253505857
|
||||||
|
0.1920442551
|
||||||
|
0.202996450184
|
||||||
|
0.252721080135
|
||||||
|
0.23671796761
|
||||||
|
0.233189895756
|
||||||
|
0.270186702166
|
||||||
|
0.272931816024
|
||||||
|
0.270380706188
|
||||||
|
0.235920429082
|
||||||
|
0.295855745957
|
||||||
|
0.262264695111
|
||||||
|
0.259718930583
|
||||||
|
0.230059095126
|
||||||
|
0.234317359927
|
||||||
|
0.237685617976
|
||||||
|
0.214377778761
|
||||||
|
0.212776562413
|
||||||
|
0.191132637109
|
||||||
|
0.190419933446
|
||||||
|
0.19304295094
|
||||||
|
0.219138618799
|
||||||
|
0.280266184206
|
||||||
|
0.232735721002
|
||||||
|
0.2013628867
|
||||||
|
0.242265369993
|
||||||
|
0.204605952014
|
||||||
|
0.217593655281
|
||||||
|
0.257883000267
|
||||||
|
0.265031911042
|
||||||
|
0.252164884194
|
||||||
|
0.274015475987
|
||||||
|
0.258132330746
|
||||||
|
0.258587001316
|
||||||
|
0.20202912732
|
||||||
|
0.177675067263
|
||||||
|
0.172328034934
|
||||||
|
0.207081436701
|
||||||
|
0.280701097154
|
||||||
|
0.236035028008
|
||||||
|
0.22751839086
|
||||||
|
0.198225008225
|
||||||
|
0.166977802309
|
||||||
|
0.167918014212
|
||||||
|
0.171268784021
|
||||||
|
0.162286321399
|
||||||
|
0.225587172718
|
||||||
|
0.255948616943
|
||||||
|
0.169888780058
|
||||||
|
0.131652207091
|
||||||
|
0.164775824684
|
||||||
|
0.225934163991
|
||||||
|
0.235147380819
|
||||||
|
0.306821054112
|
||||||
|
0.26003544081
|
||||||
|
0.247473520841
|
||||||
|
0.24507626514
|
||||||
|
0.199585971691
|
||||||
|
0.146278300724
|
||||||
|
0.146749272746
|
||||||
|
0.227855782454
|
||||||
|
0.243324810464
|
||||||
|
0.263984406253
|
||||||
|
0.202267248848
|
||||||
|
0.185525164757
|
||||||
|
0.207851666271
|
||||||
|
0.22789498338
|
||||||
|
0.175890885834
|
||||||
|
0.158555750876
|
||||||
|
0.251900632165
|
||||||
|
0.213176490915
|
||||||
|
0.204000194234
|
||||||
|
0.250290544772
|
||||||
|
0.2187337482
|
||||||
|
0.211795398808
|
||||||
|
0.185664474197
|
||||||
|
0.174563178783
|
||||||
|
0.174648363874
|
||||||
|
0.166720082135
|
||||||
|
0.12097483942
|
||||||
|
0.122984046496
|
||||||
|
0.205734861691
|
79
test/data/meshio_meshes/vtk/01_image.vtk
Normal file
79
test/data/meshio_meshes/vtk/01_image.vtk
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
# vtk DataFile Version 4.2
|
||||||
|
vtk output
|
||||||
|
ASCII
|
||||||
|
DATASET STRUCTURED_POINTS
|
||||||
|
DIMENSIONS 7 7 3
|
||||||
|
ASPECT_RATIO 1 1 1
|
||||||
|
ORIGIN 0 0 0
|
||||||
|
CELL_DATA 72
|
||||||
|
FIELD FieldData 2
|
||||||
|
pressure1 1 72 double
|
||||||
|
0.8677104542 0.51636185155 0.60688284218 0.46963710959 0.84631932221 0.19738233512 0.10449260542 0.13325513899 0.1261254424
|
||||||
|
0.92811591687 0.85276551296 0.87436138227 0.57021773734 0.64484045379 0.83211192182 0.91742765699 0.78576559398 0.61298629515
|
||||||
|
0.6735725119 0.95343444683 0.94452291226 0.75495718491 0.92715036051 0.41195114237 0.16643423413 0.77370647925 0.87340165423
|
||||||
|
0.25739115973 0.25705504591 0.31147847687 0.7299432699 0.70197478982 0.1637118679 0.3955116108 0.5419513408 0.043992262805
|
||||||
|
0.63705083954 0.15316737283 0.81736094123 0.62336803143 0.50731765079 0.11081170015 0.56418617227 0.91414438791 0.052267630295
|
||||||
|
0.11663225967 0.98749503289 0.61230653547 0.95160106712 0.36307324908 0.93814204076 0.47078090661 0.3778094117 0.98835590606
|
||||||
|
0.041782676901 0.41421973924 0.51073980308 0.84948398985 0.70052446738 0.064860319334 0.36908298368 0.55362015347 0.13069604232
|
||||||
|
0.11563651603 0.034805442219 0.22238653602 0.24687431521 0.94102825318 0.89631139818 0.49057691045 0.83937323407 0.40715670809
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
pressure2 1 72 double
|
||||||
|
0.8677104542 0.51636185155 0.60688284218 0.46963710959 0.84631932221 0.19738233512 0.10449260542 0.13325513899 0.1261254424
|
||||||
|
0.92811591687 0.85276551296 0.87436138227 0.57021773734 0.64484045379 0.83211192182 0.91742765699 0.78576559398 0.61298629515
|
||||||
|
0.6735725119 0.95343444683 0.94452291226 0.75495718491 0.92715036051 0.41195114237 0.16643423413 0.77370647925 0.87340165423
|
||||||
|
0.25739115973 0.25705504591 0.31147847687 0.7299432699 0.70197478982 0.1637118679 0.3955116108 0.5419513408 0.043992262805
|
||||||
|
0.63705083954 0.15316737283 0.81736094123 0.62336803143 0.50731765079 0.11081170015 0.56418617227 0.91414438791 0.052267630295
|
||||||
|
0.11663225967 0.98749503289 0.61230653547 0.95160106712 0.36307324908 0.93814204076 0.47078090661 0.3778094117 0.98835590606
|
||||||
|
0.041782676901 0.41421973924 0.51073980308 0.84948398985 0.70052446738 0.064860319334 0.36908298368 0.55362015347 0.13069604232
|
||||||
|
0.11563651603 0.034805442219 0.22238653602 0.24687431521 0.94102825318 0.89631139818 0.49057691045 0.83937323407 0.40715670809
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
POINT_DATA 147
|
||||||
|
FIELD FieldData 2
|
||||||
|
temp1 1 147 double
|
||||||
|
0.19932609943 0.080484975432 0.62271676952 0.17526854106 0.85265478881 0.20618656795 0.84349132399 0.038892471051 0.90607584362
|
||||||
|
0.53145615434 0.31918008657 0.20474882787 0.026379692258 0.48104509843 0.50001234209 0.045244591207 0.83508077518 0.47561534276
|
||||||
|
0.40962142531 0.0011841612877 0.14709018583 0.75095831727 0.48417916779 0.18271087896 0.54656071738 0.75066701975 0.92200696569
|
||||||
|
0.99769339208 0.26117515176 0.085311465967 0.1646683261 0.81218612228 0.63122274863 0.56536002542 0.61634033728 0.51835579684
|
||||||
|
0.4278608922 0.630029077 0.61492773995 0.54908405353 0.7708722292 0.25359302007 0.70233431709 0.61075920411 0.9125950554
|
||||||
|
0.55867195058 0.028337602721 0.75342955411 0.35627445538 0.65575668043 0.10189677317 0.81150143817 0.61299601434 0.21606925506
|
||||||
|
0.60478711464 0.83937102764 0.85003752009 0.044045564549 0.46397193546 0.76703318221 0.060487798272 0.089849800165 0.6698869959
|
||||||
|
0.49180368025 0.054588170455 0.60657339138 0.99430585956 0.95520254464 0.41486965842 0.31728314337 0.7863231829 0.021234945228
|
||||||
|
0.51786325975 0.072245341545 0.7311841733 0.0059933017956 0.14530623862 0.70174168053 0.047421832096 0.65318254961 0.23720001553
|
||||||
|
0.58673678257 0.22685717667 0.12009824017 0.038425067107 0.035546247175 0.10844204481 0.46533179621 0.19527170909 0.014046989322
|
||||||
|
0.98575901443 0.12321432463 0.04330563787 0.31288353454 0.77184910491 0.50055628109 0.91733177324 0.94877989401 0.98760860859
|
||||||
|
0.62370960235 0.1802712889 0.60612390385 0.27937860958 0.78119102642 0.2098678809 0.23795094593 0.87305172717 0.022913016055
|
||||||
|
0.85021930614 0.34946437346 0.20389954341 0.64959363365 0.10151151857 0.95849443411 0.18591031788 0.26712287986 0.21679083654
|
||||||
|
0.30027647079 0.92909265289 0.058716366373 0.41706634312 0.62893832977 0.438984896 0.27390875927 0.058657266281 0.05994697265
|
||||||
|
0.39632622578 0.24057772072 0.26926772847 0.90228743973 0.7462902986 0.55399859345 0.28386352495 0.02032014315 0.84847748999
|
||||||
|
0.089787722754 0.094645324833 0.70209677424 0.9284726152 0.20015337624 0.61003086407 0.15306703884 0.10979782787 0.12908663141
|
||||||
|
0.050329141049 0.48476689788 0.72757728194
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
temp2 1 147 double
|
||||||
|
0.19932609943 0.080484975432 0.62271676952 0.17526854106 0.85265478881 0.20618656795 0.84349132399 0.038892471051 0.90607584362
|
||||||
|
0.53145615434 0.31918008657 0.20474882787 0.026379692258 0.48104509843 0.50001234209 0.045244591207 0.83508077518 0.47561534276
|
||||||
|
0.40962142531 0.0011841612877 0.14709018583 0.75095831727 0.48417916779 0.18271087896 0.54656071738 0.75066701975 0.92200696569
|
||||||
|
0.99769339208 0.26117515176 0.085311465967 0.1646683261 0.81218612228 0.63122274863 0.56536002542 0.61634033728 0.51835579684
|
||||||
|
0.4278608922 0.630029077 0.61492773995 0.54908405353 0.7708722292 0.25359302007 0.70233431709 0.61075920411 0.9125950554
|
||||||
|
0.55867195058 0.028337602721 0.75342955411 0.35627445538 0.65575668043 0.10189677317 0.81150143817 0.61299601434 0.21606925506
|
||||||
|
0.60478711464 0.83937102764 0.85003752009 0.044045564549 0.46397193546 0.76703318221 0.060487798272 0.089849800165 0.6698869959
|
||||||
|
0.49180368025 0.054588170455 0.60657339138 0.99430585956 0.95520254464 0.41486965842 0.31728314337 0.7863231829 0.021234945228
|
||||||
|
0.51786325975 0.072245341545 0.7311841733 0.0059933017956 0.14530623862 0.70174168053 0.047421832096 0.65318254961 0.23720001553
|
||||||
|
0.58673678257 0.22685717667 0.12009824017 0.038425067107 0.035546247175 0.10844204481 0.46533179621 0.19527170909 0.014046989322
|
||||||
|
0.98575901443 0.12321432463 0.04330563787 0.31288353454 0.77184910491 0.50055628109 0.91733177324 0.94877989401 0.98760860859
|
||||||
|
0.62370960235 0.1802712889 0.60612390385 0.27937860958 0.78119102642 0.2098678809 0.23795094593 0.87305172717 0.022913016055
|
||||||
|
0.85021930614 0.34946437346 0.20389954341 0.64959363365 0.10151151857 0.95849443411 0.18591031788 0.26712287986 0.21679083654
|
||||||
|
0.30027647079 0.92909265289 0.058716366373 0.41706634312 0.62893832977 0.438984896 0.27390875927 0.058657266281 0.05994697265
|
||||||
|
0.39632622578 0.24057772072 0.26926772847 0.90228743973 0.7462902986 0.55399859345 0.28386352495 0.02032014315 0.84847748999
|
||||||
|
0.089787722754 0.094645324833 0.70209677424 0.9284726152 0.20015337624 0.61003086407 0.15306703884 0.10979782787 0.12908663141
|
||||||
|
0.050329141049 0.48476689788 0.72757728194
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
133
test/data/meshio_meshes/vtk/02_structured.vtk
Normal file
133
test/data/meshio_meshes/vtk/02_structured.vtk
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
# vtk DataFile Version 4.2
|
||||||
|
vtk output
|
||||||
|
ASCII
|
||||||
|
DATASET STRUCTURED_GRID
|
||||||
|
DIMENSIONS 7 7 3
|
||||||
|
POINTS 147 double
|
||||||
|
0.016097836025 -0.0066555606458 -0.009106647449 0.1733969032 0.0090399163471 0.031757449436 0.33911962646 0.0062874519805 0.045462455612
|
||||||
|
0.51075862185 0.0051257278606 -0.029177116516 0.66533800385 0.013108560268 0.021271506318 0.83769838526 -0.010959765226 -0.036359143999
|
||||||
|
0.98504259859 0.0047546018538 0.037050545331 0.013907309336 0.18246627742 -0.046818381932 0.18237891839 0.17280584132 0.0075819263041
|
||||||
|
0.34160966101 0.17207531769 0.00033680576228 0.50236559154 0.15418839664 -0.028289303738 0.65397837769 0.17017370868 0.04317322173
|
||||||
|
0.84949887936 0.15216477824 -0.0029299702212 0.99356665017 0.1770215724 0.0017804475498 -0.00615227565 0.34418527946 0.0081030082193
|
||||||
|
0.18010898176 0.31722833449 0.028447390308 0.32276500029 0.34201857872 -0.016800280505 0.50807503845 0.34942519486 -0.034778344998
|
||||||
|
0.6775474319 0.31984603087 0.0089720258128 0.84729482517 0.3380957034 -0.0067066948018 0.99778934884 0.33289718497 -0.037154068295
|
||||||
|
-0.0046982195539 0.51099100874 0.026708283818 0.17025938284 0.51610470142 -0.014625934125 0.34967543289 0.51050560084 -0.0056288607216
|
||||||
|
0.51630177359 0.49084931472 0.034521905043 0.65975943881 0.48570355408 0.03361898188 0.84535056542 0.50894076316 0.0042127103501
|
||||||
|
1.0009500488 0.51289667312 0.044010949234 -0.00062435261137 0.66720370788 -0.039056045075 0.18310410081 0.65601094071 0.016454461598
|
||||||
|
0.33508947575 0.65192817519 -0.021969451183 0.49039746817 0.65967511716 -0.025093635557 0.66562052027 0.66587432699 0.0052201201525
|
||||||
|
0.81850101297 0.66795922618 0.0022057548268 1.0086206694 0.66311947564 0.011916832912 0.014075847621 0.83326223107 0.017165200178
|
||||||
|
0.16793797389 0.84864274331 0.014327767801 0.32842270252 0.83439817252 0.017658447612 0.50390288265 0.82542010683 -0.028739776196
|
||||||
|
0.65773881722 0.84416812106 0.0031585656079 0.84077196999 0.84873968954 -0.013238234486 0.99315793374 0.84546739623 0.030260034366
|
||||||
|
0.0011339276995 1.0009399919 0.016604400368 0.161138787 1.0146364726 -0.018236235337 0.3257754929 1.011335575 0.043021284072
|
||||||
|
0.5135458276 0.99392427679 -0.038683127984 0.66209330283 1.0066475641 -0.045988329763 0.84097006872 0.98758829167 -0.00020137200397
|
||||||
|
1.0147581381 0.99225296045 -0.012100243863 -0.0053978491539 0.0065439697198 0.51836477299 0.16075286646 -0.0097629422425 0.47058952605
|
||||||
|
0.33887020292 0.011350790233 0.53746850822 0.48574130015 -0.0020366546289 0.50191286689 0.65572014649 0.013807237767 0.48375058233
|
||||||
|
0.8286386126 0.014895959291 0.52733015129 1.0132117409 0.0027836366985 0.53247640091 -0.0054687440332 0.17303097363 0.52858610778
|
||||||
|
0.15742413014 0.15506885862 0.46464570524 0.32601624685 0.17061990442 0.4896244983 0.48980400894 0.17908195358 0.51230355275
|
||||||
|
0.65594053528 0.16880734052 0.48971676102 0.84853513403 0.17476649675 0.48797754997 0.99042706129 0.15662090744 0.49256653888
|
||||||
|
0.0019434558926 0.34302192065 0.49936580467 0.17613165273 0.34471838518 0.54189882581 0.33600899704 0.34443755922 0.50142421043
|
||||||
|
0.50895519771 0.32548817805 0.5014986656 0.65743998465 0.34081949026 0.54565134373 0.83567477275 0.32610244517 0.49228933485
|
||||||
|
1.0129068439 0.31794200907 0.52093193269 0.016073625036 0.48486895082 0.47221600206 0.17768514791 0.48743891922 0.5368466837
|
||||||
|
0.32492097448 0.48844429481 0.45489056792 0.50003238085 0.50768809536 0.51980795881 0.65600972293 0.50704920527 0.46723968272
|
||||||
|
0.83211554696 0.495375411 0.53579643575 0.98712402729 0.50507430278 0.47326845807 -0.00096293597575 0.66989639799 0.52757706696
|
||||||
|
0.16705943198 0.67924747016 0.47690763262 0.33740643281 0.66711601652 0.52621217856 0.49032456835 0.68114181972 0.49023234967
|
||||||
|
0.67426929968 0.66604729849 0.45317248132 0.82816868139 0.66292566539 0.54257962857 1.0085781987 0.67245996766 0.53233887191
|
||||||
|
-0.014926130627 0.82676956937 0.51649185431 0.15429890054 0.83935985212 0.45543127707 0.33099872077 0.83414017462 0.53402917956
|
||||||
|
0.48587430366 0.81933839437 0.51956711517 0.67963890486 0.84251881063 0.54729295716 0.82821127204 0.84785102758 0.52317708288
|
||||||
|
1.0054908084 0.82130274444 0.53657655345 -0.0066630333791 1.0157021684 0.54740452099 0.17342776222 0.99154207105 0.50179414233
|
||||||
|
0.3377092001 0.99656626995 0.47004175737 0.51284211707 1.0142119526 0.52212713485 0.65844114141 1.0048894149 0.50890097353
|
||||||
|
0.84533619888 1.0144229156 0.46577786174 0.9987748856 0.98568696397 0.54777213491 0.012888379129 0.0036885122952 0.95686958603
|
||||||
|
0.15357341885 -0.00065272064772 1.0262438715 0.33084580824 -0.012703473288 0.97483592167 0.51497209512 -0.0080521912046 1.0474399204
|
||||||
|
0.65806115248 -0.0023892088967 0.9909297062 0.83433168465 0.0077882065681 1.0276363672 0.98751789355 -0.015274787969 0.96520219509
|
||||||
|
0.012499901777 0.16593426678 0.97297871598 0.17903934469 0.15965855978 1.0150660153 0.31733710435 0.15073370233 0.96573021298
|
||||||
|
0.48605751426 0.15225681334 0.95915124858 0.66222984704 0.17792898839 0.97189336808 0.84328956432 0.16275335658 1.0073620281
|
||||||
|
1.0115100333 0.15153424052 0.98375124428 0.014793864125 0.3262260491 1.0309538307 0.18084271085 0.34945243625 1.0325615197
|
||||||
|
0.34304794555 0.31807601105 0.97398668319 0.51101813833 0.32185478716 1.0066933164 0.65616899442 0.33103228005 1.0055869756
|
||||||
|
0.81917854206 0.3358492536 0.99294344768 0.98891622685 0.31700080099 0.97101092853 -0.0089239267162 0.51637444872 1.0427526453
|
||||||
|
0.16813267386 0.51400173705 0.95825287153 0.33116685779 0.49959174349 1.0092050071 0.49314264493 0.49476947159 0.9869242523
|
||||||
|
0.66407957958 0.50646028997 0.9679152694 0.84067943458 0.49837411967 0.97954023236 0.98752341704 0.50942169697 0.97808465982
|
||||||
|
-0.0095755796684 0.68303966073 1.0495865001 0.16515442322 0.66479655691 0.95383350655 0.34526248577 0.67569920919 1.0343110894
|
||||||
|
0.50952068108 0.67065665572 1.0142876209 0.67854006544 0.67600911734 1.0428590006 0.82446214933 0.65979837887 1.0219414642
|
||||||
|
0.9844952586 0.67762181541 1.0187000185 -0.015338152602 0.82775377543 1.0151882645 0.17222253348 0.83560593105 1.0343837216
|
||||||
|
0.34616504528 0.84903909119 0.95739113825 0.49197639208 0.82213793931 1.0275791115 0.66911848575 0.81981520446 1.0067994817
|
||||||
|
0.84912558532 0.83750537796 1.0371248509 0.99463189989 0.82488770538 0.96105625502 0.0038184510469 1.0085641489 1.0432839637
|
||||||
|
0.15493784139 0.99441967197 1.0456896885 0.32000013409 0.98764375732 0.96541431975 0.51076144504 0.99287470313 0.95482439237
|
||||||
|
0.66112983526 0.98708057706 0.96853110168 0.84110227276 0.99637224249 0.99355281029 0.9957977991 0.99972130129 0.95543345973
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 1
|
||||||
|
NAME L2_NORM_RANGE LOCATION vtkDataArray
|
||||||
|
DATA 2 0.0196562 1.70409
|
||||||
|
|
||||||
|
CELL_DATA 72
|
||||||
|
FIELD FieldData 2
|
||||||
|
pressure1 1 72 double
|
||||||
|
0.13795852842 0.98039815271 0.10503754932 0.56626638522 0.96500924554 0.56046976315 0.079983972734 0.58105215018 0.58169340716
|
||||||
|
0.73007629678 0.38185702564 0.84247618396 0.66446283803 0.54833912486 0.049465659777 0.30332955473 0.76474601713 0.217329204
|
||||||
|
0.57776437415 0.62245938112 0.12074733274 0.13687847854 0.44494998211 0.95257764869 0.95490828371 0.051995397266 0.46979080479
|
||||||
|
0.44659958769 0.58862913817 0.20730383598 0.3810851279 0.39268992004 0.77525984955 0.38349863597 0.031496502929 0.63753663639
|
||||||
|
0.16304690985 0.95619314363 0.37786053731 0.094818892515 0.31637379495 0.3892127265 0.96224381919 0.36789802527 0.15250598575
|
||||||
|
0.56489044555 0.75706877783 0.91414670708 0.80978710761 0.45469246223 0.26310806104 0.23791097635 0.49177825303 0.98001386831
|
||||||
|
0.85561706219 0.25061800099 0.65687075091 0.45132291264 0.14397228247 0.65085350344 0.30767470134 0.89154954303 0.80948890197
|
||||||
|
0.93611774845 0.078629417722 0.2826173675 0.86934277701 0.29405340228 0.63487937666 0.40551511911 0.11533128603 0.35473096858
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
pressure2 1 72 double
|
||||||
|
0.13795852842 0.98039815271 0.10503754932 0.56626638522 0.96500924554 0.56046976315 0.079983972734 0.58105215018 0.58169340716
|
||||||
|
0.73007629678 0.38185702564 0.84247618396 0.66446283803 0.54833912486 0.049465659777 0.30332955473 0.76474601713 0.217329204
|
||||||
|
0.57776437415 0.62245938112 0.12074733274 0.13687847854 0.44494998211 0.95257764869 0.95490828371 0.051995397266 0.46979080479
|
||||||
|
0.44659958769 0.58862913817 0.20730383598 0.3810851279 0.39268992004 0.77525984955 0.38349863597 0.031496502929 0.63753663639
|
||||||
|
0.16304690985 0.95619314363 0.37786053731 0.094818892515 0.31637379495 0.3892127265 0.96224381919 0.36789802527 0.15250598575
|
||||||
|
0.56489044555 0.75706877783 0.91414670708 0.80978710761 0.45469246223 0.26310806104 0.23791097635 0.49177825303 0.98001386831
|
||||||
|
0.85561706219 0.25061800099 0.65687075091 0.45132291264 0.14397228247 0.65085350344 0.30767470134 0.89154954303 0.80948890197
|
||||||
|
0.93611774845 0.078629417722 0.2826173675 0.86934277701 0.29405340228 0.63487937666 0.40551511911 0.11533128603 0.35473096858
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
POINT_DATA 147
|
||||||
|
FIELD FieldData 2
|
||||||
|
temp1 1 147 double
|
||||||
|
0.75023536049 0.154708685 0.6273602213 0.30175482123 0.92254998434 0.089076740076 0.025287843123 0.37685724918 0.076809625199
|
||||||
|
0.99486465488 0.017172268283 0.12954509502 0.95339440924 0.13110635282 0.49969090164 0.63720996334 0.08856119452 0.69090885019
|
||||||
|
0.21226712372 0.034083195757 0.37151013113 0.58830683975 0.50767692592 0.86544378728 0.48254945355 0.9468299584 0.51427839019
|
||||||
|
0.4070569932 0.024021552562 0.33321767926 0.64695361204 0.085823132238 0.97189032231 0.41045785695 0.073433693377 0.31239171126
|
||||||
|
0.319060392 0.74354845141 0.98278182919 0.99821039821 0.87446758805 0.94711144761 0.29705499059 0.49418872785 0.067030942278
|
||||||
|
0.8860269077 0.13286120491 0.46133436519 0.46578066258 0.82148145133 0.020924397894 0.82685114851 0.10065334804 0.36475133035
|
||||||
|
0.52068525602 0.17279068289 0.045065193484 0.098446399493 0.55558292092 0.78585837389 0.23328187527 0.62096676061 0.16742452658
|
||||||
|
0.96233672454 0.88190385933 0.30434086402 0.77567526464 0.086635714033 0.49595480903 0.31517172346 0.76226683408 0.15361320544
|
||||||
|
0.22325246351 0.52400041894 0.76030701583 0.68857500684 0.75058253364 0.65029287163 0.9647594872 0.0010202630388 0.53480133747
|
||||||
|
0.73645798211 0.66522544405 0.98286413592 0.39401448762 0.083885504284 0.66063864323 0.73336542804 0.037902948881 0.35287082071
|
||||||
|
0.48594617628 0.11367411678 0.12959748521 0.49154031154 0.67497204442 0.36306596385 0.90980600643 0.19441857986 0.20868246346
|
||||||
|
0.83309798327 0.49451340436 0.46994311507 0.20945743958 0.90180499386 0.5882724815 0.59257716926 0.36687922328 0.031175163596
|
||||||
|
0.59139143764 0.22074049374 0.25009561491 0.42839567802 0.73397672723 0.27750910732 0.10343172891 0.29795508391 0.5824967726
|
||||||
|
0.49255555201 0.41040440901 0.51740971604 0.27642443648 0.17821611139 0.51489622537 0.11142441873 0.96543388855 0.82264080865
|
||||||
|
0.15457351543 0.351476427 0.1313250572 0.3373358227 0.97473064492 0.72094042884 0.84408819099 0.82331232023 0.52003273245
|
||||||
|
0.97129609052 0.55093322641 0.60515474675 0.37546482768 0.17590731957 0.30494883209 0.068149684854 0.11239873611 0.88408229271
|
||||||
|
0.2256313757 0.91498208381 0.71068656904
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
temp2 1 147 double
|
||||||
|
0.75023536049 0.154708685 0.6273602213 0.30175482123 0.92254998434 0.089076740076 0.025287843123 0.37685724918 0.076809625199
|
||||||
|
0.99486465488 0.017172268283 0.12954509502 0.95339440924 0.13110635282 0.49969090164 0.63720996334 0.08856119452 0.69090885019
|
||||||
|
0.21226712372 0.034083195757 0.37151013113 0.58830683975 0.50767692592 0.86544378728 0.48254945355 0.9468299584 0.51427839019
|
||||||
|
0.4070569932 0.024021552562 0.33321767926 0.64695361204 0.085823132238 0.97189032231 0.41045785695 0.073433693377 0.31239171126
|
||||||
|
0.319060392 0.74354845141 0.98278182919 0.99821039821 0.87446758805 0.94711144761 0.29705499059 0.49418872785 0.067030942278
|
||||||
|
0.8860269077 0.13286120491 0.46133436519 0.46578066258 0.82148145133 0.020924397894 0.82685114851 0.10065334804 0.36475133035
|
||||||
|
0.52068525602 0.17279068289 0.045065193484 0.098446399493 0.55558292092 0.78585837389 0.23328187527 0.62096676061 0.16742452658
|
||||||
|
0.96233672454 0.88190385933 0.30434086402 0.77567526464 0.086635714033 0.49595480903 0.31517172346 0.76226683408 0.15361320544
|
||||||
|
0.22325246351 0.52400041894 0.76030701583 0.68857500684 0.75058253364 0.65029287163 0.9647594872 0.0010202630388 0.53480133747
|
||||||
|
0.73645798211 0.66522544405 0.98286413592 0.39401448762 0.083885504284 0.66063864323 0.73336542804 0.037902948881 0.35287082071
|
||||||
|
0.48594617628 0.11367411678 0.12959748521 0.49154031154 0.67497204442 0.36306596385 0.90980600643 0.19441857986 0.20868246346
|
||||||
|
0.83309798327 0.49451340436 0.46994311507 0.20945743958 0.90180499386 0.5882724815 0.59257716926 0.36687922328 0.031175163596
|
||||||
|
0.59139143764 0.22074049374 0.25009561491 0.42839567802 0.73397672723 0.27750910732 0.10343172891 0.29795508391 0.5824967726
|
||||||
|
0.49255555201 0.41040440901 0.51740971604 0.27642443648 0.17821611139 0.51489622537 0.11142441873 0.96543388855 0.82264080865
|
||||||
|
0.15457351543 0.351476427 0.1313250572 0.3373358227 0.97473064492 0.72094042884 0.84408819099 0.82331232023 0.52003273245
|
||||||
|
0.97129609052 0.55093322641 0.60515474675 0.37546482768 0.17590731957 0.30494883209 0.068149684854 0.11239873611 0.88408229271
|
||||||
|
0.2256313757 0.91498208381 0.71068656904
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
92
test/data/meshio_meshes/vtk/03_rectilinear.vtk
Normal file
92
test/data/meshio_meshes/vtk/03_rectilinear.vtk
Normal file
@ -0,0 +1,92 @@
|
|||||||
|
# vtk DataFile Version 4.2
|
||||||
|
vtk output
|
||||||
|
ASCII
|
||||||
|
DATASET RECTILINEAR_GRID
|
||||||
|
DIMENSIONS 7 7 3
|
||||||
|
X_COORDINATES 7 double
|
||||||
|
0 0.16666666667 0.33333333333 0.5 0.66666666667 0.83333333333 1
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
Y_COORDINATES 7 double
|
||||||
|
0 0.16666666667 0.33333333333 0.5 0.66666666667 0.83333333333 1
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
Z_COORDINATES 3 double
|
||||||
|
0 0.5 1
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
CELL_DATA 72
|
||||||
|
FIELD FieldData 2
|
||||||
|
pressure1 1 72 double
|
||||||
|
0.68481602841 0.7408984814 0.17688921297 0.63393817883 0.044208263843 0.82976770229 0.89378590019 0.075092558663 0.43180151434
|
||||||
|
0.035131859465 0.134643422 0.47990950523 0.80192557645 0.7468449724 0.20534806841 0.92834914766 0.88198675703 0.45615571918
|
||||||
|
0.042484004691 0.87550368235 0.68700029846 0.22131595768 0.75649463584 0.44563818901 0.069957941663 0.46754458779 0.86074528691
|
||||||
|
0.95202479824 0.2375718218 0.35798944994 0.19527332554 0.74519124313 0.95125108946 0.93581255986 0.94507096115 0.01704049028
|
||||||
|
0.89259582525 0.8848127866 0.88185041179 0.63730034541 0.040485258291 0.86773991306 0.40879356878 0.63753083929 0.72482238033
|
||||||
|
0.34846270951 0.32066055117 0.66800047263 0.35008675445 0.57675212419 0.44109084634 0.62252503984 0.74068575587 0.84557747344
|
||||||
|
0.89870057861 0.63543896047 0.87469776486 0.97029262447 0.84717730236 0.41587290249 0.14356359296 0.99228835994 0.71032127168
|
||||||
|
0.5956867493 0.92442066026 0.7386054156 0.60352799914 0.095139821159 0.3034024004 0.11421540773 0.67402382509 0.48084460187
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
pressure2 1 72 double
|
||||||
|
0.68481602841 0.7408984814 0.17688921297 0.63393817883 0.044208263843 0.82976770229 0.89378590019 0.075092558663 0.43180151434
|
||||||
|
0.035131859465 0.134643422 0.47990950523 0.80192557645 0.7468449724 0.20534806841 0.92834914766 0.88198675703 0.45615571918
|
||||||
|
0.042484004691 0.87550368235 0.68700029846 0.22131595768 0.75649463584 0.44563818901 0.069957941663 0.46754458779 0.86074528691
|
||||||
|
0.95202479824 0.2375718218 0.35798944994 0.19527332554 0.74519124313 0.95125108946 0.93581255986 0.94507096115 0.01704049028
|
||||||
|
0.89259582525 0.8848127866 0.88185041179 0.63730034541 0.040485258291 0.86773991306 0.40879356878 0.63753083929 0.72482238033
|
||||||
|
0.34846270951 0.32066055117 0.66800047263 0.35008675445 0.57675212419 0.44109084634 0.62252503984 0.74068575587 0.84557747344
|
||||||
|
0.89870057861 0.63543896047 0.87469776486 0.97029262447 0.84717730236 0.41587290249 0.14356359296 0.99228835994 0.71032127168
|
||||||
|
0.5956867493 0.92442066026 0.7386054156 0.60352799914 0.095139821159 0.3034024004 0.11421540773 0.67402382509 0.48084460187
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
POINT_DATA 147
|
||||||
|
FIELD FieldData 2
|
||||||
|
temp1 1 147 double
|
||||||
|
0.15184421213 0.44742653081 0.095466301934 0.54763321187 0.19324596196 0.81336074461 0.89618473408 0.44987667885 0.80114149531
|
||||||
|
0.16315685215 0.99812561567 0.9037730004 0.75268298488 0.53006709174 0.18576458996 0.51199463388 0.41105329773 0.24239596208
|
||||||
|
0.85846691194 0.43413524711 0.47267822282 0.60641499485 0.51355839313 0.43287135185 0.47640559997 0.97288961494 0.61429042394
|
||||||
|
0.70581048665 0.065936841167 0.63314967535 0.60012026764 0.18594694771 0.16823928819 0.080521273321 0.68190240412 0.75080745507
|
||||||
|
0.5353777274 0.96784897933 0.12995469679 0.71846181243 0.66743195557 0.72575238303 0.088554580153 0.20320467526 0.87482370275
|
||||||
|
0.65065914812 0.12594994752 0.02725564106 0.15049339894 0.68657697094 0.88013131699 0.94249582775 0.18122748926 0.46658147111
|
||||||
|
0.44637444367 0.69280768437 0.92473788911 0.82529254604 0.15755822605 0.0051687595707 0.61460578104 0.7234585607 0.56905630427
|
||||||
|
0.75900412905 0.47414886317 0.54394429824 0.34211996751 0.98196177072 0.92221924883 0.77527841623 0.63382558964 0.14924749942
|
||||||
|
0.32768385259 0.2895643701 0.10320564521 0.15081282933 0.49996009749 0.32673651659 0.75383874553 0.8571015154 0.56124108275
|
||||||
|
0.34393414122 0.9432200479 0.061201799696 0.9985863168 0.60908020181 0.73346253495 0.99490699616 0.15026452495 0.51409752559
|
||||||
|
0.75630422794 0.92491239667 0.1099003329 0.57226406431 0.23060786115 0.29605317945 0.034194329357 0.59689719066 0.069093550567
|
||||||
|
0.12779281759 0.39340161394 0.2860681582 0.25854783332 0.18894330876 0.85827171176 0.40775520287 0.76044080381 0.74732740091
|
||||||
|
0.32219448353 0.39770096191 0.58102050637 0.05189883446 0.99509596567 0.9026782597 0.068170246003 0.16427309592 0.74588518831
|
||||||
|
0.4044565828 0.58493877163 0.47228021091 0.65929383313 0.85792127496 0.33328956984 0.3600731556 0.27493365102 0.95807327535
|
||||||
|
0.90241394706 0.93271836171 0.44865942466 0.46441902328 0.20433162022 0.56895928481 0.032408533118 0.53155053595 0.3759268701
|
||||||
|
0.12034935601 0.12251117325 0.2785867957 0.73229626025 0.0004345801637 0.67193163546 0.81041906487 0.92307518563 0.047169703428
|
||||||
|
0.57421165038 0.36437130081 0.20314746133
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
temp2 1 147 double
|
||||||
|
0.15184421213 0.44742653081 0.095466301934 0.54763321187 0.19324596196 0.81336074461 0.89618473408 0.44987667885 0.80114149531
|
||||||
|
0.16315685215 0.99812561567 0.9037730004 0.75268298488 0.53006709174 0.18576458996 0.51199463388 0.41105329773 0.24239596208
|
||||||
|
0.85846691194 0.43413524711 0.47267822282 0.60641499485 0.51355839313 0.43287135185 0.47640559997 0.97288961494 0.61429042394
|
||||||
|
0.70581048665 0.065936841167 0.63314967535 0.60012026764 0.18594694771 0.16823928819 0.080521273321 0.68190240412 0.75080745507
|
||||||
|
0.5353777274 0.96784897933 0.12995469679 0.71846181243 0.66743195557 0.72575238303 0.088554580153 0.20320467526 0.87482370275
|
||||||
|
0.65065914812 0.12594994752 0.02725564106 0.15049339894 0.68657697094 0.88013131699 0.94249582775 0.18122748926 0.46658147111
|
||||||
|
0.44637444367 0.69280768437 0.92473788911 0.82529254604 0.15755822605 0.0051687595707 0.61460578104 0.7234585607 0.56905630427
|
||||||
|
0.75900412905 0.47414886317 0.54394429824 0.34211996751 0.98196177072 0.92221924883 0.77527841623 0.63382558964 0.14924749942
|
||||||
|
0.32768385259 0.2895643701 0.10320564521 0.15081282933 0.49996009749 0.32673651659 0.75383874553 0.8571015154 0.56124108275
|
||||||
|
0.34393414122 0.9432200479 0.061201799696 0.9985863168 0.60908020181 0.73346253495 0.99490699616 0.15026452495 0.51409752559
|
||||||
|
0.75630422794 0.92491239667 0.1099003329 0.57226406431 0.23060786115 0.29605317945 0.034194329357 0.59689719066 0.069093550567
|
||||||
|
0.12779281759 0.39340161394 0.2860681582 0.25854783332 0.18894330876 0.85827171176 0.40775520287 0.76044080381 0.74732740091
|
||||||
|
0.32219448353 0.39770096191 0.58102050637 0.05189883446 0.99509596567 0.9026782597 0.068170246003 0.16427309592 0.74588518831
|
||||||
|
0.4044565828 0.58493877163 0.47228021091 0.65929383313 0.85792127496 0.33328956984 0.3600731556 0.27493365102 0.95807327535
|
||||||
|
0.90241394706 0.93271836171 0.44865942466 0.46441902328 0.20433162022 0.56895928481 0.032408533118 0.53155053595 0.3759268701
|
||||||
|
0.12034935601 0.12251117325 0.2785867957 0.73229626025 0.0004345801637 0.67193163546 0.81041906487 0.92307518563 0.047169703428
|
||||||
|
0.57421165038 0.36437130081 0.20314746133
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
50
test/data/meshio_meshes/vtk/04_rectilinear.vtk
Normal file
50
test/data/meshio_meshes/vtk/04_rectilinear.vtk
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# vtk DataFile Version 4.2
|
||||||
|
vtk output
|
||||||
|
ASCII
|
||||||
|
DATASET RECTILINEAR_GRID
|
||||||
|
DIMENSIONS 10 4 1
|
||||||
|
X_COORDINATES 10 double
|
||||||
|
0 0.11111111111 0.22222222222 0.33333333333 0.44444444444 0.55555555556 0.66666666667 0.77777777778 0.88888888889
|
||||||
|
1
|
||||||
|
Y_COORDINATES 4 double
|
||||||
|
0 0.66666666667 1.3333333333 2
|
||||||
|
Z_COORDINATES 1 double
|
||||||
|
0
|
||||||
|
CELL_DATA 27
|
||||||
|
FIELD FieldData 2
|
||||||
|
pressure1 1 27 double
|
||||||
|
0.5967368454 0.95115399245 0.08747213813 0.28749644837 0.40514625881 0.16690134756 0.62865801418 0.030783662473 0.73469688514
|
||||||
|
0.15982357526 0.94215501991 0.853981868 0.23819470223 0.95185671549 0.37963864995 0.060379164151 0.55299101432 0.40994903565
|
||||||
|
0.44752862897 0.94077520508 0.098657258377 0.61637721618 0.61373522457 0.76903310377 0.73321879947 0.54788850996 0.4664110617
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
pressure2 1 27 double
|
||||||
|
0.5967368454 0.95115399245 0.08747213813 0.28749644837 0.40514625881 0.16690134756 0.62865801418 0.030783662473 0.73469688514
|
||||||
|
0.15982357526 0.94215501991 0.853981868 0.23819470223 0.95185671549 0.37963864995 0.060379164151 0.55299101432 0.40994903565
|
||||||
|
0.44752862897 0.94077520508 0.098657258377 0.61637721618 0.61373522457 0.76903310377 0.73321879947 0.54788850996 0.4664110617
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
POINT_DATA 40
|
||||||
|
FIELD FieldData 2
|
||||||
|
temp1 1 40 double
|
||||||
|
0.70315056489 0.77283040507 0.23882065545 0.47826852144 0.2100912521 0.53921783206 0.20433042163 0.73420831075 0.027654148794
|
||||||
|
0.68639133094 0.4330220864 0.28495508317 0.33821187823 0.82527437165 0.54255032296 0.45393458559 0.83989136196 0.85876287932
|
||||||
|
0.4214370932 0.19047900181 0.51820664038 0.77471790134 0.60592653466 0.81065380638 0.62617898509 0.38810685582 0.1126304294
|
||||||
|
0.20460114912 0.54238177923 0.81393995793 0.96197048162 0.4422555548 0.2418563543 0.1052903392 0.48388728482 0.4595709923
|
||||||
|
0.20135841829 0.89066770205 0.34317565499 0.65652281351
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
temp2 1 40 double
|
||||||
|
0.70315056489 0.77283040507 0.23882065545 0.47826852144 0.2100912521 0.53921783206 0.20433042163 0.73420831075 0.027654148794
|
||||||
|
0.68639133094 0.4330220864 0.28495508317 0.33821187823 0.82527437165 0.54255032296 0.45393458559 0.83989136196 0.85876287932
|
||||||
|
0.4214370932 0.19047900181 0.51820664038 0.77471790134 0.60592653466 0.81065380638 0.62617898509 0.38810685582 0.1126304294
|
||||||
|
0.20460114912 0.54238177923 0.81393995793 0.96197048162 0.4422555548 0.2418563543 0.1052903392 0.48388728482 0.4595709923
|
||||||
|
0.20135841829 0.89066770205 0.34317565499 0.65652281351
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
50
test/data/meshio_meshes/vtk/05_rectilinear.vtk
Normal file
50
test/data/meshio_meshes/vtk/05_rectilinear.vtk
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# vtk DataFile Version 4.2
|
||||||
|
vtk output
|
||||||
|
ASCII
|
||||||
|
DATASET RECTILINEAR_GRID
|
||||||
|
DIMENSIONS 10 1 4
|
||||||
|
X_COORDINATES 10 double
|
||||||
|
0 0.11111111111 0.22222222222 0.33333333333 0.44444444444 0.55555555556 0.66666666667 0.77777777778 0.88888888889
|
||||||
|
1
|
||||||
|
Y_COORDINATES 1 double
|
||||||
|
0
|
||||||
|
Z_COORDINATES 4 double
|
||||||
|
0 0.66666666667 1.3333333333 2
|
||||||
|
CELL_DATA 27
|
||||||
|
FIELD FieldData 2
|
||||||
|
pressure1 1 27 double
|
||||||
|
0.23241625202 0.11445560209 0.76365154653 0.47087525569 0.72431649469 0.92392403459 0.77855368618 0.84124534651 0.23006099738
|
||||||
|
0.072055527286 0.54402393208 0.76577680989 0.95543852626 0.5500200629 0.87894640567 0.1649442032 0.015127389286 0.91713330418
|
||||||
|
0.88199809591 0.67635433792 0.022145891361 0.27235031166 0.2517931659 0.23538443475 0.83078337459 0.12698638054 0.32136110723
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
pressure2 1 27 double
|
||||||
|
0.23241625202 0.11445560209 0.76365154653 0.47087525569 0.72431649469 0.92392403459 0.77855368618 0.84124534651 0.23006099738
|
||||||
|
0.072055527286 0.54402393208 0.76577680989 0.95543852626 0.5500200629 0.87894640567 0.1649442032 0.015127389286 0.91713330418
|
||||||
|
0.88199809591 0.67635433792 0.022145891361 0.27235031166 0.2517931659 0.23538443475 0.83078337459 0.12698638054 0.32136110723
|
||||||
|
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
POINT_DATA 40
|
||||||
|
FIELD FieldData 2
|
||||||
|
temp1 1 40 double
|
||||||
|
0.63326220102 0.65880449811 0.092134010247 0.26224177577 0.18028495303 0.45655723881 0.75424083555 0.25092637201 0.42578021015
|
||||||
|
0.34947513336 0.80900439304 0.10986986982 0.79435528494 0.040592168323 0.34699882279 0.64743497427 0.77190625479 0.87132637738
|
||||||
|
0.85488395442 0.68169002004 0.479460097 0.44164793037 0.42271564266 0.60839199607 0.16007533174 0.11289515092 0.72833184529
|
||||||
|
0.067663762988 0.86608996337 0.30484964892 0.96540154884 0.94371142461 0.14854998865 0.66201000286 0.29212325327 0.088839789059
|
||||||
|
0.94721379534 0.16104719752 0.21336087397 0.98095779109
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
||||||
|
temp2 1 40 double
|
||||||
|
0.63326220102 0.65880449811 0.092134010247 0.26224177577 0.18028495303 0.45655723881 0.75424083555 0.25092637201 0.42578021015
|
||||||
|
0.34947513336 0.80900439304 0.10986986982 0.79435528494 0.040592168323 0.34699882279 0.64743497427 0.77190625479 0.87132637738
|
||||||
|
0.85488395442 0.68169002004 0.479460097 0.44164793037 0.42271564266 0.60839199607 0.16007533174 0.11289515092 0.72833184529
|
||||||
|
0.067663762988 0.86608996337 0.30484964892 0.96540154884 0.94371142461 0.14854998865 0.66201000286 0.29212325327 0.088839789059
|
||||||
|
0.94721379534 0.16104719752 0.21336087397 0.98095779109
|
||||||
|
METADATA
|
||||||
|
INFORMATION 0
|
||||||
|
|
23
test/data/meshio_meshes/vtk/06_color_scalars.vtk
Normal file
23
test/data/meshio_meshes/vtk/06_color_scalars.vtk
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# vtk DataFile Version 2.0
|
||||||
|
data
|
||||||
|
ASCII
|
||||||
|
DATASET UNSTRUCTURED_GRID
|
||||||
|
POINTS 5 float
|
||||||
|
1.5 0.0 0.0
|
||||||
|
0.0 1.5 0.0
|
||||||
|
1.5 1.5 0.0
|
||||||
|
0.0 0.0 0.0
|
||||||
|
-1.5 -1.5 0.0
|
||||||
|
CELLS 2 7
|
||||||
|
2 3 4
|
||||||
|
3 0 1 2
|
||||||
|
CELL_TYPES 2
|
||||||
|
3
|
||||||
|
5
|
||||||
|
POINT_DATA 5
|
||||||
|
COLOR_SCALARS lut 4
|
||||||
|
1.0 0.0 0.0 1.0
|
||||||
|
0.0 1.0 0.0 1.0
|
||||||
|
0.0 0.0 1.0 1.0
|
||||||
|
0.0 0.0 0.0 1.0
|
||||||
|
0.0 0.0 0.0 1.0
|
64
test/data/meshio_meshes/vtk/06_unstructured.vtk
Normal file
64
test/data/meshio_meshes/vtk/06_unstructured.vtk
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
# vtk DataFile Version 5.1
|
||||||
|
vtk output
|
||||||
|
ASCII
|
||||||
|
DATASET UNSTRUCTURED_GRID
|
||||||
|
POINTS 42 float
|
||||||
|
1.3 0.8 0.4 1.4 0.8 0.4 1.4 0.9 0.4
|
||||||
|
1.3 0.9 0.4 1.3 0.8 0.5 1.4 0.8 0.5
|
||||||
|
1.4 0.9 0.5 1.3 0.9 0.5 1.5 0.8 0.4
|
||||||
|
1.5 0.9 0.4 1.5 0.8 0.5 1.5 0.9 0.5
|
||||||
|
1.3 0.9 0 1.4 0.9 0 1.4 1 0
|
||||||
|
1.3 1 0 1.3 0.9 0.1 1.4 0.9 0.1
|
||||||
|
1.4 1 0.1 1.3 1 0.1 1.3 0.9 0.2
|
||||||
|
1.4 0.9 0.2 1.4 1 0.2 1.3 1 0.2
|
||||||
|
1.3 0.9 0.3 1.4 0.9 0.3 1.4 1 0.3
|
||||||
|
1.3 1 0.3 1.4 1 0.4 1.3 1 0.4
|
||||||
|
1.4 1 0.5 1.3 1 0.5 1.5 0.9 0
|
||||||
|
1.5 1 0 1.5 0.9 0.1 1.5 1 0.1
|
||||||
|
1.5 0.9 0.2 1.5 1 0.2 1.5 0.9 0.3
|
||||||
|
1.5 1 0.3 1.5 1 0.4 1.5 1 0.5
|
||||||
|
|
||||||
|
CELLS 13 96
|
||||||
|
OFFSETS vtktypeint64
|
||||||
|
0 8 16 24 32 40 48 56 64
|
||||||
|
72 80 88 96
|
||||||
|
CONNECTIVITY vtktypeint64
|
||||||
|
0 1 2 3 4 5 6 7 1
|
||||||
|
8 9 2 5 10 11 6 12 13
|
||||||
|
14 15 16 17 18 19 16 17 18
|
||||||
|
19 20 21 22 23 20 21 22 23
|
||||||
|
24 25 26 27 24 25 26 27 3
|
||||||
|
2 28 29 3 2 28 29 7 6
|
||||||
|
30 31 13 32 33 14 17 34 35
|
||||||
|
18 17 34 35 18 21 36 37 22
|
||||||
|
21 36 37 22 25 38 39 26 25
|
||||||
|
38 39 26 2 9 40 28 2 9
|
||||||
|
40 28 6 11 41 30
|
||||||
|
CELL_TYPES 12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
12
|
||||||
|
|
||||||
|
CELL_DATA 12
|
||||||
|
SCALARS mat_id int
|
||||||
|
LOOKUP_TABLE default
|
||||||
|
2 2 1 1 1 1 2 1 1
|
||||||
|
1 1 2
|
||||||
|
|
||||||
|
POINT_DATA 42
|
||||||
|
SCALARS node_groups int
|
||||||
|
LOOKUP_TABLE default
|
||||||
|
0 0 0 0 0 0 0 0 0
|
||||||
|
0 0 0 1 1 1 1 0 0
|
||||||
|
0 0 0 0 0 0 0 0 0
|
||||||
|
0 0 0 0 0 1 1 0 0
|
||||||
|
0 0 0 0 0 0
|
22
test/data/meshio_meshes/vtk/gh-935.vtk
Normal file
22
test/data/meshio_meshes/vtk/gh-935.vtk
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# vtk DataFile Version 3.0
|
||||||
|
vtk output
|
||||||
|
ASCII
|
||||||
|
DATASET UNSTRUCTURED_GRID
|
||||||
|
POINTS 6 float
|
||||||
|
0 1 0.0
|
||||||
|
0 0 0.0
|
||||||
|
1 0 0.0
|
||||||
|
0 1 0.0
|
||||||
|
1 0 0.0
|
||||||
|
1 1 0.0
|
||||||
|
CELLS 2 8
|
||||||
|
3 0 1 2
|
||||||
|
3 3 4 5
|
||||||
|
CELL_TYPES 2
|
||||||
|
5
|
||||||
|
5
|
||||||
|
CELL_DATA 2
|
||||||
|
POINT_DATA 6
|
||||||
|
SCALARS sol float 2
|
||||||
|
LOOKUP_TABLE default
|
||||||
|
-1 1 -1 0 0 -0 0 0 0 0 0 0
|
2500
test/data/meshio_meshes/vtk/rbc_001.vtk
Normal file
2500
test/data/meshio_meshes/vtk/rbc_001.vtk
Normal file
File diff suppressed because it is too large
Load Diff
BIN
test/data/meshio_meshes/vtu/00_raw_binary.vtu
Normal file
BIN
test/data/meshio_meshes/vtu/00_raw_binary.vtu
Normal file
Binary file not shown.
BIN
test/data/meshio_meshes/vtu/01_raw_binary_int64.vtu
Normal file
BIN
test/data/meshio_meshes/vtu/01_raw_binary_int64.vtu
Normal file
Binary file not shown.
BIN
test/data/meshio_meshes/vtu/02_raw_compressed.vtu
Normal file
BIN
test/data/meshio_meshes/vtu/02_raw_compressed.vtu
Normal file
Binary file not shown.
1
test/data/meshio_meshes/wkt/simple.wkt
Normal file
1
test/data/meshio_meshes/wkt/simple.wkt
Normal file
@ -0,0 +1 @@
|
|||||||
|
TIN (((0 0 0, 0 0 1, 0 1 0, 0 0 0)), ((0 0 0, 0 1 0, 1 1 0, 0 0 0)))
|
4
test/data/meshio_meshes/wkt/whitespaced.wkt
Normal file
4
test/data/meshio_meshes/wkt/whitespaced.wkt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
TIN (
|
||||||
|
((0
|
||||||
|
0 0, 0 0.00 .1, 0. 0.1 0, 0 0 0)), (
|
||||||
|
( 0 0 0 , 0 1 0, 1 1 0, 0 0 0)))
|
@ -131,6 +131,8 @@ SET(SESSION_FREE_TESTS
|
|||||||
doublenodes_polyhedra.py
|
doublenodes_polyhedra.py
|
||||||
shaper_smesh_groups_without_session.py
|
shaper_smesh_groups_without_session.py
|
||||||
ssl_hdf5_symbols_conflicts.py
|
ssl_hdf5_symbols_conflicts.py
|
||||||
|
SMESH_MeshioShapes.py
|
||||||
|
SMESH_MeshioFiles.py
|
||||||
)
|
)
|
||||||
|
|
||||||
# Additional files to install (not tests)
|
# Additional files to install (not tests)
|
||||||
|
Loading…
Reference in New Issue
Block a user