Mesh Linking

Importing a mesh allows a Mechanical simulation (target design) to be solved using the meshes created from a previously completed simulation (source design). The Mechanical simulation time can be reduced by eliminating the time spent on creating a mesh. Additionally, matched meshes improve the accuracy of mapping for imported EM Loss excitations in Thermal solutions.

You can import a mesh from another design in the same project file or from a different project.

Mesh linking will work if the following two conditions are satisfied:

See Mesh Linking Requirements below for more information.

You can import meshes from the following types of source designs into a Mechanical target design:

Note:
  • You cannot import a mesh from a Mechanical–Thermal source design (either Steady-State or Transient) if it includes any Thermal Contact assignments, unless the target design is also one of the two Mechanical–Thermal solution types. The specific source and target solution types do not have to match. That is, one can be steady-state and the other transient. An additional requirement is that the target Thermal design must have Contact assignments at the same faces as the source design, though the thermal resistance values can differ between the source and target designs.
  • You cannot import a mesh from an HFSS source design that includes an IE or PO Region.
  • Source designs can include sheet objects, and the sheet objects must remain active model objects in the Mechanical target design for mesh linking to work.
  • For all Mechanical designs (Modal, Thermal, and Structural solutions), you cannot assign boundaries or excitations to sheet objects. These objects are ignored by the solver.

    For Thermal solutions only, you can select the Shell Element attribute in a sheet object's properties, and then you can assign it boundaries and excitations. Shell object participate in thermal solutions.

  • HFSS FE-BI and Dielectric Cavity types of Hybrid Regions and other vacuum or air regions in source designs are supported for mesh linking.
    • Thermal Solutions: For such regions in Thermal solutions, clear the Solve Inside attribute in the region's properties.
    • The ambient air or fluid around solid objects is generally represented by Convection boundaries. Specified or imported convection film coefficients take into account the effect of fluid motion along the convection surfaces. Clearing the Solve Inside attribute prevents redundant heat conduction through the region, which would occur in parallel with the convection boundary's effects.

      Mesh linking will work when you choose not to solve inside an object. Conversely, deleting the region or setting it as a non-model object (by clearing the Model attribute), would prevent mesh linking from working, because the active source and target geometry would no longer be identical.

    • Modal and Structural Solutions:, Avoid mesh linking from source design that contain such air or vacuum regions. The reasons are as follows:
      • If you were to include an air or vacuum region, you would have to define very small, arbitrary, non-zero Mass Density and Young's Modulus values in the material properties, along with an arbitrary Poisson's Ratio value. For Modal solutions, the region would move with the solid objects as they vibrate, and the additional mass and stiffness, though small, could somewhat skew the Modal results. You might also encounter vibration modes in the air or vacuum regions themselves.
      • Mesh linking will fail if you set included vacuum or air regions to non-model objects (that is, if you clear the Model attribute in the object properties). It will fail because the active geometries are no longer identical between the two designs.
      • Clearing the Solve Inside attribute would prevent mesh linking from failing. But, if you don't solve inside the air or vacuum region, no displacement can occur. That is, the region will behave as a rigid body. Therefore, nothing in contact with the region would be able to deform. Mode shapes and frequencies could not be determined, thermal expansion or contraction would be prevented, and thermal stress results would be incorrect.
  • The source and/or target designs can contain 3D Components if they're not encrypted. When an encrypted 3D Component is involved, mesh linking is only supported when the source and target design type and solution type are the same (for example, Mechanical – Thermal source and Mechanical – Thermal target).

How to Import a Mesh:

Prior to importing a mesh, ensure that you have created an exact duplicate of the source model geometry and object names by following the steps outlined under Mesh Linking Requirements.

Mesh linking is set up as part of specifying the Solution Setup. The settings for importing a mesh are found under the Advanced tab of the Modal Solve Setup, Thermal Solve Setup, or Structural Solve Setup dialog box:

  1. Select the Import mesh option.
  2. The Setup Link dialog box appears if a link hasn't been specified previously:

  3. If the mesh is to be imported from a design in the same project:
    1. Select Use This Project:
    2. Skip to step 5.
    Note:

    It is convenient to include source and target designs within the same project. Doing so keeps all project files in the same location and is the most convenient and straightforward way to organize linked designs. However, this approach may be impractical when there is a large number of designs in the project.

  4. Otherwise, if the mesh source is to be from a different project, clear Use This Project. The Mechanical design saves the relative path to the source project in one of two ways.
  5. Choose one of the following two options under Save source path relative to:

    • The project directory of selected product: Save source project path relative to the default Project folder specified in the Options dialog box (Tools > Options > General Options):
    • This project: Save source project path relative to the target project location.
  6. Click the ellipsis button ( ... ).
  7. The Open dialog box appears. Then:

    1. Locate the source project file and select it.
    2. Click Open.

    The selected project is listed in the Setup Link dialog box:

  8. Choose the Source Design and Source Solution from the provided drop-down menus:
  9. Note:

    These two settings are automatically populated with an available design and solution in the source project. However, if more than one other design or solution exists in the source project, you can manually select the desired ones (if different from the automatically selected design or solution).

  10. Optionally, select one or both of the following two options:
    • Simulate source design as needed: Select this option if you want an updated source mesh to be linked to the target design when the source design has been modified.
    • Preserve design solution: When the source design is in a separate project, and that project is closed, the source design will not be saved (preserving the preexisting solution data). This option is not applicable if the source design is in the same project as the target design.
    • Note:

      In the Extractor mode, the source project will be saved upon exit. Extractor mode means that the source project is opened during the link solely for the purpose of solving.

  11. Click the Variable Mapping tab.
  12. If design variables have been defined in the source design, they are listed in the Variable from Source Design column. Initially, the nominal value of each variable is listed in the Value Mapped to Source Design column:

    The values passed back to the source design from the mechanical design (second column) can either be constants (numerical values), variables, or expressions. The specified values determine the variation from which the source design provides the linked data.

    Note:

    Automatic variable creation is supported in the Variable Mapping tab. You can directly type a new variable name into the Value Mapped to Source Design column, and the Add Variable dialog box will appear, in which you can define the Units and Value of the variable. The specified value can be a constant, a variable name, or an expression.

  13. Optionally, to keep the source and target design variables synchronized, click Map Variable by Name. Then, the same variable names will appear in both columns, and the values will remain synchronized between the two mesh-linked analyses.
  14. Important:
    • Variables can only be mapped by name if they already exist in the Mechanical design. When you copy and paste geometry from the source, or import it from the clipboard, variables used in the definition of the geometry automatically come into the Mechanical design. However, for non-geometry-related variables (such as a variable voltage or wattage applied to an excitation in the HFSS Edit post process sources dialog box), the variables will not automatically appear in the Mechanical design. There is no consequence to this limitation though, since only variables that affect the geometry will affect the modal results.
    • When the Value Mapped to Source Design column contains constants, those constant values will be passed to the source design even if you change the associated variable's value in the target design's Properties dialog box (Mechanical > Design Properties) or in the docked Properties window (with the target design selected in the Project Manager).
    • If you have not mapped the detected variables by name, you will be prompted with a warning upon attempting to close the Setup Link dialog box. The warning will allow you to return to the Variables Mapping tab to click the Map Variable by Name button. Alternatively, you can accept the unsynchronized variables and close the dialog box.
  15. In the Additional mesh refinements tab of the Setup Link dialog box, choose one of the following two options:
    • Apply mesh operations in target design on the imported mesh
    • Ignore mesh operations in the target design

    (depending on whether or not you want the target Mechanical solution to perform further mesh refinement on the imported mesh).

    Note:
    • Changing the Additional mesh refinement settings does not invalidate the cached link data (meshes from source design).
    • When the source and target for mesh linking are both Mechanical–Thermal designs in which one or more Thermal Contact assignments exist, mesh operations cannot be performed in the target design. If you attempt to do so by selecting the first option, a warning message is produced stating that mesh operations cannot be performed on the target design. The warning message won't prevent the solution from running. The solution will be based on the unmodified imported mesh.
  16. Click OK to close the Setup Link dialog box.
  17. If you are done with the thermal solution setup, click OK to close this dialog box too.
  18. Optionally, for Thermal solution models including an imported vacuum, fluid, or air region that you want to exclude from participating in the thermal solution, select that object in the History Tree. Then, in the docked Properties window, clear the Solve Inside option.
Tip:

If you define a link setup for importing a mesh and later revisit the Link Setup dialog box, it will be in View Only mode. The settings will be displayed but unavailable for editing. Select the Edit Link option under the General tab to return the dialog box to the editing mode.

If you want to import the mesh from an existing solution setup to a new solution setup in the same design, a command is available to automate the process. The program can automatically create a new target solution setup that is configured to link to, and import the mesh from, the source solution setup. To use this feature, do the following:

  1. Under Analysis in the Project Manager, right-click the existing solution setup that you want to use as a mesh source for a new setup.
  2. Choose Add Mesh Linked Solution Setup from the shortcut menu:
  3. The new setup is added under Analysis in the Project Manager. If you look at the properties of this new setup, you will see that the link to the setup that you initially right-clicked is already defined.

  4. Optionally, edit the settings in the new analysis setup as desired.

Verifying Mesh Linking

There are two ways to verify that mesh linking has been performed after the source and target setups have been analyzed:

Mesh Linking Requirements

As stated previously, you can reuse a mesh from an existing source design in a target design if all objects have matching names and identical geometry (based on each object having the same model history in both designs). The easiest way to achieve this result is to copy and paste the items from one design into the other. The objects will be supported for mesh linking regardless of the order of the copy/paste operations.

In the following procedure, all objects are copied and pasted from one design to the other in a single operation:

After you create the duplicate model using one of the above methods, create a Solution Setup in the target design. Use the procedure outlined previously under How to Import a Mesh.

Cached Link Data and Solution Invalidation

The meshes from the source design are cached in the target design after its simulation. You can remove these cached meshes (instructions below).

If you've updated the source design and want the imported mesh in the target design to reflect the changes in the source project, you need to clear the linked data. Doing so invalidates the previous solutions. Clear the linked data using one of the following two methods:

Method 1: (to clear linked data and/or solutions)

  1. Using the menu bar, click Mechanical > Results > Clean Up Solutions.
  2. The Clean Up Solutions dialog box appears.

  3. In the Solutions section of the dialog box, choose one of the following sets of options:
    • Select the Linked Data Only option.
    • Select the Fields and Meshes and Include Linked Data options.
    • Select the All Solutions and Include Linked Data options.
  4. Click Do Deletions.

Method 2: (to clear linked data only)

Note:
  • Current meshes and previously solved results are invalidated when the cached mesh is cleared.
  • Meshes are cached for each solution setup with an imported mesh specified.
  • The cached mesh is automatically cleared when the target Mechanical design is edited in a way that invalidates its mesh (such as adding, removing, or modifying geometry).
  • Cached meshes in the target (Mechanical) design are not automatically removed when the source design is edited.