Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Sat, 29 Jun 2024 01:44:59 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Points node numbering https://www.comsol.com/forum/thread/341512/Points-node-numbering?last=2024-06-29T01:44:59Z <p>Hello When creating points in geometry and try to assign them probes, the points numbering are not in order, so how can i make them in oreder because i am trying to create many points in the geometry and assign each on of them a probe and i am doing it through matlab livelink using for loop which i need the numbering to assign the probes accordingly. The for loop code is shown below and the numbering is show in the picture</p> <p>i = 1; for theta = 0:45:359 n = ['pt' num2str(i)]; model.component('comp1').geom('geom1').create(n, 'Point'); model.component('comp1').geom('geom1').feature(n).label(['sensor at angle = ',num2str(n)]); model.component('comp1').geom('geom1').feature(n).setIndex('p', sind(theta), 0); model.component('comp1').geom('geom1').feature(n).setIndex('p', cosd(theta), 1); model.component('comp1').geom('geom1').runPre('fin');</p> <pre><code>model.component('comp1').probe.create(n, 'Point'); model.component('comp1').geom('geom1').run; model.component('comp1').probe(n).selection.set([i]); model.component('comp1').geom('geom1').run('fin'); i = i + 1; </code></pre> <p>end</p> <p>Thank you</p> Sat, 29 Jun 2024 01:44:59 +0000 4.2024-06-29 01:44:59.341512 terminal velocity https://www.comsol.com/forum/thread/341511/terminal-velocity?last=2024-06-28T23:32:13Z <p>Hi everyone,</p> <p>I was wondering if it is possible to trace the instantaneous droplet velocity plot ?(?) for this tutorial: <a href="http://">https://www.comsol.com/model/droplet-rising-through-a-suspension-90401</a> so that we can determine the terminal velocity.</p> Fri, 28 Jun 2024 23:32:13 +0000 4.2024-06-28 23:32:13.341511 How do I extrude 1-D variables to 2-D variables? https://www.comsol.com/forum/thread/341502/How-do-I-extrude-1-D-variables-to-2-D-variables?last=2024-06-28T20:25:44Z <p>Lets say that I have the two layers. I have some 1-D variables at the interface of the layers, but for the display, I would like to show the 1-D variable not as a line but 2-D domain (like the bottom layer) underneath the interface (with the same x location).</p> <p>I think this would not be very difficult but I cant find the way.</p> <p>Thank you for your help in advance!</p> <p>Best regards,</p> Fri, 28 Jun 2024 20:04:33 +0000 4.2024-06-28 20:04:33.341502 Assistance Needed for Simulating Dielectric and Mechanical Losses in SAW Devices https://www.comsol.com/forum/thread/341492/Assistance-Needed-for-Simulating-Dielectric-and-Mechanical-Losses-in-SAW-Devices?last=2024-06-28T17:11:32Z <p>Hello everyone,</p> <p>I am currently simulating a one-port SAW device in COMSOL, focusing on incorporating both dielectric and mechanical losses into the linear materials of Si and Mo, with Mo serving as the IDTs and Si as the substrate where the AlN film (piezoelectric) is deposited. Initially, I used the 'Damping' subnode for mechanical loss, setting it up as an isotropic loss factor, but I am unsure how to simulate dielectric loss. My questions are: (1) Is it correct to use 'Damping' as a form of mechanical loss? (2) Which subnode should be used for dielectric loss in the case of linear elastic material?</p> <p>The images attached to this annex illustrate the physics nodes I am implementing in my model, along with the damping configuration for the linear elastic material as previously mentioned.</p> <p>Thank you for your time and assistance.</p> <p>T.M. Vieira</p> Fri, 28 Jun 2024 16:32:51 +0000 4.2024-06-28 16:32:51.341492 Porosity Gradient in a geometry https://www.comsol.com/forum/thread/341482/Porosity-Gradient-in-a-geometry?last=2024-06-28T15:47:17Z <p>Hello, I am trying to model stress on a part that has a gradient of porosity; think a region of solid metal leading to more and more bubbles as a function of depth. Is it possible to add this to a geometry?</p> Fri, 28 Jun 2024 15:47:17 +0000 4.2024-06-28 15:47:17.341482 Simulation of Box type solar cooker using Comsol https://www.comsol.com/forum/thread/341471/Simulation-of-Box-type-solar-cooker-using-Comsol?last=2024-06-28T13:03:56Z <p>How to simulate Box type solar cooker using Comsol</p> Fri, 28 Jun 2024 04:41:05 +0000 4.2024-06-28 04:41:05.341471 Does the comsol stress field that exceeds the range of the domain indicate deformation? https://www.comsol.com/forum/thread/341463/Does-the-comsol-stress-field-that-exceeds-the-range-of-the-domain-indicate-deformation?last=2024-06-27T13:54:00Z <p>After calculation, if the stress field of the domain exceeds the original range of the domain, can I think that the domain has been deformed or expanded?</p> Thu, 27 Jun 2024 10:51:10 +0000 4.2024-06-27 10:51:10.341463 Band Gap Analysis of Photonic crystal https://www.comsol.com/forum/thread/341451/Band-Gap-Analysis-of-Photonic-crystal?last=2024-06-27T10:12:19Z <p>Hello everyone</p> <p>I am new to COMSOL. I am working on a photonic crystal on the wave optics module. I took help of an example problem in COMSOL, where they simulated a GaAs rod photonic crystal. Since the refractive index of the GaAs Rod is frequency dependent, they have used an expression for the refractive index in the component1>defintion > analytic section for its bandgap analysis. Since I will be working with a material whose refractive index is constant across all frequencies, I changed the frequency expression to a constant value (the refractive index of the material). But in the study 2, I got an error saying: "Failed to find a solution for the initial parameter. Maximum number of Newton iterations reached. Returned solution is not converged. Not all parameter steps returned."</p> <p>The pdf for the example of band gap analysis of COMSOL multiphysics is given below and also my simulation is attached below.</p> <p>Please help me debug this</p> <p>Thanks in advance Sankalp</p> Thu, 27 Jun 2024 10:12:19 +0000 4.2024-06-27 10:12:19.341451 How To Create A Coefficient That Depends On Water Content https://www.comsol.com/forum/thread/341431/How-To-Create-A-Coefficient-That-Depends-On-Water-Content?last=2024-06-28T13:56:28Z <p>Dear all,</p> <p>I'm dealing with a 2 coupled PDE problem, related with diffusion of water in porous media, where the two variables are the temperature and the relative humidity.</p> <p>I want to introduce a thermal conductivity which depends on the water content, k(w), but once I define it, it says that "I don't know what's w". I also defined w as an analytic function dependent on the relative humidity.</p> <p>My question is: Can I define a coefficient that depends on a variable? (Apart from P or T)</p> <p>Thanks a lot. Regards,</p> Thu, 27 Jun 2024 07:48:49 +0000 4.2024-06-27 07:48:49.341431 Heat Transfer Module - soil https://www.comsol.com/forum/thread/341421/Heat-Transfer-Module---soil?last=2024-06-27T14:43:24Z <p>Hello to everybody,</p> <p>I am not an expert in comsol and I would like to know how can i make this performance:</p> <p>A pipeline is intruded into the soil, and using the tube as a heat source, I would like to create a thermal diffusion analysis program that varies depending on the moisture content and thermal conductivity of the soil.</p> <p>How can I make this model?</p> <p>Thank you in advance. Best regards.</p> Thu, 27 Jun 2024 07:47:39 +0000 4.2024-06-27 07:47:39.341421 Error entitled "the DAE is structurally inconsistent" https://www.comsol.com/forum/thread/341402/Error-entitled-the-DAE-is-structurally-inconsistent?last=2024-06-27T14:44:19Z <p>Hello everyone,</p> <p>I have a problem in my model, which is simulated in the RF time-dependent module. The error is "Errors when compiling equations. The DAE is structurally inconsistent." I think it is because of the boundary condition. I defined a uniform lumped port and connected it to the electrical circuit module. I would appreciate it if anyone took a look at my simulation file and helped me.</p> Wed, 26 Jun 2024 23:37:06 +0000 4.2024-06-26 23:37:06.341402 Finding inductance in meshed elements https://www.comsol.com/forum/thread/341401/Finding-inductance-in-meshed-elements?last=2024-06-26T13:56:32Z <p>Dear all, I am simulating the coil structure with predetermined mesh structure. after getting mesh, I need to find the impedance across each meshed element within the structure. Is it possible to do this??</p> <p>I know, I have to excite before meshing but I want to find the impedace across each meshed element after meshing.</p> <p>How to do this?? Please help me.</p> <p>Here is the link for the sample mph file.</p> <p>https://drive.google.com/file/d/1I8dTOGmuKW5hR8tNnixucAUHhU5bBKcb/view?usp=drivesdk</p> Wed, 26 Jun 2024 13:56:32 +0000 4.2024-06-26 13:56:32.341401 Microwave Resonator https://www.comsol.com/forum/thread/341381/Microwave-Resonator?last=2024-06-27T11:11:33Z <p>Trying to model a superconducting microwave resonator. The model I have attached has the conducting plane material with a very high electrical conductivity (10^99 S/m). Also the Perfect electric boundary condition is used on those boundaries. In real world application, these selections might not be the best choice to model superconductivity as there might exist some Kinetic Inductance due to the Cooper pairs. For this I thought to add a complex valued electrical conductivity (purely imaginary, j/mu_0const<em>(λ_L^2)</em>2<em>pi</em>freq) to the material. So,</p> <ol> <li><p>Just by adding a purely imaginary complex conductivity to the material instead of 10^99 S/m will be okay (PEC stays)?</p></li> <li><p>If it requires that I add an impedance boundary condition (by replacing PEC, on the same boundaries), I am unable to do that as it is inside the vaccum block (the way it will be on a Printed Circuit Board in real world application). If I try to remove domain 2 from emw node, anything I try, I get errors that Uniform element 1 &amp; 2 should be placed between two conductive boundaries.</p></li> </ol> <p>I feel the ports are defined correctly and it is only the ways in which I choose to apply the conditions create the problem.</p> <p>Please suggest any steps (which conditions on which boundaries) or any kind of modifications (geometrical) I can make to achieve it.</p> <p>Study: emw study to observe S21 plot-resonant frequencies ,These are CPW lines</p> Wed, 26 Jun 2024 10:12:22 +0000 4.2024-06-26 10:12:22.341381 Solving Partial Element Equivalent Circuit (PEEC) formulation in COMSOL https://www.comsol.com/forum/thread/341371/Solving-Partial-Element-Equivalent-Circuit-PEEC-formulation-in-COMSOL?last=2024-06-26T06:50:44Z <p>Can anyone please tell me how to solve the <strong>Partial Element Equivalent Circuit (PEEC)</strong> formulation in COMSOL Multi-physics??</p> <p><em>More on PEEC:</em> The PEEC method represents complex 3D structures as interconnected equivalent circuits of basic elements. These elements include resistors, capacitors, and inductors, where each element corresponds to a physical segment of the structure.</p> <p>In PEEC, we can compute Partial inductance, and AC resistance of any design.</p> Wed, 26 Jun 2024 06:09:39 +0000 4.2024-06-26 06:09:39.341371 3D nanomagnetic https://www.comsol.com/forum/thread/341361/3D-nanomagnetic-?last=2024-06-25T22:45:36Z <p>Dear all, I do have a 2D model to study the magnetization dynamics induced by external current density applied normal to the surface that makes the magnetization rotating, however, when I extended it to 3D the simulation works but with a warning meesage; nonsymmatric matrix found and then ends up by saying singular matrix. i also plot the normal magnetization and found straigt lines for 2D while it is not for the 3D.</p> Tue, 25 Jun 2024 22:45:36 +0000 4.2024-06-25 22:45:36.341361 3D cylinder with spheres https://www.comsol.com/forum/thread/341352/3D-cylinder-with-spheres?last=2024-06-26T18:08:47Z <p>Hello everyone, how's it going?</p> <p>I would like to know how to construct a 3D geometry of a cylinder containing spheres formed into a tetrahedral shape. The height of the cylinder is 2 meters, with 50 mm diameters filled with 1 mm spheres up to approximately 1 m. Is there a way to do this in comsol?</p> <p>Thanks.</p> Tue, 25 Jun 2024 22:19:20 +0000 4.2024-06-25 22:19:20.341352 4.2a Acoustic Streaming https://www.comsol.com/forum/thread/341351/42a-Acoustic-Streaming?last=2024-06-25T13:50:58Z <p>Hello,</p> <p>I am trying to create a simulation of the acoustic streaming in COMSOL v4.2a. As this is quite an old version, I cannot find much information on the subject.</p> <p>I understand that first-order fields should be solved with a pressure acoustics or thermoacoustics interface, and then these fields should be implemented as source terms(?) in a laminar flow interface.</p> <p>Actually carrying out this process seems complex.</p> <p>Is anyone able to advise me on where I can find more detailed instructions on modelling the acoustic streaming in v4.2a, or would anyone have any model files that they would be willing to share with me.</p> <p>With best regards, Peter</p> Tue, 25 Jun 2024 13:33:48 +0000 4.2024-06-25 13:33:48.341351 Extracting frequency dependent matrices (of a nonlinear eigenvalue problem) https://www.comsol.com/forum/thread/341341/Extracting-frequency-dependent-matrices-of-a-nonlinear-eigenvalue-problem?last=2024-06-24T15:41:15Z <p>The below post is related to an <a href="//cn.comsol.com//forum/thread/191172/value-of-eigenvalue-linearization-point">archived discussion</a></p> <hr /> <p>Hello,</p> <p>I'm trying to extract (via Matlab LiveLink) the matrices from a nonlinear eigenvalue problem stemming from a physical model.</p> <p>The stiffness and damping matrices of the problem are frequency dependent (as in the linked discussion), hence, I want to extract the matrices evaluated at a particular eigenvalue linearization point. Unfortunately, I'm not getting the correct matrices using the expect command:</p> <p>mphmatrix(model,'sol1','out',{'K','E','D'},'complexfun','on','eigname','lambda', 'eigref',eigref)</p> <p>(Solving the eigenvalue problem using the extracted matrices, does not give me the same results from the COMSOL solver)</p> <p>I am missing some subtle detail?</p> <p>Thanks in advance,</p> <p>Filipe Soares</p> Mon, 24 Jun 2024 15:40:09 +0000 4.2024-06-24 15:40:09.341341 material https://www.comsol.com/forum/thread/341333/material?last=2024-06-24T14:31:21Z <p>When I run “model.component("comp1").material("mat4").propertyGroup("def").func.set('source', 'file');”,there is an error:error use set ,and source is not a type of com.comsol.clientapi.impl.FunctionFeatureListClient.</p> Mon, 24 Jun 2024 14:29:30 +0000 4.2024-06-24 14:29:30.341333 How to calculate the area of change, e.g. ice in water https://www.comsol.com/forum/thread/341323/How-to-calculate-the-area-of-change-eg-ice-in-water?last=2024-06-24T13:21:21Z <p>I want to calculate the change value of a changing area in a region, say a glass of water that is freezing, and I want to get the change value of ice, the difference between ice and water can be described by a phase field parameter (0 or 1), but it is not clear to me how to get the volume (or area, a 2D model) of the ice at each moment in time, and also how to get the rate of freezing (say the volume or area of ice per second). Any help would be appreciated!</p> Mon, 24 Jun 2024 13:19:20 +0000 4.2024-06-24 13:19:20.341323