Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Tue, 14 Oct 2025 03:05:34 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Reg- Microbalance sensor https://www.comsol.com/forum/thread/369181/reg-microbalance-sensor?last=2025-10-14T14:41:39Z <p>Dear Staff, Good morning, I would like to simulate Mass sensor based on graphene. Could you assist me or send any related model to start.</p> <p>thank you</p> Tue, 14 Oct 2025 03:05:34 +0000 4.2025-10-14 03:05:34.369181 TFLN rib waveguide - optical field results not showing https://www.comsol.com/forum/thread/369161/tfln-rib-waveguide-optical-field-results-not-showing?last=2025-10-13T10:08:50Z <p>Hello everyone, I am trying to simulate the optical field of a rib waveguide in lithium niobate. I attached an image of the cross section, together with the mph file. I first defined a work plane and extruded it to create the structure. I defined the materials and inserted a diagonal refractive index for the lithium niobate since it is an asymmetrical material. In the end I defined the ports and inserted the mesh, and launched everything.</p> <p>The problem is that the program runs and ends the simulation, without any shown error, but at the same time it doesn't compute the electrical field. In fact, the electrical field section under "Results" doesn't exist. Why is that?</p> Mon, 13 Oct 2025 10:08:50 +0000 4.2025-10-13 10:08:50.369161 Solver Convergence Issue in 2D Brinkman Flow through Anisotropic Porous Medium (Wavy Channel) https://www.comsol.com/forum/thread/369151/solver-convergence-issue-in-2d-brinkman-flow-through-anisotropic-porous-medium-wavy-channel?last=2025-10-13T15:48:39Z <p>Hello,</p> <p>I’m simulating steady-state flow in a 2D wavy channel using the Brinkman Equations interface (COMSOL Multiphysics 6.0). The flow domain is an anisotropic porous medium confined between two impermeable wavy walls.</p> <p><strong>MODEL SUMMARY:</strong> * consists of a wavy bottom that i defined using parametric curve * upper top plate is a moving plate with velocity lets say U0 in x direction and 0 in y * the left and right walls are not moving * No slip condition is applied for all * Physics used is brinkaman equation where the porous matrix is set to be a diagonal matrix where the diagonal entries were already defined in the parameters under global definitions. * Physics controlled mesh is used. * stationary study is added.</p> <p><strong>ERROR:</strong></p> <p>Failed to find a solution. Maximum number of Newton iterations reached. There was an error message from the linear solver. The relative residual (0.041) is greater than the relative tolerance. Returned solution is not converged. Not all parameter steps returned.</p> <p><strong>TRIED SO FAR:</strong> * Adjusted tolerances and damping * switched between direct solvers * increased iteration limits</p> <p><strong>QUESTIONS:</strong> * Recommended solver setup (Fully Coupled vs Segregated) for Brinkman flow? * Tips for stabilizing convergence in anisotropic, wavy porous domains? * Any scaling or nondimensionalization suggestions?</p> <p><strong>Any help to stabilize or improve convergence for this steady Brinkman model would be appreciated.</strong></p> <p>Regards!</p> Mon, 13 Oct 2025 05:07:18 +0000 4.2025-10-13 05:07:18.369151 Regarding the issue of the presence of both the paranoid coil and the incentive coil simultaneously https://www.comsol.com/forum/thread/369123/regarding-the-issue-of-the-presence-of-both-the-paranoid-coil-and-the-incentive-coil-simultaneously?last=2025-10-11T09:30:41Z <p>I want to conduct a simulation of a transducer. The overall structure is a cylinder. The coil part consists of an inner bias coil and an outer excitation coil. The bias coil provides a constant bias magnetic field, while the excitation coil provides an alternating magnetic field. How should I set up the bias coil to be energized by direct current, and the excitation coil to be energized by alternating current of a certain frequency?</p> Sat, 11 Oct 2025 09:30:41 +0000 4.2025-10-11 09:30:41.369123 How to add multiphase material in COMSOL 6.0 https://www.comsol.com/forum/thread/369121/how-to-add-multiphase-material-in-comsol-60?last=2025-10-11T08:30:07Z <p>I am trying to replicate the capillary filling model for two phase field in COMSOL 6.0. How to add a multiphase material? If we add from material library, how to specify the phases?</p> Sat, 11 Oct 2025 08:30:07 +0000 4.2025-10-11 08:30:07.369121 Potential Field in Electro-osmotic Flow https://www.comsol.com/forum/thread/369111/potential-field-in-electro-osmotic-flow?last=2025-10-10T09:19:25Z <p>Hi all,</p> <p>Currently I was trying to reproduce results from a research paper titled from Choi et al. (2011), (attached below). In that paper, two boundary conditions are used at the interface for electric potential. These are (i) potential jump and (ii) simplified gauss law at the interface. Now, while modeling using the 'es' physics in COMSOL, I am not able to see how to model both the conditions at the interface.</p> <p>I have attached my trial file, in which when I tried putting these conditions at the identity pair, the surface charge condition (gauss law) was getting overridden or fallback-ed due to the potential jump condition. From my understanding, COMSOL isn't letting me put both at the same time. I tried using a coefficient-form PDE to solve it too but it had the same issues with the interface conditions.</p> <p>What could be a potential fix to this? Is there another way to model the system as given in the paper?</p> Fri, 10 Oct 2025 09:19:25 +0000 4.2025-10-10 09:19:25.369111 Dual gate MOSFET design https://www.comsol.com/forum/thread/369091/dual-gate-mosfet-design?last=2025-10-08T12:20:44Z <p>Can anyone give any guideline regarding the design of dual gate MOSFET in COMSOL?</p> Wed, 08 Oct 2025 05:08:55 +0000 4.2025-10-08 05:08:55.369091 Gaussian Beam Plane Wave Expansion https://www.comsol.com/forum/thread/369072/gaussian-beam-plane-wave-expansion?last=2025-10-07T21:21:26Z <p>Hi, I just recently learnt that the paraxial gaussian beam equation is not really effective for a scatterer surrounded by inhomogeneous domains when using the scattered field formulation. it was proposed I use the plane wave expansion approach. for a 3D model, has anyone used the plane wave expansion approach using equations. I have attached my model of the paraxial approach. you can edit my model to suit the plane wave expansion method or if you have any example. That will be great.</p> Tue, 07 Oct 2025 21:21:26 +0000 4.2025-10-07 21:21:26.369072 NaN/inf value error https://www.comsol.com/forum/thread/369041/naninf-value-error?last=2025-10-06T08:40:48Z <p>I'm trying to simulate a cylindrical gas bearing with a sort of foil "floating" on it but I keep getting the same error: Undefined value found. - Detail: Undefined value found in the equation residual vector. There are 7 degrees of freedom giving NaN/Inf in the vector for the variable comp1.spatial.u. at coordinates: (1.94255,-0.112035,0.0920496), (1.94284,-0.111364,0.09286), (1.94356,-0.111577,0.092605), (1.94329,-0.111264,0.0930404), (1.9433,-0.111842,0.0923323), ...</p> <p>I don't think my mesh is the problem as well as my boundary conditions. I suspect it is something to do with my geometry although I also have the feeling that is correct as well. The model was working when I used the fluid-structure interaction model but I wanted to model smaller thickness of the foil and decided to change to fluid-shell interaction but then it did not work anymore whilst the boundary conditions basically have not changed compared to the previous model that did work. To get a surface from my previous model I have used the tool "Convert to surface" where I had a finite thickness ring around the gas bearing. What could be the problem here and where should I be looking to solve this problem?</p> Mon, 06 Oct 2025 08:40:48 +0000 4.2025-10-06 08:40:48.369041 Issue With Object Contact https://www.comsol.com/forum/thread/369032/issue-with-object-contact?last=2025-10-05T22:49:53Z <p>Hi everyone,</p> <p>I have been trying to model a basic piezoelectric compression model involving two domains. I have one block on top which represents a steel mass and another block on the bottom which is meant to model piezoelectric paper.</p> <p>I am very new to using COMSOL and am currently having trouble getting the two blocks to connect. When I apply a boundary load to the piezoelectric paper block and perform a stationary study, it works just as intended. However, when I place the block on top (in the assembly) and apply a Continuity to both domains of the Identity Boundary Pair (the two touching faces), I can't seem to get a solution that converges. I also apply gravity to both objects and put a fixed constraint of the bottom face on the paper.</p> <p>I can imagine this issue is likely due to the meshing as I am currently trying to use the Normal, Physics-controlled mesh. I wanted to try to build a User-controlled mesh in which the mesh gets finer when it is close to the point of contact for both objects. However, when ever I try to build a User-controlled mesh it never seems to work (the mesh is not physically displayed).</p> <p>I can't imagine that the fix is too challenging, but I have been stuck on this problem for quite some time. If anyone has any suggestions or ideas, that would be greatly appreciated!</p> Sun, 05 Oct 2025 22:49:07 +0000 4.2025-10-05 22:49:07.369032 Implementation of Weak Form PDE from PDE interface for battery charging discharging cycle https://www.comsol.com/forum/thread/369021/implementation-of-weak-form-pde-from-pde-interface-for-battery-charging-discharging-cycle?last=2025-10-02T15:38:34Z <p>Hello,</p> <p>I'm trying to build a Lithium-ion Battery model using Weak Form PDE from PDE interface in mathematics module, not using the lithium ion battery physics in Batteries module.</p> <p>I want to implement a charge-discharge cycling condition using Weak Form PDE from PDE interface in mathematics module, but I don't know how to do this.</p> <p>I know the way to applying the charge-discharge cycle in Lithium Ion Battery Physics, but I want to know the way to applying the charge-discharge cycle using Weak Form PDE from PDE interface Physics.</p> <p>Please provide the way, how can i Implement this?</p> <p>Thanks for reading,</p> <p>Prakash</p> Thu, 02 Oct 2025 14:00:04 +0000 4.2025-10-02 14:00:04.369021 Plot of temperature along a line inside of a thin layer https://www.comsol.com/forum/thread/369011/plot-of-temperature-along-a-line-inside-of-a-thin-layer?last=2025-10-09T14:08:30Z <p>Hello</p> <p>How can we plot the temperature along a line inside a thin layer? The line is parallel to the thin layer surface. I manage to do the surface graph of the temperature on the layer, but I would like to do the plot of the temperature only on a line. I've tried several approaches with the command atxd but they didn't succeed.</p> <p>Thank you</p> Wed, 01 Oct 2025 16:20:37 +0000 4.2025-10-01 16:20:37.369011 Mass conservation in COMSOL https://www.comsol.com/forum/thread/369001/mass-conservation-in-comsol?last=2025-09-30T20:32:41Z <p>Hi! I am using Heat transfer in solid and fluids module where phase changes from solid to fluid with larger density difference. I have integrated Laminar flow too to account for fluid movement. The phase change is working and the mesh size remains the same. How is it possible as the Laminar Flow module uses mass conservation equation too without any change in mesh shape? Thanks in advance.</p> Tue, 30 Sep 2025 20:32:41 +0000 4.2025-09-30 20:32:41.369001 Conditional parametric sweep https://www.comsol.com/forum/thread/368992/conditional-parametric-sweep?last=2025-10-01T14:41:45Z <p>Hi</p> <p>I'd like to run a parametric sweep with a couple of conditions. Here is an example of what I'm trying to do.</p> <p>a = range(1:1:10) b = range(1:1:10)</p> <p>The condition I want to add is a+b&lt;15</p> <p>Can I do this directly in COMSOL?</p> <p>Alternatively I generated the combination on MATLAB but when I am having the file read by COMSOL through a saved text file. It is saying Failure reading file. '1' is not a valid variable name.</p> <p>Could you please help me troubleshoot either of my methods. I'm wondering if the way the data is output from MATLAB is not compatible with COMSOL.</p> <p>Thanks and regards VK</p> Tue, 30 Sep 2025 16:03:11 +0000 4.2025-09-30 16:03:11.368992 Error in geometry modelling https://www.comsol.com/forum/thread/368991/error-in-geometry-modelling?last=2025-09-30T13:42:55Z <p>Im trying to model geometry to simulate an antenna, but i find that the difference operation shows that the object is empty. Furthermore, when applying materials to the geometry, some of the shapes cant be selected despite what ive tried.</p> <p>In comparison, when using an older version of COMSOL 5.3, this error doesnt seem to happen. Kidly let me know if there is anything i am missing, or is this a software issue.</p> <p>I have added the file for reference.</p> Tue, 30 Sep 2025 12:49:42 +0000 4.2025-09-30 12:49:42.368991 Import fractures of porous media as STL file https://www.comsol.com/forum/thread/368981/import-fractures-of-porous-media-as-stl-file?last=2025-09-30T12:44:04Z <p>I want to import fractures set in STL format from Fracman software, however, It cant be recognized as fractures in COMSOL and It does not appear in Darcy's law. Is there any different options for that as DFN network from COMSOL can be recognized and proceed with the simulations.</p> <p>Its really important for me as I'm stucked in this step.</p> Tue, 30 Sep 2025 12:44:04 +0000 4.2025-09-30 12:44:04.368981 Error for LiveLink with MATLAB https://www.comsol.com/forum/thread/368971/error-for-livelink-with-matlab?last=2025-09-29T13:18:09Z <p>Dear all,</p> <p>I convert the COMSOL simulation model file to run with LiveLink in MATLAB. When I run the .m file, the import commands work, but the command ModelUtil.crate does not.</p> <p>The command window gives:</p> <p>Unable to resolve the name 'ModelUtil.create'</p> <p>Error in (line 10) model = ModelUtil.create('Model')</p> <p>I am using COMSOL 5.6, Matlab 2022b on Ubuntu 18.04.6 LTS</p> <p>How can I fix this?</p> <p>Thank you in advance.</p> Mon, 29 Sep 2025 10:50:33 +0000 4.2025-09-29 10:50:33.368971 Coupling of 1D and 3D Pipe Flow (nonisothermal flow) https://www.comsol.com/forum/thread/368952/coupling-of-1d-and-3d-pipe-flow-nonisothermal-flow?last=2025-09-26T16:58:47Z <p>Greetings: I am attempting to transfer flow conditions from a 1D nipfl (nonisothermal pipe flow) outlet to a 3D nonisothermal flow (nitf) domain inlet, however, I have been having trouble making this work.</p> <p>The idea is simple: use the 1D mass flow rate (or pressure/velocity conditions) and outlet temperature and then use this data to produce an averaged value across the 2D fluid face for a 3D domain and continue analysis from there.</p> <p>I understand normally you can use features like "pipe connection" for coupling 1D to 3D features, but I'm reasonably sure that nipfl is not supported for this, as I cannot apply this multiphysics feature with the current physics present.</p> <p>Supposedly this can be done with general extrusion (1D point to 2D face projection), however, I have not successfully figured out how to make this work from the documentation I have read.</p> <p>Current simple test model is attached. It is meant to be a continuous uniform ID pipe with a thermal condition on the 1D length for testing purposes of this concept. Thanks.</p> Fri, 26 Sep 2025 16:58:13 +0000 4.2025-09-26 16:58:13.368952 Calculating Leakage and Magnetizing Inductance in a Simple Transformer Model https://www.comsol.com/forum/thread/368942/calculating-leakage-and-magnetizing-inductance-in-a-simple-transformer-model?last=2025-09-30T12:43:13Z <p>Hello.</p> <p>I am making a COMSOL model of a simple transformer with a primary 4 turn coil and a secondary single turn coil around a ferrite core. I was wondering if it was possible to calculate leakage and magnetic inductances in COMSOL with the model I have setup. Currently the only inductance values I can find are those of the individual coils.</p> <p>My MPH file is attached below. Is the model I made too simple to undergo such analysis?</p> <p>Thank you</p> Wed, 24 Sep 2025 18:11:15 +0000 4.2025-09-24 18:11:15.368942 Regarding contact - transient - impact https://www.comsol.com/forum/thread/368933/regarding-contact-transient-impact?last=2025-09-24T05:33:32Z <p>Now I have a problem with simulating the "stopper" structure (that is, one movable and one fixed constraint). The main small exploration is whether the structure will fail after the movable structure hits the stopper, such as damage or stress exceeding the limit. Assuming the gap between the movable and fixed is 2um, then I apply a load to the movable part, and the displacement of the movable part exceeds the gap, for example, the simulation result shows that the displacement of the movable part is 20um. However, through stress extraction, it is found that the stress has not exceeded the limit, and there is also a contact force in the contact setting. So I'm wondering if increasing the penalty factor is feasible, that is, will it prevent the displacement from being so large? Or are there any other suggested methods?!!</p> Wed, 24 Sep 2025 05:33:32 +0000 4.2025-09-24 05:33:32.368933