Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Fri, 13 Jun 2025 07:39:29 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Moving Mesh Simulation – Fatal Error During Assembly/Calculation https://www.comsol.com/forum/thread/352733/moving-mesh-simulation-fatal-error-during-assemblycalculation?last=2025-06-13T12:25:48Z <p>Dear colleagues,</p> <p>I would like to seek your advice on a moving mesh simulation issue.</p> <p>Current Model: I am simulating "the motion of a current-carrying conductor rod under the influence of a coil's magnetic field."</p> <p>Physics Interfaces Used: Moving Mesh Magnetic Fields (AC/DC Module) Global ODEs and DAEs (for equation-based modeling)</p> <p>Implementation Details: In the Magnetic Fields interface, I added a Force Calculation condition to compute the electromagnetic (Lorentz) force. The calculated force is passed to a global differential equation: F=ma=mxtt The displacement is then fed into the Moving Mesh interface to update the conductor rod's position. Since the electromagnetic force changes as the rod moves, I use Transient Analysis in the study step.</p> <p>Issue: Despite multiple adjustments, the simulation consistently fails with the error: "A fatal error occurred during assembly or calculation."</p> <p>Request: Has anyone encountered similar issues or have suggestions for troubleshooting? Any insights on: Correct coupling between Magnetic Fields, ODE, and Moving Mesh? Solver settings for such coupled electromechanical problems? Common pitfalls in force-driven moving mesh simulations? Thank you in advance for your expertise! Best regards,</p> <p>Liu</p> Fri, 13 Jun 2025 07:39:29 +0000 4.2025-06-13 07:39:29.352733 Setting of anisotropic conductivity of carbon fiber braided composites https://www.comsol.com/forum/thread/352723/setting-of-anisotropic-conductivity-of-carbon-fiber-braided-composites?last=2025-06-13T05:03:12Z <p>I studied the cases in the official case library, trying to define the anisotropic conductivity of carbon fiber with <strong>curvilinear coordinates</strong>(cc), but I don't know how to <strong>correctly quote</strong> the curve coordinates in the current (ec) and magnetic field (mf), do you have a partner who has done similar research?!!!</p> Fri, 13 Jun 2025 05:03:12 +0000 4.2025-06-13 05:03:12.352723 Modelling of B-Field with AC/DC Module https://www.comsol.com/forum/thread/352722/modelling-of-b-field-with-acdc-module?last=2025-06-12T21:48:35Z <p>I am currently working on building a model to simulate the B-Field of an electro-magnet. This is my first project on COMSOL and I am self taught so I am know i am making errors in my simulation approach for sure. I've attached an outline of my approach showing my Boundary conditions, Mesh and results. The results are not too far of the measured data (in a small location - I still need to check the rest of the field area) but i don't think my model is very stable.</p> Thu, 12 Jun 2025 21:48:35 +0000 4.2025-06-12 21:48:35.352722 RLC circuit not giving correct resonance https://www.comsol.com/forum/thread/352712/rlc-circuit-not-giving-correct-resonance?last=2025-06-13T13:07:23Z <p>Hi, I am trying to test a circuit with one lumped port and 3 lumped elements, one for R, L and C respectively. I am using 1 mohm, 1 nF and 1 nH as my values, so I should get a resonance at 159.15 MHz, with a Q of 1000 giving a width of 0.2 MHz. But when I sweep the frequency around this, I do not see any resonance. Why might this be? Thanks.</p> Thu, 12 Jun 2025 21:05:29 +0000 4.2025-06-12 21:05:29.352712 Possible to Obtain Current/Current Density in Electrical Currents, EC, from different Physics? https://www.comsol.com/forum/thread/352711/possible-to-obtain-currentcurrent-density-in-electrical-currents-ec-from-different-physics?last=2025-06-14T03:30:45Z <p>Hello,</p> <p>Is it possible to impose a current/current density in a Electrical Current domain, from a different physics? In my model, i have a coil, hts superconducting coil, using Magnetic Field Formulation, mfh, where i have a current density in the hts coil domain. How can i have the same current density, seen in the mfh domain, in the Eletrical Currents side? How can i impose it/connect it?</p> <p>My goal is to then have a terminal so i can connect it (hts coil) to an Electrical Circuit. Is there any other/possible way to connect this superconducting coil to an electrical circuit?</p> <p>Thanks</p> Thu, 12 Jun 2025 18:15:05 +0000 4.2025-06-12 18:15:05.352711 Incorrect S11 resonant frequency https://www.comsol.com/forum/thread/352701/incorrect-s11-resonant-frequency?last=2025-06-12T17:14:14Z <p>So based on previous discussion, I have managed to obtain better S11 values in negative range. However, I am unable to get the correct resonant frequency.</p> <p>I am not sure if it because of improper modelling, or that of wrong lumped port definition.</p> <p>Based on the image below https://gusbertianalog.com/content/images/2024/11/MEAS_ROUND_CC.png</p> <p>from the author of the article https://gusbertianalog.com/loop-antenna-design/</p> <p>I am supposed to get the resonant frequency at <strong>434 MHz</strong>, but instead i get it at <strong>460 MHz</strong>.</p> <p>I have uploaded the comsol file.</p> <p>(P.S. I tried to upload this question, but i got a message saying i cant view this question in the forum, so i am uploading the question again. )</p> Thu, 12 Jun 2025 16:24:23 +0000 4.2025-06-12 16:24:23.352701 Activated carbon fiber packed bed adsorption https://www.comsol.com/forum/thread/352663/activated-carbon-fiber-packed-bed-adsorption?last=2025-06-12T08:39:32Z <p>How to couple chemical adsorption and physical adsorption when both exist?</p> Thu, 12 Jun 2025 08:39:32 +0000 4.2025-06-12 08:39:32.352663 Model amorphous silicon crystallization with COMSOL https://www.comsol.com/forum/thread/352662/model-amorphous-silicon-crystallization-with-comsol?last=2025-06-11T20:28:13Z <p>Hello, I am interested in modeling laser induced crystallization of amorphous silicon (a-Si). The chain of phase transformations I am interested in is: a-Si -> Liquid Si -> polycrystalline Si. Is there a good way to model this in COMSOL? The main difficulty I have with Phase Change Material subnode of Heat Transfer in Solids module is that upon cooling the material drops back into a-Si phase which is not what should happen.</p> <p>Thank you!</p> Wed, 11 Jun 2025 20:28:13 +0000 4.2025-06-11 20:28:13.352662 CFD - Phase Field in Fluids - Solver Settings https://www.comsol.com/forum/thread/352661/cfd-phase-field-in-fluids-solver-settings?last=2025-06-11T14:48:39Z <p>Hey Comsol Peeps,</p> <p>I struggle with setting up a CFD simulation in which a small amount of liquid (micro liter regime) should be rotated within a hollow shell of 2mm radius. I always run into convergence errors after less than 1000 time steps no matter my settings.</p> <p>The simulation is 2D and so far I only try to simulate the fluid resting inside the shell (no rotation). The used physics are the lamina flow interface with gravity included (the gravity will ramp up over time to make the initiation less demanding) and the Two-Phase Flow, Phase field interface. As phase field settings I chose for the interface thickness the default: pf.ep_default as mobility tuning parameter 0.5 m*s/kg as external free energy 0 J/m^3 (these values are rather guesses)</p> <p>When computing I run into the error "Time adaptation interrupted." This happens at the time 0.057244s Looking at the velocity surface plot one can see two velocity hotspots at the fluid interfaces. However, checking the mesh at these hotspot , the quality doesn't seem to be too bad here. (see pictures) Does someone have an idea how to fix my simulation? <img src="https://imgur.com/a/wcvsqDp" alt="" /></p> Wed, 11 Jun 2025 14:48:39 +0000 4.2025-06-11 14:48:39.352661 Fluid solution mapping error in Fluid-Acoustic Simulation https://www.comsol.com/forum/thread/352651/fluid-solution-mapping-error-in-fluid-acoustic-simulation?last=2025-06-11T14:40:13Z <p>Hello everyone,</p> <p>I am currently doing an Acoustic-fluid simulation with stationnary turbulent flow, convected wave equation and background fluid flow coupling modules. I have only one geometry for the whole study, in the first place i do the fluid simulation, then I map the fluid fields onto my acoustic mesh and finally I do my acoustic simulation with the background flow set up as a variable not solved for. My problem is that i already did many simulation using a simple geometry for my conduct (3D cylinder) which worked totally fine.</p> <p>Now that I am using a more complex one based on CT-scans, I face issues during the mapping of my fluid fields onto the acoustic mesh. The error message is the following :</p> <p>" Extrusion coupling operator interpolation failed for at least one point: no source point found. - Geometry: geom1 - Domain: 1 - Destination coordinates: [-0.00146266445760077; -0.0021864553895055991; 0.00060947754522279061], [-0.0014856891031490996; -0.0021811204460443394; 0.0006247936128450256], [-0.001450351221716216; -0.002194843619005469; 0.0006247936128450256], [-0.0014270113859349211; -0.0021981395225136669; 0.00060828294733559498], [-0.0014966022294479824; -0.00217111449601754; 0.00060828294733559509], ... Failed to evaluate expression. - Expression: withsol('sol1',comp1.spf.pA) Failed to evaluate expression. - Expression: (comp1.bffc1.p_map-withsol('sol1',comp1.spf.pA))<em>dvol_spatial Failed to evaluate Jacobian of expression. - Expression: ((comp1.bffc1.p_map-withsol('sol1',comp1.spf.pA))</em>test(comp1.bffc1.p_map))*(dvol_spatial) "</p> <p>I understand that COMSOL struggles to find source point in my fluid domain but i can't understand why since my CFD simulation works fine and i have good results. Even with a mesh refinement of the source domain i keep having this problem, do you have any idea why and how I could solve this ?</p> <p>I sincerely thank you for your time and your answers !</p> Wed, 11 Jun 2025 14:40:13 +0000 4.2025-06-11 14:40:13.352651 Acoustic streaming due to bubble oscillations https://www.comsol.com/forum/thread/352632/acoustic-streaming-due-to-bubble-oscillations?last=2025-06-11T16:39:32Z <p>Hi,</p> <p>I'm trying to simulate the acoustic streaming due to the bubble oscillations in a cylindrical cavity under acoustic fields from literature. I'm unable to get the expected streaming. It would be of great help if someone could help me figure out what is wrong in my setup. I expected the flow away from the bubble as in the reference but mine is reverse.</p> <p>Thanks,</p> Tue, 10 Jun 2025 21:23:04 +0000 4.2025-06-10 21:23:04.352632 Learning Center Simulation: Modeling a Coil Connected to a Circuit https://www.comsol.com/forum/thread/352622/learning-center-simulation-modeling-a-coil-connected-to-a-circuit?last=2025-06-12T14:25:40Z <p>Hello,</p> <p>I am following along to the COMSOL Learning Center video titled <a href="https://www.comsol.com/support/learning-center/article/modeling-a-coil-connected-to-an-electric-circuit-2621/112">Modeling of a Coil Connected to a Circuit</a> and have come across an issue. I am able to follow along seamlessly with the tutorial until 41:25, where the instructor changes the core to instead be a hollow solid instead of just being off to the side. When it's done in the video, COMSOL immediately understands what all the domains should be assigned to and computes the solution. But in my file (COMSOL 6.2.0.339) domain 5, which is the air inside the hollow core, can not have any domains applied to it as it is "Not applicable." Magnetic insulation is applied to both the coils and the core by default and I get a trivial solution. Is there something that I'm doing wrong when trying to follow along?</p> <p>I attached both a .mph file from just before the hollow core is added, and a .mph file with the trivial solution (this one has Issue appended to the title).</p> Mon, 09 Jun 2025 23:36:29 +0000 4.2025-06-09 23:36:29.352622 surface impedance and sound absorption coefficient https://www.comsol.com/forum/thread/352621/surface-impedance-and-sound-absorption-coefficient?last=2025-06-09T11:51:30Z <p>How to calculate surface impedance and sound absorption coefficient for a two cavity parallel MPP system.</p> Mon, 09 Jun 2025 11:51:30 +0000 4.2025-06-09 11:51:30.352621 Expression for 2nd moment of area for domain probe? https://www.comsol.com/forum/thread/352611/expression-for-2nd-moment-of-area-for-domain-probe?last=2025-06-11T06:43:35Z <p>Hi to all,</p> <p>I was wondering if there is any built-in expression for calculating the second moment of area (area moment of inertia) using the Expression Tool. I’ve tried searching with keywords such as "inertia", "second moment", and "moment of inertia", but haven’t been able to find a suitable expression so far.</p> <p>Any guidance on how to access or define such an expression would be greatly appreciated.</p> <p>Best regards, Mirhan</p> Sun, 08 Jun 2025 12:30:51 +0000 4.2025-06-08 12:30:51.352611 Coupling physics, H-A formulation https://www.comsol.com/forum/thread/352601/coupling-physics-h-a-formulation?last=2025-06-07T11:49:45Z <p>Hello, i am trying to link two physics, applying the H-A formulation. My objective it to induce current in an hts, superconductor, pickup coil, using a copper coil. I wanted to use the H formulation for the hts coil, using COMSOL Magnetic Fields Formulation, mfh, and the rest (air+copper coil) solved with A, using Magnetic Fields Formulation, in a 2D axisymetrical model.</p> <p>My question is how the linking/coupling of the two physics should be done, so there is continuity in the electromagnetic properties. I'm guessing that is should be done via boundary conditions, but i am a bit lost where, what should be done in each side (mf and mfh), and using what parameters/values.</p> <p>Thanks</p> Sat, 07 Jun 2025 11:49:45 +0000 4.2025-06-07 11:49:45.352601 Fiber to Waveguide https://www.comsol.com/forum/thread/352592/fiber-to-waveguide?last=2025-06-06T16:55:56Z <p>Hi I am having trouble figuring out how to couple a fiber optic to a waveguide. I keep getting an error of having an undefined value in a residual vector and I don't know how to resolve it. I have attached my model. Any advice will be welcome!</p> Fri, 06 Jun 2025 16:55:56 +0000 4.2025-06-06 16:55:56.352592 Convective Flow https://www.comsol.com/forum/thread/352582/convective-flow?last=2025-06-13T15:23:15Z <p>I am working on a coupled heat and water flow. The physics involved are Richard's equation for water flow and heat transfer in porous media for heat flow. In my model setup, I applied free drainage (pressure head equal 0) at the bottom boundary which means water is leaving the system. This is confirmed from the total velocity result however for the convective flow the values are negative and the sign convection is upward. Since water is leaving the system, convective flow should have arrow downward add to the heat loss from the system via water removal in addition to the heat removed via conduction.</p> <p>Please any idea on what could be wrong and how to fix the model so the convective flow becomes positive and sign convection turns downward.</p> <p>Please see the attached for more details.</p> Fri, 06 Jun 2025 12:58:30 +0000 4.2025-06-06 12:58:30.352582 Lumped port question https://www.comsol.com/forum/thread/352542/lumped-port-question?last=2025-06-05T13:32:25Z <p>Hello,</p> <p>I am trying to model a simple 3D wire with MHz AC current running through it using the magnetic fields interface with lumped ports.</p> <p>I am printing out the parameters that the solution gives me for the lumped port, and I am a bit confused as to how to interpret them. I get an impedance, is this the impedance of just the region of the lumped port itself, or everything that is attached to the lumped port. Same for the power and voltage, is this for the whole system or only the lumped port itself?</p> <p>Thanks</p> Thu, 05 Jun 2025 13:32:25 +0000 4.2025-06-05 13:32:25.352542 How to Plot Effective Relative Permittivity (Tensor Form) vs Wavelength https://www.comsol.com/forum/thread/352541/how-to-plot-effective-relative-permittivity-tensor-form-vs-wavelength?last=2025-06-05T12:48:09Z <p>Hi, I am working on a metamaterial structure and have determined the effective relative permittivity components along the x, y, and z directions. However, I am unsure how to properly plot the real and imaginary parts of these permittivity components as a function of wavelength in COMSOL.</p> <p>I attempted to define the anisotropic permittivity as a tensor in the Materials node, but after simulation, I am unable to access the material function to generate a plot of effective permittivity versus wavelength.</p> <p>I would appreciate guidance on how to correctly define and visualize the wavelength-dependent effective permittivity components (both real and imaginary parts) in COMSOL.</p> Thu, 05 Jun 2025 12:48:09 +0000 4.2025-06-05 12:48:09.352541 Area moment of inertia (2nd moment of area) calculation https://www.comsol.com/forum/thread/352531/area-moment-of-inertia-2nd-moment-of-area-calculation?last=2025-06-05T20:23:52Z <p>Hi everyone,</p> <p>I’m trying to calculate the area moment of inertia (Ixx and Iyy) for an arbitrary 2D shape. As a simple example, consider a cross-section composed of two circles—I'd like to determine the area moment of inertia for this small circle.</p> <p>Since the geometry can be arbitrary in other cases, I’m looking for a general method to compute Ixx and Iyy. I’ve noticed that COMSOL (e.g., through the "mass properties" function) provide mass-related properties like mass moment of inertia, but what I need are the area moments of inertia.</p> <p>If anyone has suggestions or knows how to extract these values, I’d really appreciate your help.</p> <p>Best regards, Mirhan</p> Wed, 04 Jun 2025 14:31:59 +0000 4.2025-06-04 14:31:59.352531