Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Tue, 02 Sep 2025 16:48:09 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Convergence issue using Richard's equation https://www.comsol.com/forum/thread/368552/convergence-issue-using-richards-equation?last=2025-09-02T17:17:22Z <p>Hi everyone,</p> <p>I am working on a hydraulic model. The geometry of my model is shown in the attached Figure. I am using Richard's equation. There are host rock that occupies most of the model, a fault shown as the narrow pipe, and other formations at the top right.</p> <p>The general water flow process is that the inflow is through the top boundary with topography and outflow is through right boundary and top boundary when water table intercepts the surface, which means that pressure head at the top is higher than zero.</p> <p>For boundary conditions, a constant precipitation was applied at the top boundary with topography, which is in green in the figure. A pressure head of 0 Pa was applied at the top of fault. For the rest top part, a previous layer was applied and it will be applied a big conductance when pressure head is higher than zero. Otherwise, a conductance of 0 will be applied.</p> <p>The main object of these settings was to ensure that the location of the water table can be dynamic determined by the precipitation rate and permeability instead of applying a constant head at the top.</p> <p>However, when I use Time-dependent solver for cases that don't have a steady state, the solver does not converge/converges slowly. The solving progress usually stays at 4% and does not move on. If anyone has any insights about how to make it converge or improve my model, i would really appreciate it! Please let me know if more information is needed. Thank you!</p> <p>Best, Zihao</p> Tue, 02 Sep 2025 16:48:09 +0000 4.2025-09-02 16:48:09.368552 Implementing Direction-Dependent Etching Velocity in COMSOL Deformed Geometry https://www.comsol.com/forum/thread/368481/implementing-direction-dependent-etching-velocity-in-comsol-deformed-geometry?last=2025-08-30T16:29:07Z <p>Hi everyone,</p> <p>I am trying to reproduce the chemical etching tutorial from COMSOL (link: https://www.comsol.com/model/chemical-etching-44481 ). In the tutorial, they used Prescribed Normal Mesh Velocity in Deformed Geometry to describe the etching velocity, where the velocity value is constant. In my case, I would like to define a non-uniform etching velocity, meaning that the velocity in the x-direction is different from the velocity in the y-direction. I tried some approaches, but they didn’t work. Could you please give me some suggestions on how to implement this?</p> <p>Thank you so much!</p> Sat, 30 Aug 2025 16:29:07 +0000 4.2025-08-30 16:29:07.368481 Color legend https://www.comsol.com/forum/thread/368453/color-legend?last=2025-09-01T06:28:26Z <p>I wanted to change the height and position of the color legend, but I couldn't find it</p> Sat, 30 Aug 2025 03:36:53 +0000 4.2025-08-30 03:36:53.368453 Undefined Value in Temperature Field (NaN/Inf in comp1.T) https://www.comsol.com/forum/thread/368441/undefined-value-in-temperature-field-naninf-in-comp1t?last=2025-08-29T10:01:39Z <p>I am currently working on a numerical simulation of a plasma torch using COMSOL Multiphysics. The goal of the simulation is to model the behavior of a plasma jet generated by an electric arc discharge between an anode and a cathode. As part of the setup, argon gas is injected through the torch, which becomes ionized due to the high-temperature environment created by the electric discharge. This ionized gas forms a plasma jet that exits the torch and interacts with an open boundary, representing ambient surroundings or downstream flow.</p> <p>The simulation includes the following coupled physics:</p> <p>Electric currents to model the arc discharge.</p> <p>Laminar or turbulent fluid flow for argon gas transport.</p> <p>Heat transfer to capture thermal effects and plasma temperature distribution.</p> <p>Open boundary conditions to allow outflow of plasma without artificial reflections.</p> <p>However, when I run the model using the Stationary Solver, I encounter the following error message:</p> <p>Feature: Stationary Solver 1 (sol1/s1) Undefined value found. Detail: Undefined value found in the equation residual vector. There are 2590 degrees of freedom giving NaN/Inf in the vector for the variable comp1.T. At coordinates: (0.0176092, 0.298922), (0.0143478, 0.3), (0.0163046, 0.298921), ...</p> Fri, 29 Aug 2025 10:01:39 +0000 4.2025-08-29 10:01:39.368441 Extracting data in 3d format https://www.comsol.com/forum/thread/368431/extracting-data-in-3d-format?last=2025-08-29T10:55:36Z <p>So far, I have been extracting abs(emwHz) values for given parameter in a 2D cutplane in my loop antenna model. I would like to extract it in a 3D grid format.</p> <p>However, most methods of trying a grid 3D dataset has resulted in errors, where Hz is an undefined variable, like as shown below.</p> <p>"Undefined variable. - Variable: comp1.emw.Hz - Global scope Failed to evaluate expression. - Expression: comp1.emw.Hz"</p> <p>Is there a way to overcome this error, or if not, to obtain Hz values in a 3d format?</p> Thu, 28 Aug 2025 15:59:56 +0000 4.2025-08-28 15:59:56.368431 LiveLink for Creo is very slow https://www.comsol.com/forum/thread/368421/livelink-for-creo-is-very-slow?last=2025-08-28T15:25:30Z <p>It seems that the time required to import a model from PTC Creo to COMSOL increases exponentially with the number of components.</p> <p>At some amount of surfaces, or solids, or boundaries, or whatever - I have not managed to figure out what exactly triggers the slowdown - the time required seems to go to infinity.</p> <p>Looking at the status bar a ticker walks leisurely like "generating associativity for entity 7734 of 12995" and sometimes it just stops at "processing selections" and waits for half an hour. Or fails entirely after prolonged waiting. Which is odd since I have no selections defined in Creo.</p> <p>Importing the same model as a STEP is massively faster, but then I lose associativity with all the rest of the features, boundary loads, shell thicknesses, et cetera - and have to rebuild it every time.</p> <p>Can this be improved? I have no high hopes, since I suspect it is a consequence of the Java interface to Creo - which is why I post it here as a concern and suggestion rather than a support issue.</p> Thu, 28 Aug 2025 09:24:57 +0000 4.2025-08-28 09:24:57.368421 High aspect ratio https://www.comsol.com/forum/thread/368411/high-aspect-ratio?last=2025-08-28T08:58:07Z <p>I have a fracture that is represented in terms of a layer in porous media of domain size 1500<em>1500</em>500m and the fracture is situated in center. I'm not able to create proper mesh. Also, the mesh that i have created, the solution is not converging for it.</p> Thu, 28 Aug 2025 08:58:07 +0000 4.2025-08-28 08:58:07.368411 Particle tracing module https://www.comsol.com/forum/thread/368383/particle-tracing-module?last=2025-08-27T08:08:14Z <p>Can particle position be referenced as an independent variable in the electrostatic module?</p> Wed, 27 Aug 2025 08:08:14 +0000 4.2025-08-27 08:08:14.368383 Simulating Electrocapillary effect https://www.comsol.com/forum/thread/368372/simulating-electrocapillary-effect?last=2025-08-26T16:22:22Z <p>I am trying to simulate droplet motion under Electrocapillary Force. I have two electrolytes, one as the droplet and the other as the continuous phase. I tried to couple the TDS and ES physics to form the EDL, but the droplet motion does not occur. Do I need to define surface tension based on the Lippmann equation as well, or is creating the EDL alone sufficient to change the surface tension?I am using a 2D geometry and applying a DC voltage. I have set velocity inlet and pressure outlet as boundary conditions, but at the inlet the velocity is 0​.</p> <p>I define space charge density in each species as : F_Const( C_cation-C_anion).</p> Tue, 26 Aug 2025 15:24:28 +0000 4.2025-08-26 15:24:28.368372 Trial Passcode https://www.comsol.com/forum/thread/368362/trial-passcode?last=2025-08-26T15:18:52Z <p>Hi guys,</p> <p>I am trying to download a trial version but its asking the Passcode which I don't have, can any one please help me with this.</p> Tue, 26 Aug 2025 14:33:18 +0000 4.2025-08-26 14:33:18.368362 Unable to recognize the stress tensor component variable in the laminar flow module. https://www.comsol.com/forum/thread/368353/unable-to-recognize-the-stress-tensor-component-variable-in-the-laminar-flow-module?last=2025-08-26T12:38:41Z <p>After adding laminar flow and 'Free and Porous Media Flow Coupling'modules, an error occurs during calculation. However, expressions and variables that mention errors exist in the laminar flow module</p> Tue, 26 Aug 2025 09:11:32 +0000 4.2025-08-26 09:11:32.368353 SAW Delay Line Simulation with Large Number of IDT Pairs https://www.comsol.com/forum/thread/368342/saw-delay-line-simulation-with-large-number-of-idt-pairs?last=2025-08-26T14:54:05Z <p>Hello,</p> <p>I am trying to simulate a SAW delay line device in COMSOL with 100 IDT pairs on each side (input and output). Since modeling the full geometry with all these pairs would be very large and computationally expensive, I tried to simplify the model.</p> <p>Currently, I built the geometry with only one IDT pair and applied periodic boundary conditions on both lateral sides of the device, assuming that this would mimic the effect of multiple pairs.</p> <p>However, I am not sure if this approach is physically correct for a delay line with so many electrodes. Also, the results I am getting contain a lot of noise, which makes me wonder if my simplification is not valid.</p> <p>My questions are:</p> <p>Is it physically correct to model only one IDT pair with periodic conditions to represent many pairs in a SAW delay line?</p> <p>Are there better approaches in COMSOL to simulate a large number of IDTs (e.g., 100 pairs per side) without building the full geometry explicitly?</p> <p>Could the noise I observe be related to this simplification?</p> <p>Any guidance or references would be very helpful.</p> <p>Thank you!</p> Mon, 25 Aug 2025 14:09:03 +0000 4.2025-08-25 14:09:03.368342 Issue: Inconsistency Between Maxwell Stress Tensor and Lorentz Force Computations https://www.comsol.com/forum/thread/368331/issue-inconsistency-between-maxwell-stress-tensor-and-lorentz-force-computations?last=2025-08-26T03:15:51Z <p>I would like to confirm, theoretically, computing the force acting on a wire using the Lorentz force method, the surface integration of the Maxwell stress tensor (MST) over a control volume enclosing the object of interest, and the surface integration of the MST directly over the object’s surface should all yield the same result, correct?</p> <p>I simulated two cases:</p> <ol> <li>Solenoid</li> </ol> <p>Under a non-uniform background magnetic field, the three methods (Lorentz force, MST over a cuboid control volume, and MST over the wire surface) produced consistent results.</p> <p>However, under a uniform background magnetic field, the computed results from these three methods do not agree with each other.</p> <ol start="2"> <li>Straight wire</li> </ol> <p>For both non-uniform and uniform background magnetic fields, the Lorentz force method and the MST over the wire surface gave nearly identical results.</p> <p>But the MST over a control volume surface did not match the other two methods.</p> <p>I would like to confirm whether this discrepancy is expected (e.g., due to numerical or formulation differences) or other factors ? I have reduced the size of mesh but still does not seem to work. Thank you</p> Mon, 25 Aug 2025 07:57:38 +0000 4.2025-08-25 07:57:38.368331 Lorentz Force Contribution Feature Issue https://www.comsol.com/forum/thread/368321/lorentz-force-contribution-feature-issue?last=2025-08-25T05:32:22Z <p>Hi, I would like to ask a question regarding the Lorentz force contribution feature in COMSOL. Theoretically, for a solenoid placed in a uniform background magnetic field, the net force acting on the wire should be zero. However, in my simulation, the computed force is not exactly zero; it typically ranges from about 10^-8 to 10^-10 N. Even after refining the mesh (by reducing the maximum element size), the force does not converge to zero. Furthermore, when I increase the number of turns and the current, the magnitude of the force also increases rather than converging to zero.</p> <p>I would like to confirm whether this behavior is expected (e.g., due to numerical errors, discretization, or modeling limitations), or if it suggests a possible issue with my setup. Thank you</p> Mon, 25 Aug 2025 04:22:13 +0000 4.2025-08-25 04:22:13.368321 Grounding / Earthing system https://www.comsol.com/forum/thread/368312/grounding-earthing-system?last=2025-08-24T20:38:08Z <p>Hello everyone.</p> <p>I want to simulate a grounding/earthing system. I started with a simple grid. As usual to grounding/earthing simulation softwares I applied a current to a line segment. The problem is that the current doesn't flow from one segment to another. All line segments are apparently isolated. Line segments were imported from autocad, but also tried to draw the lines in COMSOL or to draw a square polygon. The result was the same. I tried "union" geometry and "convert to curve". Nothing works. I appreciate suggestions to work around this problem.</p> Sun, 24 Aug 2025 19:06:01 +0000 4.2025-08-24 19:06:01.368312 About "Generate New Turbulence Model Interface" https://www.comsol.com/forum/thread/368311/about-generate-new-turbulence-model-interface?last=2025-08-24T06:25:17Z <p>In the User's Guide doc, the "Generate New Turbulence Model Interface" is designed to "create a new turbulent flow interface based on the current laminar or turbulent flow interface." And "Note that the parameters and expressions in text fields in all the features, except for Initial Values and the Name column in Global Equation, get exactly the same expressions as in the original model. " What is the difference if someone adds a new turbulent interface and inherent the old solution in the study node? What is the purpose for this interface? If I want to add an source term in the k-epsilon equation, what should be done?</p> Sun, 24 Aug 2025 06:25:17 +0000 4.2025-08-24 06:25:17.368311 Calculation of force on only a magnet in a air domain https://www.comsol.com/forum/thread/368302/calculation-of-force-on-only-a-magnet-in-a-air-domain?last=2025-08-23T16:31:32Z <p>I’m setting up a simple simulation where a permanent magnet is attached to the tip of a non-magnetic beam. I want to measure the beam’s deflection due to magnetic force. Later, I’ll add a coil so the force comes from the coil–magnet interaction. For now, since there’s no other magnetic material or external field in the model, the net magnetic force on the magnet should be ~zero, correct</p> Sat, 23 Aug 2025 05:04:05 +0000 4.2025-08-23 05:04:05.368302 Issue with components disappearing after running simulation https://www.comsol.com/forum/thread/368292/issue-with-components-disappearing-after-running-simulation?last=2025-08-22T21:05:45Z <p>Hello. I am relatively new to COMSOL. I am trying to model a heat pipe simulation.</p> <p>When I click 'build all,' I can see all of my components. When I compute the model however, a few components are missing. Does anyone know what could be the case?</p> <p>Everything is assigned to a material. Attached are screenshots and my .mph file.</p> Fri, 22 Aug 2025 18:08:54 +0000 4.2025-08-22 18:08:54.368292 Exporting Node Coordinates, Data, Node_id, and Connectivity from a Target Surface https://www.comsol.com/forum/thread/368291/exporting-node-coordinates-data-nodeid-and-connectivity-from-a-target-surface?last=2025-08-22T21:03:59Z <p>Hi,</p> <p>I would like to ask whether it is possible to simultaneously export the node coordinates, associated data, node IDs, and the connectivity information of nodes on a specific surface in COMSOL. Could you please advise if this can be achieved, and if so, how?</p> <p>I already know COMSOL can output the node coordinates, associated data at the same time.</p> <p>Thank you very much for your kind assistance.</p> <p>WCL</p> Fri, 22 Aug 2025 17:26:45 +0000 4.2025-08-22 17:26:45.368291 How can I get only scattered field without background field in Electromagnetic Waves, Transient https://www.comsol.com/forum/thread/368283/how-can-i-get-only-scattered-field-without-background-field-in-electromagnetic-waves-transient?last=2025-08-24T21:03:28Z <p>Hello, everyone! I tried to reproduce a FDTD article in COMSOL. I would like to introduce the model briefly: I couple temw with general form PDE to describe the dynamic in material. I set a Gaussian incident pulse in SBC and make it illuminate on a metasurface.</p> <p>I set a probe to get the output signal. There are two signals caused by the nonlinear PDE. I want to observe: (1) THz signal(2)400THz. I can get 400THz signal now, but I can't get THz signal. It may be covered by the background noise from Gauss pulse, and I want to eliminate it now.</p> <p>However, TS/SF technique used in the FDTD article which can help them get scattered field directly without background field doesn't exist in COMSOL. And background/scattered field technique only exists in Electromagnetic Waves, Frequency domain. So what I can do in Electromagnetic Waves, Transient now?</p> Thu, 21 Aug 2025 21:53:36 +0000 4.2025-08-21 21:53:36.368283