Importing NASTRAN Meshes
Use an Import node () to import 3D meshes (and planar 2D meshes) in the NASTRAN bulk data format, the most common format for exchanging 3D meshes among programs.
Figure 8-21: The imported NASTRAN mesh used for the simulation in the tutorial Eigenvalue Analysis of a Crankshaft.
This format supports hundreds of NASTRAN entries describing elements, loads, and materials, making it possible to define a complete finite element model. When you import a NASTRAN bulk data file into COMSOL Multiphysics, the software only imports mesh and material information, while creating appropriate selections. For import in 2D, the third coordinate must then be the same for all mesh points. To position, rotate, and scale the mesh, use one or several Transform attributes.
Imported Meshes and Element Orders for information about curved elements.
To import additional meshes, add another Import node. Then COMSOL Multiphysics adds the elements of the newly imported mesh to the existing mesh.
Meshes from different Import nodes form an assembly. See Conforming, Nonconforming, and Nonmatching Meshes for more information about assembly type meshes.
The Import operation will change the number of entities in the mesh, so unless the meshing sequence is defining its own geometric model, a new meshing sequence of this type will be set up automatically. Then, the Import node will be added in the new sequence.
See The Mesh Node to read more about meshing sequences and meshes that define their own geometric models.
Enter the properties for the import using the following sections:
Import
Specify the filename in the Filename field or click the Browse button. You can also click the downward arrow beside the Browse button and choose Browse From () to open the fullscreen Select File window. Click the downward arrow for the Location menu () to choose Show in Auxiliary Data () to move to the row for this file in the Auxiliary Data window, Copy Location (), and (if you have copied a file location) Paste Location ().
If you have changed some property, the software automatically reimports the mesh when you click a build button. For import of a meshing sequence, select Build source mesh automatically (selected by default) to automatically build the source sequence and reimport the current version of the mesh. This is required when running a parametric sweep over some parameter that affects the source mesh.
Import of Materials
To import mesh and material data from a NASTRAN file, select Mesh and materials in the Data to import list. In this case, COMSOL Multiphysics creates Material nodes corresponding to the data in any MAT1 and MAT10 entries in the file. Furthermore, the thickness data of any PSHELL entry in the file is stored in a Variables node as long as it is greater than zero. To simplify the use of this data in physics interfaces, such as the Shell interface, an Explicit selection that contains all boundary faces associated with PSHELL entries, also becomes available. If the material data is not required, select Only mesh to import the mesh only.
Mesh information is read from different NASTRAN entries, including those for mesh elements of lower dimension. When this information is not complete in the file, COMSOL Multiphysics enriches the imported mesh data with boundary elements, edge elements, and vertex elements such that a valid mesh object is formed. Each element in the imported mesh receives a unique entity index.
For information on the NASTRAN entries that COMSOL Multiphysics supports, see Import in the COMSOL Multiphysics Programming Reference Manual (Meshing).
Partitioning of Entities and Creation of Selections
To use material data in the file to determine the partitioning of the elements, select the Partition according to material data check box (selected by default). The Create selections check box is selected by default to automatically generate selections deduced from the file. Domain, boundary, and edge selections are created for each property id (PID) of the elements in the file. Mesh elements associated with RBE entries (RBE2 and RBE3) can form selections of all geometric entity levels. The created selections appear in Domain Selections, Boundary Selections, Edge Selections, and Point Selections sections, depending on their entity levels. The origin of each created selection is described in the Source in file column. These selections become available for specifying geometric entities throughout the component — for instance, in Material nodes and physics interfaces. The Allow partitioning of shells check box is selected by default to allow the boundary partitioning algorithm to split the boundary entities that are defined based on the data in the file into smaller parts.
Import of Second-Order Elements
The import of NASTRAN files supports first-order (linear) and second-order elements. To import the second-order elements in the NASTRAN file as linear elements (that is, ignoring node points not in element vertices), select the Import as linear elements check box (not selected by default).
Import of Domain Elements
In 3D, select the Import domain elements check box to import volumetric elements, such as tetrahedrons, hexahedrons, prisms, and pyramids. Clear this check box to import boundary elements only. The setting is selected by default.
Boundary Partitioning Properties
When a mesh is imported into COMSOL Multiphysics, the operation automatically determines a partitioning of the mesh into domains, boundaries, edges, and points. If the automatically performed partitioning does not match the requirements, you can modify the face partitioning by manually adjusting the corresponding parameters. For details, see the section Boundary Partitioning Properties.
Entity Selections
The sections Domain Selections, Boundary Selections, Edge Selections, and Point Selections appear after building the Import operation. The selections are generated during the import based on selections defined in the source. In the Name column, the name of each selection appears. For NASTRAN file import, the source of each selection appears in Source in file column (that is, which information in the imported file that was used to generate the selection). Select the name in the Name column to highlight the selection in the Graphics window. You can change the name of a selection by editing the corresponding table entry in the Name column. Note that not all of these selection sections are available for all space dimensions.
The selections can be used to specify entity selections in operations and attributes within the same meshing sequence and, if the mesh defines the component’s geometric model, for physics and material settings. For more information about the component’s geometric model, see The Mesh Node.
For a tutorial importing a NASTRAN mesh, see Eigenvalue Analysis of a Crankshaft:
Application Library path COMSOL_Multiphysics/Structural_Mechanics/crankshaft.