Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Tue, 15 Sep 2026 16:53:17 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ swept mesh problem in branched tube https://www.comsol.com/forum/thread/372711/swept-mesh-problem-in-branched-tube?last=2026-09-16T18:40:18Z <p>i have branched tube y shape and has hexahedral mesh done by swept mesh in horizontal tube but i have problem in creating hexahedral mesh in branched tube it is showing unsuported topology . how to mesh branched tube branched tube is at 25 cm from inlet and length of horizontal tube is 50 cm and branched tube is 25 cm</p> Tue, 15 Sep 2026 16:53:17 +0000 4.2026-09-15 16:53:17.372711 Nonsymmetric matrix https://www.comsol.com/forum/thread/372702/nonsymmetric-matrix?last=2026-09-15T13:59:40Z <p>In a simulation I am running, two coils wound on separate cores separated by an air gap are connected in series (Coils 1 and 3 are in series, and Coils 2 and 4 in series as well). When I run, I see the following in my log with almost no progress:</p> <p>Nonsymmetric matrix found. Scales for dependent variables: Magnetic vector potential (comp1.A): 1.7e-05 Divergence condition variable (comp1.mf.psi): 1</p> <p>The physics I use is similar to that in the ecore_transformer tutorial.</p> Tue, 15 Sep 2026 13:59:39 +0000 4.2026-09-15 13:59:39.372702 Mismatch Between Bandgap Calculated by Eigenfrequency Study and Transmission Loss Spectrum from Frequency-Domain Study in the Solid Mechanics Module https://www.comsol.com/forum/thread/372692/mismatch-between-bandgap-calculated-by-eigenfrequency-study-and-transmission-loss-spectrum-from-frequency-domain-study-in-the-solid-mechanics-module?last=2026-09-14T16:12:15Z <p>I am using the Solid Mechanics module in COMSOL Multiphysics 6.3 to study in-plane elastic wave propagation in a periodic acrylic plate with holes. From the eigenfrequency study with Floquet periodic boundary conditions, the dispersion curve shows a bandgap between the 3rd and 4th bands, approximately from 133 kHz to 154 kHz.</p> <p>To verify this bandgap, I performed a frequency-domain study on a finite structure with PML layers, I gave prescribed displacement of 1mm in x direction and calculated the transmission loss spectrum. However, the transmission results do not fully agree with the eigenfrequency analysis. The transmission loss is not consistently high throughout the predicted bandgap range, and noticeable attenuation also appears near 118 kHz, where no bandgap is observed in the dispersion curve.</p> <p>Could you please explain the possible reason for this discrepancy? How can I determine whether the bandgap given by the eigenfrequency study is a true complete bandgap for in-plane elastic waves, and what is the recommended COMSOL procedure for validating it using a frequency-domain transmission loss analysis?</p> Mon, 14 Sep 2026 16:12:15 +0000 4.2026-09-14 16:12:15.372692 Flow electrodes modeling https://www.comsol.com/forum/thread/372691/flow-electrodes-modeling?last=2026-09-14T17:33:23Z <p>I want to model a flow electrode where the fluid is a mixture of water and activated carbon with 1M Na2SO4. Can any one help me ? The two electrodes are separated with a nafion 114 membrane.</p> Sat, 12 Sep 2026 10:39:21 +0000 4.2026-09-12 10:39:21.372691 Level set variable no longer maintaining values between 0 and 1 after ~3 s https://www.comsol.com/forum/thread/372681/level-set-variable-no-longer-maintaining-values-between-0-and-1-after-3-s?last=2026-09-17T13:48:26Z <p>Hello,</p> <p>I am using the Two-Phase Flow, Level Set approach in COMSOL for a transient simulation. The model converges successfully until the end of the simulation time. However, after approximately 3 s, the level set variable no longer maintains the expected values close to 0 and 1.</p> <p>In particular, the maximum value of the level set variable gradually decreases to around 0.7–0.6, instead of remaining close to 1.</p> <p>Initially, I suspected that this was related to the mesh, so I refined the mesh, but the problem still persisted. I also adjusted the parameter controlling interface thickness and the reinitialization parameter. These changes improved the behavior to some extent, but did not completely resolve the issue.</p> <p>Has anyone experienced a similar problem with the Level Set method? I would appreciate any suggestions regarding mesh resolution, reinitialization, interface thickness, solver settings, or any other parameters that may help maintain the level set variable closer to its expected range.</p> <p>Thanks in advance.</p> Fri, 11 Sep 2026 09:43:21 +0000 4.2026-09-11 09:43:21.372681 Comsol 6.4 on Linux w/ multiple GPUs https://www.comsol.com/forum/thread/372651/comsol-64-on-linux-w-multiple-gpus?last=2026-09-08T08:49:54Z <p>Hi,</p> <p>I've recently been trying to make Comsol use multiple GPUs on a Linux-based supercomputer. Both CPU-only and single GPU configurations work fine.</p> <p>The machine has 4 GPUs, and given the same CUDA-related variable values, Python manages to use all 4 while Comsol only uses 1. My study uses the cuDSS solver, and I've ticked the option to use multiple GPUs in the solver config menu, to no avail...</p> <p>Anyone facing the same issue or having thoughts on the matter ?</p> <p>Cheers</p> Tue, 08 Sep 2026 08:49:54 +0000 4.2026-09-08 08:49:54.372651 Request a Trial Passcode https://www.comsol.com/forum/thread/372641/request-a-trial-passcode?last=2026-09-08T13:12:51Z <p>Hello Team, need a trial passcode to evaluate the software for my research work in wearable sensors on Human Body.</p> Mon, 07 Sep 2026 16:59:27 +0000 4.2026-09-07 16:59:27.372641 trial passcode https://www.comsol.com/forum/thread/372631/trial-passcode?last=2026-09-08T13:13:32Z <p>Hello COMSOL team i need a trial passcode please,</p> <p>Thank you</p> <p>Manel A</p> Mon, 07 Sep 2026 13:28:36 +0000 4.2026-09-07 13:28:36.372631 Phase specific turbulence on Euler Euler Interphase https://www.comsol.com/forum/thread/372601/phase-specific-turbulence-on-euler-euler-interphase?last=2026-09-04T12:03:59Z <p>How can I use k epsilon turbulence model only on the continuous phase on the Euler Euler Turbulence interface.</p> Fri, 04 Sep 2026 12:03:59 +0000 4.2026-09-04 12:03:59.372601 How to extract data from Layered Shell dataset to matlab https://www.comsol.com/forum/thread/372533/how-to-extract-data-from-layered-shell-dataset-to-matlab?last=2026-09-02T06:46:08Z <p>The mpheval and mphinterp functions fail to extract localized variables (such as r_llmat1_xdim) when querying standard evaluation datasets directly in memory. I need help on how to export this data into MATLAB. lshl1_eval = mpheval(model, {'T'}, 'dataset', 'lshl1'); 错误使用 mpheval mpheval (0): Java exception occurred: Exception: com.comsol.util.exceptions.FlException: 数据集类型无效。 Messages: 数据集类型无效。 - 标记: lshl1</p> <pre><code>lshl1_eval = mpheval(model, {'T','r','r_llmat1_xdim'}, 'dataset', 'dset1', 'selection', 3, 'edim', 1); </code></pre> <p>错误使用 mpheval mpheval (0): Java exception occurred: Exception: com.comsol.util.exceptions.FlException: 无法计算表达式。 Messages: 无法计算表达式。</p> <pre><code>未定义变量。 - 变量: r_llmat1_xdim - 几何: geom1 - 边界: 3 无法计算表达式。 - 表达式: 1000*r_llmat1_xdim - 特征: 计算 </code></pre> Sat, 29 Aug 2026 06:13:05 +0000 4.2026-08-29 06:13:05.372533 Difference in Results Depending on the Journal Velocity Setting in Multibody Dynamics–Hydrodynamic Bearing Coupling https://www.comsol.com/forum/thread/372491/difference-in-results-depending-on-the-journal-velocity-setting-in-multibody-dynamicshydrodynamic-bearing-coupling?last=2026-08-20T11:39:54Z <p>I am modeling a rotating shaft using Multibody Dynamics (MBD) and a Hydrodynamic Bearing (HDB).</p> <p>In MBD, I applied Prescribed Rotational Motion to the shaft and specified a constant angular velocity, omega.</p> <p>I then defined the journal bearing surface using the HDB interface. I tested two different settings for the Journal Velocity:</p> <ol> <li>Multiphysics-coupled velocity: The Journal Velocity is automatically obtained from the MBD interface through the Multiphysics coupling.</li> <li>Manually specified velocity: The Journal Velocity is directly set to the same constant angular velocity, omega.</li> </ol> <p>Since the shaft is prescribed to rotate at the same angular velocity omega in both cases, I expected the HDB results to be identical. However, I am obtaining different results between the two cases, such as differences in pressure distribution and other bearing characteristics.</p> <p>Why can these two Journal Velocity settings produce different HDB results even though the shaft is rotating at the same prescribed angular velocity omega in both cases?</p> <p>I would appreciate any explanation of what velocity is actually being passed to the HDB interface through the Multiphysics coupling.</p> Thu, 20 Aug 2026 05:38:13 +0000 4.2026-08-20 05:38:13.372491 COMSOL 6.4 "Operation not supported" Error https://www.comsol.com/forum/thread/372482/comsol-64-operation-not-supported-error?last=2026-08-24T13:12:53Z <p>My workplace just migrated to COMSOL 6.4. All of the models I developed in 6.3 are not working because of an error in several Electrical Circuit (cir) elements.</p> <p>I have five elements in my model: Ground Node 1, Voltage Source 1, Resistor 1, Inductor 1 and External I-Terminal 1. The Ground Node 1, and External I-Terminal 1 work as normal, when I click on them the GUI displays their settings. Clicking on Voltage Source 1, Resistor 1, or Inductor 1 produces a pop-up Error box with the text "Operation not supported" and a single OK button. Clicking OK closes the box but the Settings window is empty.</p> <p>I have recreated the Error in multiple old model files.</p> <p>I created a new model in COMSOL 6.4, added Electrical Circuit (cir) physics, and then added a Voltage Source. The Error was present in the new model as well so its not simply back compatibility, something is not working with the Electrical Circuit (cir) elements themselves.</p> <p>Please help,</p> <p>David</p> Wed, 19 Aug 2026 16:42:31 +0000 4.2026-08-19 16:42:31.372482 Invalid XML character (Unicode: 0x1) https://www.comsol.com/forum/thread/372471/invalid-xml-character-unicode-0x1?last=2026-08-15T13:42:03Z <p>Hello,</p> <p>I ran a COMSOL simulation and saved .mph file with all the data preserved to be able to use it again in future. I opened the same file again and got this error.</p> <p>"An invalid XML character (Unicode: 0x1) was found in the element content of the document."</p> <p>Is this error solvable? How can I recover my .mph file?</p> <p>Regards,</p> <p>Zain</p> Sat, 15 Aug 2026 13:42:03 +0000 4.2026-08-15 13:42:03.372471 Fluid Structure Interaction simulation fails at constriction with inverted mesh and ALE errors https://www.comsol.com/forum/thread/372461/fluid-structure-interaction-simulation-fails-at-constriction-with-inverted-mesh-and-ale-errors?last=2026-08-04T09:33:52Z <p>Hello Team COMSOL,</p> <p>I'm working on a 2D FSI model using <em>Laminar Flow</em> + <em>Solid Mechanics (Neo-Hookean hyperelastic)</em> + <em>Moving Mesh</em> with a fully coupled solver with automatic remeshing.</p> <p>The model contains a deformable hyperelastic object moving through a microchannel with a constriction. The simulation runs normally until the object reaches the constriction, where it consistently fails with errors such as:</p> <ol> <li>Inverted mesh element</li> <li>Undefined value found in the stiffness matrix</li> <li>NaN in <em>comp1.spatial.u</em> and <em>comp1.spatial.v</em></li> <li>Failed to find consistent initial values</li> <li>Last time step is not converged</li> </ol> <p>I've already tried:</p> <ol> <li>Refining the mesh near the constriction</li> <li>Adding fillets to the constriction</li> <li>Automatic remeshing</li> <li>Different Newton solver options</li> <li>Verifying mesh and boundary conditions</li> </ol> <p>The failure always occurs at the constriction.</p> <p>Has anyone encountered a similar issue? Are there any recommended ALE/remeshing settings or solver strategies for large-deformation Fluid Structure Interaction in narrow constrictions?</p> <p>I have attached the design for reference. Any suggestions would be greatly appreciated.</p> <p>Thank you.</p> Tue, 04 Aug 2026 09:33:52 +0000 4.2026-08-04 09:33:52.372461 Modeling heat transfer in geothermal using grid cell values https://www.comsol.com/forum/thread/372442/modeling-heat-transfer-in-geothermal-using-grid-cell-values?last=2026-08-03T14:58:24Z <p>Hi, I have 3D array with permeability properties and binary label indicating faults. In this tutorial, it seems the objects (fracture/faults, layers, etc) are defined thru different format and values are assigned uniformly for each objects. https://www.comsol.com/video/modeling-heat-transfer-in-porous-media-using-comsol-multiphysics How to use my data format for geothermal heat transfer simulation? I have 3D array with permeability values and 3D array with binary label where 1 is fracture and 0 is not-fracture.</p> Mon, 03 Aug 2026 14:58:24 +0000 4.2026-08-03 14:58:24.372442 "Content is not allowed in prolog". Message regarding a recovery file https://www.comsol.com/forum/thread/372441/content-is-not-allowed-in-prolog-message-regarding-a-recovery-file?last=2026-08-03T13:40:14Z <p>Hello,</p> <p>My computer crashed when editing a new file without ant previous saves. The existing recovery file does not open and instantly gives me this error message "Content is not allowed in prolog". Also when appearing in the recovery file window it has a blank name.</p> <p>Any idea if this can be fixed and I can gain access to the file.</p> <p>Best regards</p> Mon, 03 Aug 2026 13:40:14 +0000 4.2026-08-03 13:40:14.372441 Solution not Converging https://www.comsol.com/forum/thread/372432/solution-not-converging?last=2026-07-31T20:56:26Z <p>Hello,</p> <p>I'm pretty new to COMSOL, and I'm trying to simulate airflow through a diffuser (diverging duct), with gauze screens to prevent separation. I've tried using multiple models, including k-epsilon, k-omega, and SST. The convergence is rather quick when no screens are introduced. However, as soon as I introduce one screen, the error keeps oscillating and the solution never converges.</p> <p>The boundary conditions are: Inlet: 5 m/s Outlet: 0 Pa Walls: no-slip Inner boundary: wire gauze screen with 0.5 solidity and 0.001m wire diameter</p> <p>I've attached screenshots of the mesh and the convergence plot using k-epsilon model.</p> <p>Any recommendations would be greatly appreciated!</p> Fri, 31 Jul 2026 20:56:26 +0000 4.2026-07-31 20:56:26.372432 Identification of critical surface https://www.comsol.com/forum/thread/372411/identification-of-critical-surface?last=2026-08-05T12:13:04Z <p>Hello everyone, I would like to know if any of you can help me with a post-processing option of COMSOL. I have a flow field in which I want to identify the critical surface of the capture zone of a single well in a uniform regional gradient, isotropic , homogeneous medium. I know the coordinates of the stagnation point and I know that this critical surface I am looking for is the stream surface passing through the stagnation point. Can you suggest me what types of commands could I use to visualize this critical stream surface? This would be really helpful to me. Thanks a lot.</p> Fri, 31 Jul 2026 11:02:42 +0000 4.2026-07-31 11:02:42.372411 ABH and power law curve in the TL audio duct https://www.comsol.com/forum/thread/372391/abh-and-power-law-curve-in-the-tl-audio-duct?last=2026-08-10T17:35:05Z <p>Hello everyone, I would like some opinion on the correct physical interpretation of a system that combines an Acoustic Black Hole (ABH) profile, a power-law curve, with a progressively increasing cross-sectional area filled with fiber or foam. I've read about this topic, but I'm not sure if it can also be applied in the audio field to the first part of a transmission line duct (after the woofer and before the 180-degree bend) of a speaker enclosure. I'll briefly summarize what I understand: 1. A duct in which the air cross-sectional area decreases towards the end following a power law (curve with exponent ≥ 2). From theory, this profile should progressively slow the phase velocity of the wave to values close to zero, reducing reflection at the end. 2. In the terminal area of the duct (where the air cross-sectional area is now very small), the space is almost completely filled by a wedge of porous material (fiber) with progressive density (increasing towards the tip). **Note: I thought about applying the power-law curve and the wedge of porous material to opposing panels (one facing the other). I've attached an image.</p> <p>Does anyone have experience with this? Any explanations are welcome, even simple ones, because I'm still a beginner.</p> <p>Thanks to anyone who can respond.</p> <p>References - ABH/SBH theory for ducts: ScienceDirect - A plug-in sonic black hole for duct terminations - Rectangular ABHs for air absorption: ScienceDirect - Numerical study of rectangular acoustic black holes - Distinction of mechanisms in SBH: ScienceDirect - Sonic black holes without rainbow trapping</p> Thu, 30 Jul 2026 14:17:22 +0000 4.2026-07-30 14:17:22.372391 Combining Explicit trap distribution with Lombardi mobility in 2D MOSFET https://www.comsol.com/forum/thread/372361/combining-explicit-trap-distribution-with-lombardi-mobility-in-2d-mosfet?last=2026-07-28T12:33:35Z <p>I am working on a 2D nMOSFET stationary study in COMSOL 6.3 (Build 420) using the Semiconductor Module. I am trying to combine two features that each work individually but fail when used together:</p> <ol> <li>Trap-Assisted Surface Recombination (boundary, Boundary 5) with Explicit trap distribution, Continuous Energy Level sub-node, Gaussian σ=0.1 eV, midgap centred</li> <li>Arora + Lombardi + Caughey-Thomas mobility model chain with continuation parameter cp</li> </ol> <p>WHAT WORKS SEPARATELY: - Explicit trap distribution alone converges using a three-step sequence: trap-free solve at subthreshold → ramp Nt at fixed Vg → sweep Vg forward ✓ - Lombardi + Caughey-Thomas alone converges using the auto-generated Segregated solver ✓</p> <p>THE PROBLEM: When combining both, the auto-generated Segregated solver computes this scale for the trap occupancy variable at the start of the solve:</p> <p>Trap Occupancy (comp1.semi.tasr1.ctb1.ft): 2.3e+35</p> <p>This is clearly wrong — ft is a dimensionless occupancy fraction bounded between 0 and 1, so its scale should be ~1. The incorrect scale of 2.3e+35 makes the Newton step sizes completely wrong and the solver diverges.</p> <p>WHAT I HAVE TRIED: - Setting manual scale of ft = 1 in Dependent Variables node — this is reset when Show Default Solver regenerates the configuration - Fully Coupled solver instead of Segregated — also fails, same root cause - Lower/Upper bounds on ft (0 to 1) added to Segregated node — helps slightly but does not resolve the scaling issue - Various Nt/cp ramp orderings — the system converges up to Nt = 1×10¹² m⁻² but fails consistently at Nt = 1×10¹³ m⁻² with residual stalling at ~7×10²</p> <p>SPECIFIC QUESTION: How can I permanently set the scale of comp1.semi.tasr1.ctb1.ft to ~1 in the auto-generated Segregated solver for Lombardi, so that it persists and is not reset by Show Default Solver? Is there a known approach for combining Explicit trap distribution with field-dependent mobility models in a 2D stationary semiconductor study?</p> <p>I am attaching the log file showing the incorrect scale. Any suggestions welcome.</p> Tue, 28 Jul 2026 10:48:14 +0000 4.2026-07-28 10:48:14.372361