BlueQuartzSoftware / simplnx

The backend algorithms and framework associated with DREAM3DNX, a data analysis program for materials science data analytics
http://www.dream3d.io/
Other
7 stars 9 forks source link

FILT: Write Nodes and Elements File #1100

Open imikejackson opened 1 month ago

imikejackson commented 1 month ago

is this superseded by the "MeshIO" based python filters?

This is based on the DREAM.3D filter "WriteTriangleGeometry" but maybe updated with newer terminology.

In software like Abaqus, Ansys and other FEA simulations, they work with NODES and ELEMENTS which are the same as our SharedVertexList and SharedTriangleList.

We need a filter that can take any of a Vertex, Edge, Triangle or Quad geometry and export those into several files.

The input Parameters would be the which Geometry to write and the 2 output file names. Or maybe ask for an output folder and a string prefix then we can control the naming from there since writing a Vertex geometry will only produce a single file.

1: Nodes. Contains the vertices in comma delimited format Option to number the nodes

The output should be:

NODE_NUM,X,Y,Z

2: Elements: Contains each of the ***SharedList (EdgeSharedList, TriangleSharedList, QuadSharedList) data arrays stored into a file. Option to number the elements

The output line should be for Edge

ELEMENT_NUM,NUM_VERTS_IN_ELEMENT,V0_Index,V1_Index

The output line should be for Triangle

ELEMENT_NUM,NUM_VERTS_IN_ELEMENT,V0_Index,V1_Index,V2_Index

The output line should be for Quads

ELEMENT_NUM,NUM_VERTS_IN_ELEMENT,V0_Index,V1_Index,V2_Index,V3_Index
imikejackson commented 1 month ago

Write TetGen File in the NXDataAnalysisToolkit has this capability. But his only does tetrahedral geometries.