Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Sat, 15 Jun 2019 11:41:39 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Matlab function https://www.comsol.com/forum/thread/237402/matlab-function?last=2019-06-15T12:26:25Z <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 Capacitance matrix - Singular matrix error https://www.comsol.com/forum/thread/237392/capacitance-matrix-singular-matrix-error?last=2019-06-14T23:13:29Z <p>Hi,</p> <p>I am trying to find capacitance matrix for a simple 2D geometry of conductors over a ground plate. But it throws Singlualr matrix error.</p> <p>There seems to be a miskake in my terminal and ground setup. May I need to define a ground at infinity. Can you please help?</p> <p>Regards, Venkatesh</p> Fri, 14 Jun 2019 23:13:29 +0000 4.2019-06-14 23:13:29.237392 Meshing interpolated curves https://www.comsol.com/forum/thread/237372/meshing-interpolated-curves?last=2019-06-14T15:30:18Z <p>I have a simulation where my geometry is an interpolated curve. The meshing for that feature is really fine and detailed:</p> <p>https://i.imgur.com/V8RDmKw.png</p> <p>zoomed in:</p> <p>https://i.imgur.com/o7YLIr8.png</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 https://www.comsol.com/forum/thread/237371/elecromagnet?last=2019-06-14T11:24:10Z <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 https://www.comsol.com/forum/thread/237361/laser?last=2019-06-14T09:32:08Z <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 https://www.comsol.com/forum/thread/237353/specific-absorption-rate-in-comsol?last=2019-06-14T01:38:08Z <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. https://www.comsol.com/forum/thread/237352/difficulty-in-selecting-geometry-for-boundary-condition-in-a-magnetostrictive-mo?last=2019-06-14T07:50:20Z <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 https://www.comsol.com/forum/thread/237351/two-phase-flow-using-phase-filed-method-filling-of-liquid-through-different-widt?last=2019-06-13T18:08:32Z <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 https://www.comsol.com/forum/thread/237341/fluid-structure-interaction-for-a-membrane?last=2019-06-13T18:07:07Z <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 https://www.comsol.com/forum/thread/237332/failed-to-form-solid-object?last=2019-06-13T17:43:54Z <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" https://www.comsol.com/forum/thread/237292/compute-error-no-such-file-or-directory?last=2019-06-13T19:39:55Z <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? https://www.comsol.com/forum/thread/237291/where-to-find-comsol-5-4-variable-description-with-details?last=2019-06-14T11:21:12Z <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 https://www.comsol.com/forum/thread/237281/completely-wetted-or-non-wetted-wall-with-phase-field?last=2019-06-13T13:11:22Z <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 https://www.comsol.com/forum/thread/237273/dielectric-slab?last=2019-06-13T12:24:50Z <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 https://www.comsol.com/forum/thread/237263/combination-of-computational-fluid-dynamics-and-chemical-reaction?last=2019-06-13T08:51:05Z <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 https://www.comsol.com/forum/thread/237261/directivity-at-a-certain-direction?last=2019-06-13T08:39:39Z <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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2Y2YmRlMDliNWUwNjQ3ZDI1LnBzT+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+09VJaE2tvwdzWrzHxrGm/qq3XeMSnMaawf8d/IWOLTSybS6xh7JXyFQ6ok8z57t88ScAyt4YI5+CUn/cxxZ79ADWOBm3PMXr0AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTA2LTE0VDE2OjI4OjEzLTA0OjAwyHE4DwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wNi0xNFQxNjoyODoxMy0wNDowMLksgLMAAAAhdEVYdHBzOkhpUmVzQm91bmRpbmdCb3gAMzV4MTArMjg4KzYzOQHhMLcAAAAndEVYdHBzOkxldmVsAEFkb2JlRm9udC0xLjA6IENNTUkxMiAwMDMuMDAyCjEXlrsAAABJdEVYdHBzOlNwb3RDb2xvci0wAC9kZXYvc2htL3pmMi1jYWNoZS9mYzc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IDAwMy4wMDIKMReWuwAAAEl0RVh0cHM6U3BvdENvbG9yLTAAL2Rldi9zaG0vemYyLWNhY2hlLzlmNDBkZTEyNWExYzk5M2YzMjUwOTQwYzEwNzYxYjdhLmR2aSAtbwGarMgAAABFdEVYdHBzOlNwb3RDb2xvci0xAC9kZXYvc2htL3pmMi1jYWNoZS85ZjQwZGUxMjVhMWM5OTNmMzI1MDk0MGMxMDc2MWI3YS5wc+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 https://www.comsol.com/forum/thread/237251/the-file-increases-in-size-every-each-run?last=2019-06-12T18:01:16Z <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 https://www.comsol.com/forum/thread/237241/set-solution-of-previous-time-step-as-initial-condition?last=2019-06-12T16:44:55Z <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 https://www.comsol.com/forum/thread/237221/continue-calculation-with-a-single-value-from-a-sweep?last=2019-06-12T16:02:55Z <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 Number of Allowed "Release from Data File" Nodes https://www.comsol.com/forum/thread/237212/number-of-allowed-release-from-data-file-nodes?last=2019-06-13T06:06:21Z <p>I am currently simulating the optics of an implantable LED-lens system. Here, the LED has the shape of a hexahedron (Picture of LED attached). Five faces of the LED serve as ray sources. My plan is to define a set of points on each face and have them emit rays in a spherical fashion, with the axis of the rays perpendicular to that particular face. In order to do this, I plan to use the "Release from Data File" node of the Ray Optics module. As the axis vector for each face is different, I created five different data files, each containing a set of points on that particular face. Then I imported them to five different "Release from Data File" nodes. On running the study (I am using "Bidirectionally Coupled Ray Tracing", as I also need to study ray heating effects), I get the following error:</p> <p>Error in multiphysics compilation. Syntax error in low-level element syntax representation. - Index: 111 - Type: elparticle - Field: time - Detail: Missing field</p> <p>When I run it with just one "Release from Data File" node after disabling all the others, it runs smoothy without any issues. Can COMSOL handle only one "Release from Data File" node, or does the problem lie elsewhere? Please let me know how I should go about this.</p> <p>Thank you. Abhinav</p> Wed, 12 Jun 2019 15:30:19 +0000 4.2019-06-12 15:30:19.237212