Introduction to COMSOL Multiphysics

[Pages:214]INTRODUCTION TO

COMSOL Multiphysics

Introduction to COMSOL Multiphysics

? 1998?2019 COMSOL Protected by patents listed on patents, and U.S. Patents 7,519,518; 7,596,474; 7,623,991; 8,457,932; 8,954,302; 9,098,106; 9,146,652; 9,323,503; 9,372,673; 9,454,625; and 10,019,544. Patents pending. This Documentation and the Programs described herein are furnished under the COMSOL Software License Agreement (sol-license-agreement) and may be used or copied only under the terms of the license agreement. COMSOL, the COMSOL logo, COMSOL Multiphysics, COMSOL Desktop, COMSOL Compiler, COMSOL Server, and LiveLink are either registered trademarks or trademarks of COMSOL AB. All other trademarks are the property of their respective owners, and COMSOL AB and its subsidiaries and products are not affiliated with, endorsed by, sponsored by, or supported by those trademark owners. For a list of such trademark owners, see trademarks.

Version: COMSOL 5.5

Contact Information

Visit the Contact COMSOL page at contact to submit general inquiries, contact Technical Support, or search for an address and phone number. You can also visit the Worldwide Sales Offices page at contact/offices for address and contact information.

If you need to contact Support, an online request form is located at the COMSOL Access page at support/case. Other useful links include:

? Support Center: support ? Product Download: product-download ? Product Updates: support/updates ? COMSOL Blog: blogs ? Discussion Forum: munity ? Events: events ? COMSOL Video Gallery: video ? Support Knowledge Base: support/knowledgebase

Part number: CM010004

Contents

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 COMSOL Desktop? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Example 1: Structural Analysis of a Wrench. . . . . . . . . . . . . . . 33

Model Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 Geometry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39 Global Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40 Physics and Boundary Conditions . . . . . . . . . . . . . . . . . . . . . 42 Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 Convergence Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 Example 2: The Busbar -- A Multiphysics Model . . . . . . . . . . 59 Model Wizard. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 Global Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65 Auto Completion and Find for Parameters and Variables . 66 Geometry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Physics and Boundary Conditions . . . . . . . . . . . . . . . . . . . . . 77 Mesh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85 Study . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

| 3

Building an Application with the Application Builder. . . . . . 96 Advanced Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

Parameters, Functions, Variables, and Couplings . . . . . . . . 110 Material Properties and Material Libraries. . . . . . . . . . . . . . 114 Adding Meshes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116 Adding Physics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Parametric Sweeps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141 Parallel Computing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 COMSOL Multiphysics Client-Server . . . . . . . . . . . . . . . . . 156 Appendix A -- Building a Geometry . . . . . . . . . . . . . . . . . . . 159 Appendix B -- Keyboard and Mouse Shortcuts . . . . . . . . . . 176 Appendix C -- Language Elements and Reserved Names . 181 Appendix D -- File Formats . . . . . . . . . . . . . . . . . . . . . . . . . . 195 Appendix E -- Connecting with LiveLinkTM Add-Ons . . . . . 202

4 |

Introduction

Read this book if you are new to COMSOL Multiphysics?. It provides an overview of the COMSOL? environment with examples that show you how to use the COMSOL Desktop? user interface and the Model Builder. It also provides a quick introduction to creating applications using the Application Builder. If you have not yet installed the software, install it now according to the instructions at product-download. In addition to this book, an extensive documentation set is available after installation. Tutorials can be found throughout the COMSOL website, including in the Video Gallery at videos and on the COMSOL Blog at blogs.

| 5

COMSOL Desktop?

QUICK ACCESS TOOLBAR -- Use these buttons for access to functionality such as file open/save, undo/redo, copy/paste, and delete.

APPLICATION BUILDER -- Click this button to switch to the Application Builder and start building an application based on your model.

MODEL BUILDER TOOLBAR

MODEL TREE -- The model tree gives an overview of the model and all of the functionality and operations needed for building and solving

RIBBON -- The ribbon tabs have buttons and drop-down lists for controlling all steps of the modeling process.

MODEL BUILDER --

The Model Builder window with its model tree and the associated toolbar buttons gives you an overview of the model. The modeling process can be controlled from context-sensitive menus

SETTINGS WINDOW --

Click any node in the model tree to see its associated Settings window displayed next to the Model Builder.

6 |

GRAPHICS WINDOW TOOLBAR

GRAPHICS WINDOW -- The Graphics window presents interactive graphics for the Geometry, Mesh, and Results nodes. Operations include rotating, panning, zooming, and selecting.

INFORMATION W1NDOWS -- The Information windows will display vital model information during the simulation, such as the solution time, solution progress, mesh statistics, solver logs, and, when available, results tables.

| 7

The screenshot on the previous pages is what you will see when you first start modeling in COMSOL Multiphysics using the Model Builder. The COMSOL Desktop? user interface provides a complete and integrated environment for physics modeling and simulation as well as application design, providing you with the tools necessary to build a user-friendly interface for your models. You can customize the desktop to your own needs. The windows can be resized, moved, docked, and detached. Any changes you make to the layout will be saved when you close the session and available again the next time you open COMSOL Multiphysics. As you build your model, additional windows and widgets will be added. (See page 26 for an example of a more developed desktop.) Among the available windows and user interface components are the following:

Quick Access Toolbar The Quick Access Toolbar gives access to functionality such as Open, Save, Undo, Redo, Copy, Paste, and Delete. You can customize its content from the Customize Quick Access Toolbar list (the downward-facing arrow to the right of the toolbar).

Ribbon The ribbon at the top of the desktop gives access to commands used to complete most modeling tasks. The ribbon is only available in the Windows? version of the COMSOL Desktop environment and is replaced by menus and toolbars in the OS X and Linux? versions. Click the Application Builder button to switch from the Model Builder to the Application Builder and start building an application based on your model.

Settings Window This is the main window for entering all of the specifications of the model, including the dimensions of the geometry, properties of the materials, boundary conditions and initial conditions, and any other information that the solver will

8 |

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download