See the section Imported Meshes and Element Orders for information on how elements are curved when working with imported meshes and
Mesh-Based Geometry sequences. See also
Importing Meshes from Files with Length Unit and
Importing Externally Generated Mesh Data for details about files containing length units, what to think about when importing incomplete mesh data and when transferring domain and boundary data.
When you import mesh from a file that defines a length unit, the import operation scales the imported mesh to match the length unit of the Component with the Mesh node containing the corresponding
Import node. For an
Import node under a
Mesh Part node, the import operation scales the mesh if the
Use units checkbox is selected.
This file contains domain elements only with geometric entity information dividing the mesh into two domains. Now, export the imported mesh to a file using the default settings. Then, compare the resulting file (see mesh_example_4.mphtxt) with the file
mesh_example_1.mphtxt and note that the exported file contains complete mesh information; that is, it contains domain elements, boundary elements, edge elements, vertex elements, and geometric entity information.
See the section Creating a Computational Mesh for Imported Mesh Data for more information about generating a mesh that can be used for computation.
If you have an externally generated mesh with a predefined partitioning of the elements, you can transfer this partitioning to COMSOL Multiphysics by specifying geometric entity information in the .mphtxt file. To illustrate this, import the file
mesh_example_2.mphtxt. This file contains domain elements only, without any geometric entity information. The imported mesh consists of one domain only. Note that the imported mesh from the file
mesh_example_1.mphtxt consists of two domains according to the given geometric entity information.
To transfer boundary partitioning information of an externally generated mesh you need to include boundary elements with the corresponding geometric entity information in the .mphtxt file. To illustrate this, import the file
mesh_example_3.mphtxt with the
Boundary partitioning option set to
Minimal. This file contains domain and boundary elements with geometric entity information defining 5 boundaries. Note that the imported mesh also has 5 boundaries. Now import the file
mesh_example_1.mphtxt that has no boundary information, using the same import settings. Note that the imported mesh now has 3 boundaries only because the Minimal option generates the minimal possible partitioning that is required by the topological criteria.