Convert

From PHASTA Wiki
Jump to: navigation, search

Convert, often referred to simply as "Convert", is a tool used to convert Geometric model files into a file type usable with the preprocessing tools utilized in this group.

Overview

The main goal of Convert is to take a Symmetrix model and mesh and convert it to .cnn and .crd files, though there are also versions that will push the model to .dmg format.

For all of the options below, also note that you should always use a version of convert built for the specific version of Simmodeler used to generate the mesh. This is most easily achieved by using up-to-date versions.

Convert

Convert takes in a .xmt_txt, .xmt_txt, and a .smd file and outputs .cnn, .crd files, and a ./mdsMesh directory. A specific implementation will look like:

mpirun -np 1 /projects/tools/SCOREC-core/buildTestMergeEWT/test/convert --model-face-root=4321 --native_model=geom.xmt_txt geom.smd geom.sms mdsMesh/

Where the root face is the face which holds the original meshing attributes in Simmodeler (extrusion meshing from within simmodeler would originate from this face).

Other Functionality

Note that Convert can intake multiple model regions if that is required for a geometry. This is available in the main bran and simply takes in more than one model root face arguments in a separate file. This file should have all of the root faces in a new-line delimited format, and the call to convert changes to:

mpirun -np 1 /projects/tools/SCOREC-core/buildTestMergeEWT/test/convert --model-face-root=ExtruRootID.txt --native_model=geom.xmt_txt geom.smd geom.sms mdsMesh/

Where ExtruRootID.txt is the file containing the root face ID's.


Model Convert

Convert takes in a .xmt_txt or .smd file and outputs a .dmg file. This file type simply stores information about model faces, edges, and vertices, and their relationships to each other. This is needed to classify mesh points.


Please note that there is a known issue with simmodler where performing certain geometric transformations and adjustments can cause the .smd and _nat.x_t to have disagreeing model tags for the same model entity. In this scinario other tools will lean on the information in the .smd so it is best to use mdlConvert with a .smd file as input.