Custom Template AIM
In this video, I'll show you how a user-defined template can be used to customize AIM for the simulation of a piping system. User-defined templates can be used for defining custom workflows and capturing engineering knowledge and best practices.
Simulation Process Overview
-
Template Setup:
- Select and execute a user-defined template.
- The template sets up three simulation workflows:
- Fluid flow
- Structural analysis
- Modal analysis
-
Fluid Flow Simulation:
- Select the Import task and use the Fix option to select the geometry import source.
- Select the Flow Physics task and use the Fix option to navigate through the workflow.
- Define the properties of the inlet boundary condition:
- Select the inlet surface.
- Use an expression defined by the custom template to define the profile and magnitude of the inlet velocity.
- Define an inlet temperature of 0.1 and set the temperature to 0.5 degrees Celsius.
- Execute the solution and update the results task to compute the fluid results.
- Review key results:
- Contour of the fluid velocity on the fluid streamlines.
- Fluid wall temperature, with the average wall temperature available as a named value for structural simulation.
-
Structural Simulation:
- Update the results task to generate the structural mesh, execute the solution, and compute the structural results.
- Review results:
- Deformation of the pipe from fluid forces and thermal loads.
- Equivalent stress results, highlighting high stresses in the pipe supports.
-
Modal Analysis:
- Update the results task to execute the solution and compute the natural frequencies and mode shapes for the piping assembly.
- Review the natural frequency and mode shape for each of the first three modes of vibration.
Custom Template Details
The custom template automates various aspects of the simulation process:
- Location selection is automated using selection sets imported from the geometry source, such as SpaceClaim.
- Named values allow calculated data to be shared between different tasks in the simulation process.
- Named expressions define parameters and functions for pre- and post-processing properties.
- Fluid boundary conditions are automatically defined by selection sets, except for the primary inlet velocity and temperature, which require direct input.
- Structural boundary conditions are also automatically defined by selection sets.
- The thermal load for the piping assembly is defined by a named value computed from the average wall temperature in the fluid flow simulation.
- For modal analysis, an expression adds the additional mass from the fluid inside the pipe to the density of the steel to compute natural frequencies and mode shapes.
Example of a Different Configuration
The user-defined template can simulate various design configurations. Here's an example of a different configuration of the piping assembly:
- Flow results for the new design generated by the user-defined template.
- Deflection and stress results generated by the template.
- The first mode of vibration defined by the user-defined template.
Conclusion
To recap, in this demonstration, I've used a user-defined template to automate the flow, stress, and modal analysis of a piping assembly. Thanks for watching this demonstration of ANSYS AIM.
In this video, I'll show you how a user-defined template can be used to customize ANSYS Integrated Modeling (AIM) for the simulation of a piping system. User-defined templates can be used for defining custom workflows and capturing engineering knowledge and best practices.
I'll begin by selecting and executing a user-defined template. The template is now complete. It's set up three simulation workflows, one for fluid flow, one for structural analysis, and one for modal analysis. By following the task workflow, AIM will guide me through the entire simulation process.
I'll begin by selecting the Import task and using the Fix option to select the geometry import source. Next, I'll select the Flow Physics task. And I'll use the Fix option to quickly navigate through the workflow. Then I'll navigate to the model input that requires my attention.
Here I need to define the properties of the inlet boundary condition. First, I'll select the inlet surface. And then I'll use an expression defined by the custom template to define the profile and the magnitude of the inlet velocity.
And then to complete the boundary condition, I'll define an inlet temperature of 0. 1. And I'll set the temperature to 0.5 degrees Celsius. Now I'll go ahead and execute the solution. I'll update the Results task. And this will execute the solution and compute the fluid results.
The results defined from the custom template are now available. And I'll review some of the key results from the fluid simulation. First, I'll review a contour of the fluid velocity on the fluid streamlines. This shows how the fluid flows through the pipe and around the valve.
Next, I'll review the fluid wall temperature. Note that the average wall temperature is available as a named value. And it can be used in the structural simulation. Next, I'll proceed with the structural simulation. Notice that all the structural tasks are ready to update.
I'll update the Results task. And this will generate the structural mesh, execute the solution, and compute the structural results. The structural solution is now complete. I can review the deformation of the pipe from both the fluid forces and the thermal loads.
I can also review the equivalent stress results, which show high stresses in the pipe supports. The next step is to complete the modal analysis. Again, I'll update the Results task. And this will execute the solution and compute the natural frequencies and the mode shapes for the piping assembly.
The template has defined the results for the first three modes of vibration. And I can review the natural frequency and the mode shape for each individual mode of vibration.
Now that all the simulation steps defined by the custom template are complete, I'll show you more details as to how the custom template is defined. To automate location selection in the template, selection sets are imported from the geometry source, in this case SpaceClaim.
The template defines a number of name values. These allow calculated data to be shared between different tasks in the simulation process. Named expressions allow parameters and functions to define pre- and post-processing properties.
This expression defines the inlet velocity profile as a function of the pipe radius and is used to define the fluid inlet boundary condition.
All of the fluid boundary conditions are automatically defined by selection sets in the template, except for the primary inlet velocity and temperature, which the custom template prompted me to input directly.
All of the structural boundary conditions are also automatically defined by selection sets in the template. Note that the thermal load for the piping assembly is defined by a name value. This value is computed in the fluid flow simulation from the average wall temperature.
For the modal analysis, the template automatically defines an expression to add the additional mass from the fluid inside the pipe to the density of the steel to compute the natural frequencies and mode shapes.
The user-defined template can be used to simulate any number of similar design configurations. Here's an example of a different configuration of the piping assembly. Shown here are the flow results for the new design generated by the user-defined template.
Shown here are the deflection and stress results generated by the template. And finally, the first mode of vibration defined by the user-defined template. To recap, in this demonstration, I've used a user-defined template to automate the flow, stress, and modal analysis of a piping assembly.
Thanks for watching this demonstration of ANSYS AIM.

