The COMSOL Multiphysics Physics Builder Manual
Total Page:16
File Type:pdf, Size:1020Kb
COMSOL Multiphysics Physics Builder Manual Physics Builder Manual © 1998–2018 COMSOL Protected by patents listed on www.comsol.com/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; and 9,454,625. Patents pending. This Documentation and the Programs described herein are furnished under the COMSOL Software License Agreement (www.comsol.com/comsol-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 www.comsol.com/trademarks. Version: COMSOL 5.4 Contact Information Visit the Contact COMSOL page at www.comsol.com/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 www.comsol.com/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 www.comsol.com/support/case. Other useful links include: • Support Center: www.comsol.com/support • Product Download: www.comsol.com/product-download • Product Updates: www.comsol.com/support/updates • COMSOL Blog: www.comsol.com/blogs • Discussion Forum: www.comsol.com/community • Events: www.comsol.com/events • COMSOL Video Gallery: www.comsol.com/video • Support Knowledge Base: www.comsol.com/support/knowledgebase Part number: CM020009 Contents Chapter 1: Introduction About the Physics Builder 14 What Can You Do With the Physics Builder? . 14 Where Do I Access the Documentation and Application Libraries? . 15 Overview of the Manual 17 Chapter 2: Physics Builder Design Overview of the Physics Builder 20 Creating a New Physics Builder File. 20 The Physics Builder Window . 21 The Physics Builder Manager . 22 Saving and Opening Custom Physics Interfaces . 22 Designing the GUI Layout 23 User Inputs and GUI Components . 23 User Input Group GUI Options . 26 Entering Names and Expressions 31 Entering Names . 31 Using Customized Names and Descriptions. 34 Entering Names of Operators and Functions . 35 Adding a Delimiter to a String . 36 Tensor Operators and Other Operators. 36 Using Ctrl+Space to Access Expressions . 41 Using Coordinate Systems 42 The Base Vector System . 42 The Input Base Vector System. 43 Transformation Between Coordinate Systems. 44 CONTENTS | 3 Specifying Selections 47 Selection Section Settings . 47 Selection Terminology . 49 Comparing Physics Builder Features 52 Comparing Results . 52 Copying and Pasting Physics Builder Nodes . 54 The Physics Builder Manager 56 Testing Custom Physics Interfaces . 56 The Development Files . 57 Compiling an Archive . 58 Working with Builder Archives . 59 Searching in Archives . 61 Chapter 3: Physics Builder Tools Building Blocks 64 Components . 64 Properties . 65 Features . 65 Multiphysics Couplings. 65 Code Editor. 66 About Links . 66 Dependencies . 67 External Resources 68 Import . 68 Definitions Library 69 Components 70 Creating Components . 70 Component . 71 Physics Interface Component . 72 Feature Component . 72 4 | CONTENTS Usage Condition . 73 Equation Display . 78 Component Link . 80 Feature Component Link. 81 Extra Dimension Link . 82 Properties 85 Property . 85 Property Link . 86 Tensor-Valued Function . 87 Physics and Multiphysics Interfaces 88 Creating a Physics Interface or a Multiphysics Interface . 89 Physics Interface . 90 Multiphysics Interface . 93 Contained Interface . 94 Physics Interface Component Link . 95 Auxiliary Settings (Physics Interface) . 96 Disable Allowed Study Types . 98 Menu . 98 Menu Item . 98 Physics Interface — Preview . 99 Multiphysics Interface — Preview . 99 Features 100 Generic Feature . 101 Domain Condition . 105 Boundary Condition . 106 Global Feature. 106 Domain Feature . 107 Boundary Feature . 107 Edge Feature . 107 Point Feature . 108 Pair Feature . 108 Contact Pair Feature . 109 Layered Material Feature . 110 Sector Symmetry Feature . 111 Device Model Feature . 111 CONTENTS | 5 Moving Frame Domain Condition . 111 Moving Frame Boundary Condition . 112 Input Dependency . 114 Periodic Feature . 114 Feature Link. 115 Multiphysics Feature . 116 Multiphysics Coupling . 117 Generic Multiphysics Coupling. 118 Global Multiphysics Coupling . 120 Domain Multiphysics Coupling. 120 Boundary Multiphysics Coupling . 121 Edge Multiphysics Coupling . 121 Point Multiphysics Coupling . 121 Pair Multiphysics Coupling . 122 Layered Material Multiphysics Coupling . 122 Coupling Type Contribution . 123 Contained Feature . 123 Auxiliary Settings (Feature Nodes) . 123 Auxiliary Settings (Multiphysics Couplings) . 125 Geometric Nonlinearity . 126 Physics Symbol. 127 User Inputs 130 Creating User Inputs . 130 User Input . 132 Selectable Input . 134 Selection Input. 134 Boolean Input . 137 User Input Group . 138 Text Label . 139 Buttons . 140 Section . 141 Constraint Settings Section . 141 Material Property . 143 Socket Input . 145 Socket Output. 146 Material List. 147 External Material List . 149 6 | CONTENTS Feature Input . 149 Activation Condition . 152 Additional Requirement . 153 Allowed Values . 154 Activating Allowed Values . 154 Button . 155 Integer Values Check . 156 Real Values Check . 157 Regular Expression Check . 157 Named Group Members . 158 Variables 159 Creating Variables . 159 Variables for Degrees of Freedoms . 160 Variable Declaration . 160 Variable Definition . 164 Dependent Variable Definition. 168 Dependent Variable Declaration . 169 Discretization . 174 Initial Values . 174 Hide in GUI . 175 Disable in Solvers . 176 Degree of Freedom Initialization . 177 External Material Input/Output . 178 Component Settings . 178 Frame Shape . 180 ODE States Selection . 181 Equations 183 Weak Form Equation . 183 General Form Equation . 184 Coefficient Form Equation . 186 Boundary Element Equation. 188 Shared Quantity Definition . 191 Flux Definition. 191 Constraints 193 Constraint . 193 CONTENTS | 7 Weak Constraint. 195 Excluding Selection.