Latest Discussions - COMSOL Forums Most recent forum discussions Sun, 16 Jun 2019 21:16:55 +0000 COMSOL Forum: Latest Discussions Difference between MEF and EMW frequency study <p>There are two different physics interfaces Magnetic and Electric fields interface in ACDC module and Electromagnetic Fields, Frequency domain interface in RF module.</p> <p>As I understood from the manual, both interfaces work without any static assumptions in frequency domain analysis.</p> <p>MEF interface uses Maxwell-Ampère's law with displacement current included. And using the constitutive relations and equation of continuity it obtains two equations in terms of A and V and solves for these variables.</p> <p>EMW interface solves for the wave equation.</p> <p>These two methods seems equivalent to me. Are there any difference between them when used with a frequency domain study?</p> Sun, 16 Jun 2019 21:16:55 +0000 4.2019-06-16 21:16:55.237412 Matlab function <p>I have a couple of question;</p> <p>1-Is it necessary that the input arguments of MATLAB function should be equal in size? and also output argument when using Livelink Matlab</p> <p>In this case, the sizes of the arguments are ;</p> <p>c = 100</p> <p>cavg=1</p> <p>MI =1</p> <p>.................................................................</p> <p>function MI = MixingIndex(c,cavg)</p> <p>sumc=0;</p> <p>for n=1: length(c)</p> <p>a=(((c(n)-cavg/cavg)^2));</p> <p>sumc=sumc+a;</p> <p>end</p> <p>MI=(1-sqrt((1/length(c))<em>sumc))</em>100;</p> <p>...................................................................</p> <p>2- How can I use this external function as a stop condition?</p> <p>for example;</p> <p>MixingIndex(c,aeop1(c))&lt;0.5</p> <h2>aeop1(c) is the surface average on a boundry .</h2> <p>what is your suggestion to seek these goals?**</p> Sat, 15 Jun 2019 11:41:39 +0000 4.2019-06-15 11:41:39.237402 How to get Capacitance matrix from Stationary Source Sweep? <p>Hi,</p> <p>I am trying to find capacitance matrix for a simple 2D geometry of conductors. Using the Stationary Source Sweep study, I got the electric potential plot for the individual terminals.</p> <p>But in the results node, it shows no values for capacitance matrix. What setting do we need to extract capacitance matrix from Stationary Source Sweep?</p> <p>Thanks.</p> Fri, 14 Jun 2019 23:13:29 +0000 4.2019-06-14 23:13:29.237392 Meshing interpolated curves <p>I have a simulation where my geometry is an interpolated curve. The meshing for that feature is really fine and detailed:</p> <p></p> <p>zoomed in:</p> <p></p> <p>Are there any tricks I can use to reduce the required meshing? Even if it lowers the simulation accuracy, I'm willing to do quicker runs and then more thorough simulations once I'm in the ballpark.</p> <p>I'm running 5.3 by the way.</p> <p>Thanks!</p> Fri, 14 Jun 2019 15:21:47 +0000 4.2019-06-14 15:21:47.237372 Elecromagnet <p>I built one coil in Сomsol 5.2a as the Helmholtz coil and inserted an iron core in the middle of circle, but after starting the Study the magnetic lines do not pass through the core. How to include the core in this process?</p> Fri, 14 Jun 2019 10:11:38 +0000 4.2019-06-14 10:11:38.237371 laser <p>I want to model Laser cutting and Laser drilling using COMSOL Multiphysics can you please help me on the step by step approach of the Simulation.</p> Fri, 14 Jun 2019 09:32:08 +0000 4.2019-06-14 09:32:08.237361 Specific absorption rate in comsol <p>Hello everyone,</p> <p>Please see attached file and help me to understand how should i calculate SAR for 1 gram or 10 gram like in CST (shown in the file) in COMSOL?</p> <p>Any help would be appreciated</p> <p>Thankyou</p> Fri, 14 Jun 2019 01:38:08 +0000 4.2019-06-14 01:38:08.237353 Difficulty in selecting geometry for boundary condition in a magnetostrictive model. <p>Hello everyone, I am working on a magnetostrictive model which is a solid cube and I want to apply periodicity as a boundary condition to vertex to the opposite vertex, edge to opposite edge, and face to opposite face. When I select periodicity as boundary condition it just allows me to select boundaries of the model which are basically faces of the cube. I could apply this boundary conditions in ABAQUS by using a matlab code but I am unable to do it in COMSOL. Is there any way I can select geometry according to my requirement mentioned above??</p> Thu, 13 Jun 2019 19:31:25 +0000 4.2019-06-13 19:31:25.237352 Two phase flow using phase filed method : filling of liquid through different widths channel <p>Hello, I am simulating the channel filling of water . The channel dimension starts with 600 micron in width and reduces to 200 microns and then again increases to original dimension of 600 micron. I need to track the interface at the front. unable to solve the model . please help.I have attached the model.</p> Thu, 13 Jun 2019 18:08:32 +0000 4.2019-06-13 18:08:32.237351 Fluid structure interaction for a membrane <p>Hello, Iam trying to simulate a expansion of the membrane with both end fixed Iam facing following issues in solving the model. 1) If i give inlet boundary condition as velocity /discharge /mass flow rate it doesnt solve with the follwoing error. Failed to find consistent initial values. Last time step is not converged. Iam not able to get the expansion of the membrane.</p> Thu, 13 Jun 2019 18:07:07 +0000 4.2019-06-13 18:07:07.237341 Failed to form solid object <p>Dear All, does anyone can help me with the following issue,</p> <p>I imported stl file (rock sample) into Mesh Part, then into geometry and when I try to convert to solid form I faced the following error - "Failed to form solid object."</p> <p>How to solve it? or can I leave it and simulate (laminar flow) without forming solid object?</p> <p>Screenshot is attached (mph size exceed the limit)</p> Thu, 13 Jun 2019 17:43:54 +0000 4.2019-06-13 17:43:54.237332 Compute Error: "No Such File or Directory" <p>I am tyring to compute a model and getting the error "No Such File or Directory". The model was built in COMSOL 5.2 and I am running 5.4. I am not sure where this directory issue is coming from. Thank you.</p> Thu, 13 Jun 2019 16:16:37 +0000 4.2019-06-13 16:16:37.237292 Where to find COMSOL 5.4 variable description with details? <p>Hi Everyone,</p> <p>I am trying to modify some predefined equations in COMSOL 5.4 using the equation view, but there are a lot more variables than I expected. I don't know what many do and the short description in equation view does not help much.</p> <p>For example, in the Semiconductor module, the Metal Contact has a variable called <em>semi.bcAn</em> with the description "SG exponential term for electrons at the boundaries ". I have no idea what that means. One could try and figure out by analyzing the way the variables are connected to one another. But with hundreds of them in the whole model, it's very time consuming.</p> <p><strong>Is there some document where can I find some more details on the variables?</strong> The COMSOL documentation doesn't seem to include anything beyond basic stuff. Thank you!</p> Thu, 13 Jun 2019 14:53:44 +0000 4.2019-06-13 14:53:44.237291 Completely wetted or non-wetted wall with phase field <p>Hey !</p> <p>I've been trying to make a simulation of completely wetted or non-wetted walls (theta_w=0 or theta_w=pi) with phase field but it's always diverging. Have you ever tried and/or manage to do so ? How would you implement that plz ?</p> <p>Thx in advance Joseph</p> Thu, 13 Jun 2019 13:11:22 +0000 4.2019-06-13 13:11:22.237281 Dielectric slab <p>Dears, I am biginner of COMSOL. I have some queries about dielectric slab. I am able to produce electomagnetic wave in 2D dielectric slab but unable to propagate in 3D dielectric slab. For reference i am attaching files.</p> Thu, 13 Jun 2019 12:24:50 +0000 4.2019-06-13 12:24:50.237273 Combination of Computational Fluid Dynamics and Chemical Reaction <p>Hello guys,</p> <p>I am studying about microfluidic technology, so I would like to use the simulation for it.</p> <p>I want to handle two types of model - Computational fluid dynamics (CFD), especially Multi-phase case - Chemical Reaction, especially Cross-linking case for a polymer.</p> <p>Is there any study about it? Please give me some opinion. It is possible or impossible? Do we have any tutorial about the combination of them?</p> <p>Thank you so much!</p> Thu, 13 Jun 2019 08:51:05 +0000 4.2019-06-13 08:51:05.237263 Directivity at a Certain Direction <p>Hi all,</p> <p>For a far field domain antenna study, I can achieve the maximum directivity by typing <strong>emw.maxDdB</strong> in the expression of a global evaluation, which is in the <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAARCAMAAACo2Q8bAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TACKIM8wRZlVEmbuq3XfurmJsCgAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAC2SURBVCjPvZHLFsMgCEQFNaJR+f+/bdBg7Ut3ZQeHqzODMf8sQMTdjoUXwnmDxxIISCFOULrW8VzKyPKPG/0hPaYVEptuF7TPZYvUhqSoMlk0piXCZOadWOmqqpFZepa9Z9SRoSSnK+LIqhPnekNYP5V4S13pUiRrK9+7uEKga1AvxG02zlS+CDPcE7tv53nk/mGfdHj2uxS17+e7/jAjLqB6vQuG028QU6KHZEcLsANkqRzt3QffwQT+wYkbhgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wNi0xNFQxNjoyODoxMi0wNDowMG4GM7sAAAAldEVYdGRhdG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joyODoxMi0wNDowMG4GM7sAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDYtMTRUMTY6Mjg6MTItMDQ6MDAfW4sHAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADMyeDEzKzI4OSs2MzbhK9HcAAAAJ3RFWHRwczpMZXZlbABBZG9iZUZvbnQtMS4wOiBDTU1JMTIgMDAzLjAwMgoxF5a7AAAASXRFWHRwczpTcG90Q29sb3ItMAAvZGV2L3NobS96ZjItY2FjaGUvMDQ5NDdmYzc1N2I3ODFjZjZiZGUwOWI1ZTA2NDdkMjUuZHZpIC1vYwjiJgAAAEV0RVh0cHM6U3BvdENvbG9yLTEAL2Rldi9zaG0vemYyLWNhY2hlLzA0OTQ3ZmM3NTdiNzgxY2Y2YmRlMDliNWUwNjQ3ZDI1LnBzT+UoPwAAAABJRU5ErkJggg==" /> direction. But I need to get the directivity value (or gain value) at a certain direction such as <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAARCAMAAAC7Dk/vAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAADNQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////8T5qHgAAAA90Uk5TACKIRDPMEWZ3VZm7qt3ueLduiAAAAAFiS0dEAIgFHUgAAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAD0SURBVCjPxZJJkgQhCEUZHDFT7n/bFk21Iro7XRYrJHzyPwjwvUAiOt1hNzOHH6QPQPEVTMTRZ8sycZYFl4bR9UZGE0XaCLytr591O1F5Qy+jWBlAurMhAOBORxTNTtJmt3a0SC9nexHKKzp8mSfrvG5L5RZ1jtjxDre5wELhEb003qWtRvRRD/QZG3VM4jaqvajdRz3qhVjdQm2y7WCyvJzRoBfgUDe8svVGXUtOfwgOV8+09VJaE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aYOc6ayiy8XrFsYfdCrczChyk+gJn8ImwBO4oal/75IqHYpJ7zF/lW1izgdMy/Pi5XPzzQ2l/mR/MP0KPX8f2vtBQKnc6z+O0PMHhqneNh10FU9eAtjZxVerfJo8D0JhNs6cXpLHNYDLfoJ531M172vb8U7Cf/R/oC5fsG86u07I8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDYtMTRUMTY6Mjg6MTMtMDQ6MDDIcTgPAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA2LTE0VDE2OjI4OjEzLTA0OjAwuSyAswAAACF0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAAzOHgxMysyODYrNjM2iUyubAAAACd0RVh0cHM6TGV2ZWwAQWRvYmVGb250LTEuMDogQ01NSTEyIDAwMy4wMDIKMReWuwAAAEl0RVh0cHM6U3BvdENvbG9yLTAAL2Rldi9zaG0vemYyLWNhY2hlLzlmNDBkZTEyNWExYzk5M2YzMjUwOTQwYzEwNzYxYjdhLmR2aSAtbwGarMgAAABFdEVYdHBzOlNwb3RDb2xvci0xAC9kZXYvc2htL3pmMi1jYWNoZS85ZjQwZGUxMjVhMWM5OTNmMzI1MDk0MGMxMDc2MWI3YS5wc+fPLKUAAAAASUVORK5CYII=" />.</p> <p>By the way, I can get the all values manually by copying plot data of 2D or 1D far field radiation plots but it is not practical for me because I will use that single directivity value in the application builder. How can I obtain a directivity value at a certain direction?</p> <p>Thank you.</p> Thu, 13 Jun 2019 08:37:34 +0000 4.2019-06-13 08:37:34.237261 The file increases in size every each run <p>I made one model and only change few parameters every time I run this model. I clear the solution from the previous study every time, but I noticed the file is taking more space. Why?</p> Wed, 12 Jun 2019 18:00:49 +0000 4.2019-06-12 18:00:49.237251 Set solution of previous time step as initial condition <p>I want to export the Temperature solution of my model onto Matlab and set the entire Temperature matrix containing temperatures of all the domains as initial condition for next iteration. But I see that I can only set 1 value for the initial temperature condition. What do I do with it?</p> Wed, 12 Jun 2019 16:44:55 +0000 4.2019-06-12 16:44:55.237241 Continue calculation with a single value from a sweep <p>Hi All,</p> <p>Here is a situation that occures very often in my optimization problems. I want to do a simulation in two steps:</p> <p>Step 1: A parametric sweep over the parameter f, where I probe the energy E. Step 2: A single calculation (not a sweep) with f set to the value, where E was largest in the sweep of Step 1.</p> <p>Is that possible?</p> <p>Best, Jacob</p> Wed, 12 Jun 2019 16:02:55 +0000 4.2019-06-12 16:02:55.237221