Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Fri, 25 Apr 2025 20:49:44 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Error: Underdefined material property 'epsilonr' required by Charge Conservation 1. https://www.comsol.com/forum/thread/351122/error-underdefined-material-property-epsilonr-required-by-charge-conservation-1?last=2025-04-25T21:21:15Z <p>To whom it may concern</p> <p>I am trying to simulate the static electric filed distribution for my first step. It was working. But after the COMSOL automatically removes the small details in my model geometry, the Error shows up. The Error is "Undefined material property 'epsilonr' required by Charge Conservation 1." I checked all my Material Property setting. All materials have epsilonr values and all geometry have been assigned materials. I attached my mph file. Could COMSOL experts help me out? Thank you very much for helping.</p> Fri, 25 Apr 2025 20:49:44 +0000 4.2025-04-25 20:49:44.351122 Problem with saving table in a method https://www.comsol.com/forum/thread/351121/problem-with-saving-table-in-a-method?last=2025-04-25T17:22:11Z <p>Hi everyone, I'm currently working on creating small scripts using methods in the Application Builder to simplify the export of data in the Model Builder. I call the equivalent method in the Model Builder to get it running.</p> <p>Right now, I'm trying to save a table using the following script and ran into two issues:</p> <p>model.result().evaluationGroup().create("eg10", "EvaluationGroup"); model.result().evaluationGroup("eg10").set("data", "dset1"); model.result().evaluationGroup("eg10").label("Iron Losses"); model.result().evaluationGroup("eg10").create("int1", "IntSurface"); model.result().evaluationGroup("eg10").feature("int1").label("Surface Iron Losses"); model.result().evaluationGroup("eg10").feature("int1").set("intvolume", true); model.result().evaluationGroup("eg10").feature("int1").selection().named("sel15"); model.result().evaluationGroup("eg10").feature("int1").set("expr", new String[]{"rmm.Qh"}); model.result().evaluationGroup("eg10").feature("int1").set("descr", new String[]{"Volumetric loss density, electromagnetic"}); model.result().evaluationGroup("eg10").feature("int1").set("unit", new String[]{"W/m"}); model.result().evaluationGroup("eg10").feature("int1").setIndex("expr", "rmm.Qh*L", 0); model.result().evaluationGroup("eg10").feature("int1").setIndex("descr", "P_iron_MOD", 0); model.result().evaluationGroup("eg10").run();<br /> //model.result().evaluationGroup("eg10").save("Z:&#92;Simulationsergebnisse&#92;Iron_losses.txt");<br /> //model.result().evaluationGroup("eg10").save("C:&#92;Users&#92;kzt&#92;Documents&#92;Iron_losses.txt");<br /> //model.result().evaluationGroup("eg10").save("C:&#92;Temp&#92;Iron_losses.txt");</p> <p>1.) Everything works fine up to the last commented-out line. Unfortunately, I can’t save to any of the specified directories and I always get the following error:</p> <p>"Cannot open file for writing. - Filename: Z:\Simulationsergebnisse\Iron_losses.txt (with all the other paths as well) - Table: Iron Losses"</p> <p>However, I can manually save to the paths via mouse click.</p> <p>2.) Is there an alternative to the following line?</p> <p>"model.result().evaluationGroup("eg10").feature("int1").selection().named("sel15");"</p> <p>I’d like to use the name of the selection instead of the index number 15. When I add or remove selections, the index changes, so "15" may no longer refer to the correct selection.</p> <p>Best regards and many thanks in advance for your help!</p> <p>Tobias Zeller</p> Fri, 25 Apr 2025 14:46:44 +0000 4.2025-04-25 14:46:44.351121 Modelling charge transfer in a slag-crucible (solid-liquid) interface https://www.comsol.com/forum/thread/351111/modelling-charge-transfer-in-a-slag-crucible-solid-liquid-interface?last=2025-04-25T12:51:31Z <p>I want to model the electronic conduction of my slag (essentially a mixture of metal oxides, containing FeO/Fe2O3 which allow for electronic conduction (i.e. electron transfer)). However in my tests I see that my platina crucible is interferring with my actual slag conduction. I want to model this test but I don't know exactly how to model the (possible) charge transfer at the slag-crucible interface. Anyone has any ideas/experience in how to model this? Thanks in advance.</p> Fri, 25 Apr 2025 12:51:31 +0000 4.2025-04-25 12:51:31.351111 Modeling induced stresses https://www.comsol.com/forum/thread/351101/modeling-induced-stresses?last=2025-04-25T12:52:46Z <p>Hi everyone, I am trying to do a 1D simulation of induced stresses in the carbon fiber anode and LiFePO4 composite matrix cathode of a structural composite battery due to Li-ion intercalation/deintercalation using COMSOL. Carbon fiber acts as the negative electrode and is transversely isotropic. I have a value of intercalation-expansion coefficient B_j and each component's electrochemical and mechanical properties. I have not been able to solve the following points. 1. I have not been able to define transversely isotropic materials of carbon fiber anode. 2. I have not been able to assign swelling strain to the console. 3. I'm not able to couple lithium battery physics with solid mechanics.</p> <p>The displacement and stress solutions obtained for each phase must satisfy the following. Interface conditions: (i)Radial displacement must be zero on the symmetry axis. (ii)Radial displacement and radial stress continuity at all interfaces. (iii) The outer boundary of the cylinder assembly is stress-free. In the equation, where ck is the time-dependent Li concentration in the active material, ck, max is the maximum concentration corresponding to Li intercalated into all available sites in the host materials. index k-m for the matrix, k-c for the coating(solid electrolyte), and k-f for the fiber in the cylindrical coordinates.</p> <p>I need to follow the variable plot during charging and discharging. 1. Li distribution in fiber radial position. 2. Lithium concentration in the carbon fiber center and at the surface. 3. Li distribution in the matrix during loading . 4. Stresses at fiber boundary. 5. Stress distribution along fiber radial direction</p> <p>I request to you please guide me how can i perform this simulation.</p> Fri, 25 Apr 2025 12:06:00 +0000 4.2025-04-25 12:06:00.351101 Eigenvalue solver 1 (sol1/e1) No eigenfrequencis found https://www.comsol.com/forum/thread/351091/eigenvalue-solver-1-sol1e1-no-eigenfrequencis-found?last=2025-04-25T11:34:02Z <p>Hello we are trying to complete a lab moment in our course in mechanical physics. In this course we are trying to build a cube sat and try to find eigenfrequencis but our lab instructions are very unclear anyone got an idea?.</p> Fri, 25 Apr 2025 11:34:02 +0000 4.2025-04-25 11:34:02.351091 Build the model https://www.comsol.com/forum/thread/351083/build-the-model?last=2025-04-25T10:13:23Z <p>Hello, I have some questions to ask: While reading an article, I saw a 2D model built using COMSOL software, as shown in the figure. How can I construct such a 2D dipole antenna in COMSOL? Are there any related tutorial cases available? Thank you very much for your help!!</p> Fri, 25 Apr 2025 10:13:23 +0000 4.2025-04-25 10:13:23.351083 How to implement Hoffmann & Lauritzen's crystallization model and integrate the absorption coefficient over the thickness https://www.comsol.com/forum/thread/351071/how-to-implement-hoffmann-lauritzens-crystallization-model-and-integrate-the-absorption-coefficient-over-the-thickness?last=2025-04-24T12:13:40Z <p>I am working on laser welding two blocks of the same measurements placed on top of each other, one being semi-transparent and the other absorbing. The absorption coefficient depends on the crystallinity rate, and my goal is to see how the source term evolves over the thickness by integrating the absorption coefficient over the thickness and implementing crystallization in COMSOL and coupling the models.</p> Thu, 24 Apr 2025 11:03:38 +0000 4.2025-04-24 11:03:38.351071 Topology optimization Warning https://www.comsol.com/forum/thread/351062/topology-optimization-warning?last=2025-04-25T14:43:27Z <p>Hi Everyone, I am working on a Topology Optimization setup of model (that consists of two materials) that undergoes Induction Heating(Physics involved: electromagnetic heating) in two step study ( Step1: Coil Geometry analysis, Step2: Frequency-Transient Solver, the optimization is applied for step 2). I have setup the settings for the required density model for topology optimization as following: theta_min: 0.01 theta_initial: 0.5</p> <p>Control Variable Constraints: 0.9>=theta_average>=0.5 The optimization(MMA solver) starts properly at first iteration, but after that depending on the initial value given, after some iterations, I start getting this "Warning: Forward solution failed, requesting reduced step." This persists continuously and eventually I have to cancel the compute.</p> <p>I would really grateful any help and please let me know if you need any further information regarding this.</p> <p>Best, Ashok</p> Thu, 24 Apr 2025 02:36:15 +0000 4.2025-04-24 02:36:15.351062 An Additional Matrix "Constraint Jacobian" In Shell Module https://www.comsol.com/forum/thread/351052/an-additional-matrix-constraint-jacobian-in-shell-module?last=2025-04-23T18:05:04Z <p>Hi,</p> <p>Recently, when I checked the process of "Elimination Constraint Handing" in Shell Module, I found something confused.</p> <p>As a toy model, I just built a plate in the Shell Module and no boundary conditions are applied. However, in the matrix "Constraint Jacobian", an additional constraint was used, i.e. <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF0AAAAUCAQAAABFL/nsAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAAHdElNRQfpBBkKHgIS1oUaAAAB7klEQVRIx+WX3ZHiMBCEv7naBHQhOAWloBSUgi8EOQQTAoQAIUAIOAQcAg5h7kFIyAs2mN2qLWrtB/33tGZ6pmxR3vX589MEfgV1sVK9IXXx0mKwsi7o6xu8VJwuPcsxzb6H1wO7i6M7EB/770HdF/0BFzsfsRGLB23E4jCgzXJ8MdQYNtoDiGfQwzdRN5RI1Yg6Ths5CfS6AtlK0NViA0EbaQn8A6DlIYJYzN2FQbtilxutdSOvi+cQb6ObeHQCcp5GxIg+r6h47HM/udLNnLKXVlFwCg7NGX0k5IyucbTYm5w/045mnEKFxp3URU24i7CgvjgUl0dtRi6m9pmWUuVLVAo+bR9R394YCal0sWY9j7CoNCo+j/aJ50cRhhQkTxdTLQfuRkDa8/dOKF0WictKn0AAkDAlzLJMaC9gU3kEhkLrn4x5diCtNqAx5WqeqziWTal0CbqaRTg8mVO7on+tNlc95ZAolUKdtRrYJgE9CO0papIWVfDx1BKESbWfsnjOmJHWaa/K5YgnpA2Xo+dyPGmiZosj4DjiUqovQZhEDqwxVOyv6Z4aM6aa7xjytvCUCZPPutcQZpI1UI9YPvDi6UKoKE+LDH4ZYfqVub8kMQQ6BjzDK58G34Ewg/3oB08shj4Xy1dMfBnh/vMf7xGc4EaHKPUAAAAtdEVYdGljYzpjb3B5cmlnaHQAQ29weXJpZ2h0IEFydGlmZXggU29mdHdhcmUgMjAxMQi6xbQAAAAxdEVYdGljYzpkZXNjcmlwdGlvbgBBcnRpZmV4IFNvZnR3YXJlIHNSR0IgSUNDIFByb2ZpbGUTDAGGAAAAIXRFWHRwczpIaVJlc0JvdW5kaW5nQm94ADU2eDEyKzI3Nys2Mzds0h0fAAAAHnRFWHRwczpMZXZlbABQUy1BZG9iZS0yLjAgRVBTRi0yLjBB+TMTAAAAAElFTkSuQmCC" />. What's the meaning for this constraint?</p> <p>In my knowledge, it implies the displacement component u_3 should be equal to 0 for all nodes. Actually, the surface plot in "Results" tells me this is misunderstanding.</p> <p>Any guidance would be very appreciated. Thanks!</p> Wed, 23 Apr 2025 17:40:53 +0000 4.2025-04-23 17:40:53.351052 Time-Dependent Solver doesn't progress from 0% https://www.comsol.com/forum/thread/351051/time-dependent-solver-doesnt-progress-from-0?last=2025-04-23T22:55:54Z <p>Hi everyone,</p> <p>I'm currently working on a 3D simulation (+Magnetic Fields (mf) interface) involving an oscillating object along the z-axis, surrounded by deforming air domains. The object motion is prescribed using a sin(2<em>pi</em>ft) deformation, also for the upper and lower "air slugs" with (I hope) the correct deformation functions. The simulation needs to be in 3D since I'm gonna add asymmetric coils to the geometry to simulate induction voltages in pickup coils.</p> <p>I've added a stationary solver at the beginning, and producing a stationary magnetic field plot is fine. Everything also seems fine geometrically and mesh-wise, but my time-dependent solver fails immediately with the following error:</p> <blockquote> <p>Failed to find consistent initial values.Singular matrix.For mesh case 0 there are 72 void equations (empty rows in matrix) for the variable comp1.mf.mag1.Vc_d0...</p> </blockquote> <p>I correctly added all the magnetic insulations boundaries, continuity bound pairs and right now I am at a loss for solutions. I would be happy if someone with experience helped me out.</p> <p>Best regards.</p> Wed, 23 Apr 2025 17:40:52 +0000 4.2025-04-23 17:40:52.351051 How to pass the temperature when use the external material interfaces for structure module? https://www.comsol.com/forum/thread/351041/how-to-pass-the-temperature-when-use-the-external-material-interfaces-for-structure-module?last=2025-04-23T13:23:25Z <p>I want to implement a new shape memory alloy material model, where the parameters denpend on temperature. Is there any way to pass the solved temperature to the general strain-stress interface?</p> Wed, 23 Apr 2025 13:23:25 +0000 4.2025-04-23 13:23:25.351041 Antenna calculation Frequency combination https://www.comsol.com/forum/thread/351023/antenna-calculation-frequency-combination?last=2025-04-22T14:14:54Z <p>I would like to consult regarding a technical issue concerning dual-band antenna simulation using COMSOL's RF Module. Currently, I'm modeling an antenna that needs to operate simultaneously across two frequency bands: 0.6-1.0GHz and 1.6-2.0GHz, with the goal of obtaining composite simulation results.</p> <p>Specifically, I need to:</p> <p>Apply a single excitation source that simultaneously covers both frequency bands</p> <p>Analyze the antenna's radiation characteristics under this dual-band operation</p> <p>Acquire the superimposed field distribution results</p> <p>Could you please advise on the proper configuration for implementing this multi-frequency analysis in COMSOL? Your guidance on the setup methodology would be greatly appreciated.</p> <p>Thank you very much for your assistance!</p> Tue, 22 Apr 2025 13:07:01 +0000 4.2025-04-22 13:07:01.351023 Polypropylene PP material library https://www.comsol.com/forum/thread/351021/polypropylene-pp-material-library?last=2025-04-22T08:46:21Z <p>Hello, I am looking for polypropylene in the material library but can not find it. How to have it ? Thanks</p> Tue, 22 Apr 2025 07:29:01 +0000 4.2025-04-22 07:29:01.351021 How to Export Stiffness and Mass Matrices in COMSOL Eigenfrequency Study https://www.comsol.com/forum/thread/351012/how-to-export-stiffness-and-mass-matrices-in-comsol-eigenfrequency-study?last=2025-04-22T11:05:54Z <p>Hello,</p> <p>I'm using COMSOL Multiphysics to perform an eigenfrequency analysis of a cryogenic suspension beam for a gravitational-wave detector project. I want to export the stiffness matrix (K) and mass matrix (M) for each mode, so I can compute the energy using the quadratic form: <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG4AAAArCAQAAAAzx3WvAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAAHdElNRQfpBBkKHgIS1oUaAAAC+klEQVRo3u2Z4ZmiMBCG37lnG6AFroRcCbEELCFbApaAJWAJWoKUgCXsliAlzP0AJSi4eELc89mPP4Qkk3zMZGaSiDI/JNbPAMNc4W1+YjgMi5cjJ4aECkv1DGog85ul7EGforlfzxj0h9wPuR9yr4mXJjd7EL8HUlIAkLIGwDwWQr4ROTFsdAOS8KkrAEkfk/idzNLqBgDT6I9HM5uZMxTJiEiAHRWbcemzlLUGJxi9Jicx7vxtrRWIIwbgoLtZ+V9OKOLI7/Y3dGYGhRYAYrHNl1u/TM8PGYrxygklsRL2IeGjU46wpChKjj3Nh5iMIw5LNCzLdyiGgx688udYQ5oU7Yqrf35FIfVrpW2NxbDozLYHvkOxXbFX5TCwHL5qIimO5VfUvFAgFi7ERqH1JhlgMJLq+karHPTPGHmtWVoIoylxJPWbLkAyzOldV8DqZt+IPYWuxklsyRkO6sUVGTAPMUS941Zfm0kzgQ0b2WOp3X1BwmJkkDDkGCJZazVGoq+5rilclk9IBsceSQ6AJXucHNiRsxxp/jFb1uTE5CxHSWxcq0VJOi44e9ip93z0ag1HlNIPPoOSLIrWgakJC2lPqyuJfozrRIzHyY2IaMpxTCRtyDUzYot2I/KQxLezyrsrzg05F0kH1hx60xX0wFJg2cpC78sh3zHEbOXPVb8LiSdyn/6UJSIezO6KIXL3QTLQheQ4Mt7v6amVLCmvV16PRE/x0TnhyW4lNZOYpGPbjFW2BjfOLJW+ldcn0a8ssVjSaakRtRmht77Pq4YSRdnjBvob9k2bj1Mr3Ln6Azcs0dvySIwlYjdlXiIpERUxhvexcXBCzGp86cmnkY3zi9M+8+7E21uCNVFnXxYEc5PL6xetoM74QmLeA6Jl5xQk+N5wVnLtAYXU5yiBEeAKC+oTybszmP+DnOSgd2Uh0yDAuaW451ALQE4ccU1N4hcjJ8bbLdiHRP0D5r7wzzhIFprUefw5HYocO9ujhQY+KgwUCp6D73TLMzn+AqCqJLIje8bKAAAALXRFWHRpY2M6Y29weXJpZ2h0AENvcHlyaWdodCBBcnRpZmV4IFNvZnR3YXJlIDIwMTEIusW0AAAAMXRFWHRpY2M6ZGVzY3JpcHRpb24AQXJ0aWZleCBTb2Z0d2FyZSBzUkdCIElDQyBQcm9maWxlEwwBhgAAACF0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAA2NngyNisyNzIrNjI4Joc4fgAAAB50RVh0cHM6TGV2ZWwAUFMtQWRvYmUtMi4wIEVQU0YtMi4wQfkzEwAAAABJRU5ErkJggg==" /></p> <p>externally.</p> <p>Issue: I followed these steps:</p> <ul> <li><p>Created an Eigenfrequency study (with or without prestress).</p></li> <li><p>Added a Matrix Export node under "Derived Values."</p></li> <li><p>Selected “Stiffness Matrix” and “Mass Matrix” with options "Global" and "Sparse."</p></li> </ul> <p>However, when I try to export, COMSOL gives the error:</p> <p>"K is not stored."</p> <p>I’ve also tried switching to frequency-domain or stationary studies and adding Input Matrix nodes under the solver configuration, but nothing has worked so far.</p> <p>My Questions:</p> <ol> <li><p>Is there a correct way to configure the eigenfrequency study so that the stiffness and mass matrices are stored and exportable?</p></li> <li><p>Does this feature require enabling something before solving?</p></li> <li><p>Is there any workaround if I don’t have LiveLink for MATLAB or Java API access?</p></li> </ol> <p>Any guidance would be very appreciated</p> Tue, 22 Apr 2025 01:52:51 +0000 4.2025-04-22 01:52:51.351012 Can COMSOL prestressed Eigenfrequency Analysis Provide Valid Elastic Energy Estimates for Mode Shapes? https://www.comsol.com/forum/thread/351002/can-comsol-prestressed-eigenfrequency-analysis-provide-valid-elastic-energy-estimates-for-mode-shapes?last=2025-04-22T02:03:44Z <p>Hello,</p> <p>I'm working on a cryogenic suspension design for a gravitational wave detector and using COMSOL Multiphysics to study internal vibration modes. I'm trying to determine whether the elastic strain energy reported in an Prestress Eigenfrequency Study can be reliably used to estimate the thermal motion of modes at cryogenic temperatures using energy scaling — for example, by scaling mode shapes such that the total energy equals</p> <p>A senior collaborator raised this concern:</p> <p>“Eigenvalue analysis is a frequency-domain calculation, and energy is not properly defined because initial conditions are not included. Therefore, the energy returned by COMSOL may not be meaningful.”</p> <p>I understand that eigenfrequency mode shapes in COMSOL are arbitrarily normalized. However, COMSOL does internally compute the strain energy density and integrates it over the domain to report a total elastic energy per mode. I have already exported this using a volume integral of: <img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALsAAAAwCAQAAADj7sP6AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAAHdElNRQfpBBkKHgIS1oUaAAAFaklEQVR42u2c63mjPBCF3/mebUBbgrYEbQlKCaQEXAIuAZdgSohLMCWYEkwJoYT5fnDH+O4EyLOHPwZxGR2Go5mRElH+4fvxa2oDHoHEQEGq2YVzrOZT23keC6RdQhwrDjjez5xhCXG8TW3peSyQdiLWFKSM+ro4Ago8xdRmXoIsTdsl4IPfeoVU2YPO2Nv/m9qAu+HJrpE+fyyP9oB0ahOex8JoF48he/4+U2NhtOPhH+3fD0cx53j8ViyNdv8TfH1htMsPk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hdmnz7j1rYNeLx5tWCV5WNr4j1pIIQ0EgjtUwMr99GB1Ci/PP16J2if79z/f+4mI88TiMeMBTiMdiCSXXVBKJSXEkmpYfoWzZle2sSaq9F2W6YqGRseuk18N8zF7+zq6yVOJrkpvXbvhLg+Dg3H09iGF4KsH6ym0Zk3r3zKF6tpVDFdyfFn0TlrHi95445r1X3pqnxCyEdne9QlmjHcaknE+dJRax0FqUnb7ffdWB9GrJYSIsQNvloZKvbMnmSvoiaG8n88RILCpbqbJf2cpBRiv4EoKubn7C92PqUOqGkHDLZ2evUycnaqtHvSvCOnCc15KTZQWQrjcwpnVQeC7RF9cpI/upjR/H7CMZsbhejbuoissGpyMTj+KIydpVWfPE7GnHU/RqG3nl7eGZGtIe0/Hxmf7Z2GxplwijayAY0JsRXqok6u9b7j45ph5czg6kRz4VfD2B0hx3KOZ0InlZ22zTJQmx5ATDhUAgSsJ62X8kOVvaL5h8YP143XweWCLts/4nDjf2YXm0/wT8D4B7z7BqJHGgAAAALXRFWHRpY2M6Y29weXJpZ2h0AENvcHlyaWdodCBBcnRpZmV4IFNvZnR3YXJlIDIwMTEIusW0AAAAMXRFWHRpY2M6ZGVzY3JpcHRpb24AQXJ0aWZleCBTb2Z0d2FyZSBzUkdCIElDQyBQcm9maWxlEwwBhgAAACJ0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAAxMTJ4MjkrMjQ5KzYyNezaZQ4AAAAedEVYdHBzOkxldmVsAFBTLUFkb2JlLTIuMCBFUFNGLTIuMEH5MxMAAAAASUVORK5CYII=" /></p> <p>My questions:</p> <ol> <li><p>Does this computed strain energy in COMSOL prestress eigenfrequency studies represent the actual mechanical energy stored in the mode shape (up to normalization)?</p></li> <li><p>Is it valid to rescale the eigenmode displacements using:</p></li> </ol> <p><img class="latexImg" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAI4AAAA/CAQAAACcYjhTAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAA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Db3B5cmlnaHQgQXJ0aWZleCBTb2Z0d2FyZSAyMDExCLrFtAAAADF0RVh0aWNjOmRlc2NyaXB0aW9uAEFydGlmZXggU29mdHdhcmUgc1JHQiBJQ0MgUHJvZmlsZRMMAYYAAAAhdEVYdHBzOkhpUmVzQm91bmRpbmdCb3gAODV4MzgrMjYzKzYxNrZW0kMAAAAedEVYdHBzOkxldmVsAFBTLUFkb2JlLTIuMCBFUFNGLTIuMEH5MxMAAAAASUVORK5CYII=" /></p> <ol start="3"> <li><p>If not, what is the rigorous way to obtain mechanical energy or displacement amplitudes from eigenmode simulations?</p></li> <li><p>Are there COMSOL resources, papers, or documentation that clarify the assumptions and limits of using eigenmode strain energy for physical interpretations?</p></li> </ol> <p>I understand that damping, Q-factor, and time-domain dynamics are not included in the eigenfrequency solver, but I’m only interested in using the elastic energy to scale the displacement fields to match thermal energy at 4 K.</p> <p>Thank you for any help or guidance!</p> Tue, 22 Apr 2025 01:40:56 +0000 4.2025-04-22 01:40:56.351002 power extraction from PN junction using Electric Circuit interface https://www.comsol.com/forum/thread/350991/power-extraction-from-pn-junction-using-electric-circuit-interface?last=2025-04-23T12:03:20Z <p>Hello everyone,</p> <p>I’m currently working on a project in COMSOL where I simulate multiple PN junctions connected in a serpentine layout. I apply a thermal gradient (Seebeck effect) and successfully generate a voltage (~70 mV), but I’m struggling to calculate the extracted power.</p> <p>I’ve tried adding the Electrical Circuit interface and connected a resistive load, but COMSOL won’t compile. I suspect that the circuit isn’t properly linked to the 3D physics, or I may be missing a terminal or an external connection setup.</p> <p>Has anyone worked on a similar model or could point me to a tutorial/example showing how to connect a terminal from a thermo-electric model to an external circuit and extract power?</p> <p>Any help or guidance would be greatly appreciated.</p> <p>Thank you!</p> Mon, 21 Apr 2025 11:22:03 +0000 4.2025-04-21 11:22:03.350991 LiveLink for MATLAB: mphplot produces no legend https://www.comsol.com/forum/thread/350983/livelink-for-matlab-mphplot-produces-no-legend?last=2025-04-23T12:03:57Z <p>The following code with mphplot(model,'pg1') plots 2 lines in a figure properly but doesn't show the legend. What's the problem?</p> <p>model.result.create('pg1', 'PlotGroup1D'); model.result('pg1').create('lngr1', 'LineGraph'); model.result('pg1').feature('lngr1').set('xdata', 'expr'); model.result('pg1').feature('lngr1').selection.set([1]);</p> <p>model.result('pg1').set('looplevelinput', {'manual'}); model.result('pg1').set('looplevel', {'1, 101'}); model.result('pg1').set('xlabel', 'x-coordinate (m)'); model.result('pg1').set('ylabel', 'Dependent variable u (1)'); model.result('pg1').set('legendpos', 'lowermiddle'); model.result('pg1').set('xlabelactive', false); model.result('pg1').set('ylabelactive', false); model.result('pg1').feature('lngr1').label('Line Graph'); model.result('pg1').feature('lngr1').set('xdataexpr', 'x'); model.result('pg1').feature('lngr1').set('xdataunit', 'm'); model.result('pg1').feature('lngr1').set('xdatadescr', 'x-coordinate'); model.result('pg1').feature('lngr1').set('linemarker', 'point'); model.result('pg1').feature('lngr1').set('markerpos', 'datapoints'); model.result('pg1').feature('lngr1').set('legend', true); model.result('pg1').feature('lngr1').set('resolution', 'norefine');</p> Mon, 21 Apr 2025 10:46:32 +0000 4.2025-04-21 10:46:32.350983 Non linear solver does not converge, and simulation is very very slow https://www.comsol.com/forum/thread/350981/non-linear-solver-does-not-converge-and-simulation-is-very-very-slow?last=2025-04-18T18:44:06Z <p>Simulation is very very slow also non linear solver convergence error. When i try to increase the time for simulation, then i often encounter "non linear solver does not converge" error. I modified some things in segregated solver but that is making simulation very very slow. How can i solve that problem.</p> Thu, 17 Apr 2025 11:48:26 +0000 4.2025-04-17 11:48:26.350981 Handling Geometry or Meshing Failures in MATLAB-COMSOL Model https://www.comsol.com/forum/thread/350961/handling-geometry-or-meshing-failures-in-matlab-comsol-model?last=2025-04-16T20:42:02Z <p>Hi all,</p> <p>I’m running a MATLAB-COMSOL model where I update my design variables using a command like:</p> <p>% Set the variables nPoints = size(xy, 1); % Number of point pairs for i = 1:nPoints xi = xy(i,1); % x-coordinate yi = xy(i,2); % y-coordinate</p> <pre><code>model.param.set(sprintf('x%d', i), sprintf('%0.4f [mm]', xi)); model.param.set(sprintf('y%d', i), sprintf('%0.4f [mm]', yi)); </code></pre> <p>end</p> <p>However, in some cases, certain combinations of design variables lead to non-viable geometries. As a result, the model fails either during geometry generation or meshing, and I get an error when trying to evaluate:'</p> <p>mphglobal(model, 'solid.LFcrit');</p> <p>To handle this, I would like to check whether the geometry and mesh were successfully generated before calling mphglobal. If they weren’t, I want to skip that part so that MATLAB can continue iterating without crashing the whole optimization loop.</p> <p>Is there a recommended way to check the status of geometry and mesh generation in COMSOL via the MATLAB API?</p> <p>Any suggestions would be much appreciated!</p> <p>Best regards, Mirhan</p> Wed, 16 Apr 2025 20:42:02 +0000 4.2025-04-16 20:42:02.350961 Can Global Equations (ODEs) effect boundary conditions? https://www.comsol.com/forum/thread/350951/can-global-equations-odes-effect-boundary-conditions?last=2025-04-24T11:43:20Z <p>Hello!</p> <p>Can Global Equations (ODEs) effect boundary conditions??</p> <p>In 1D (time-dependent): I have a (pointwise constraint) boundary condition, which sets the dependent variable V to zero. (It's grounding or short-circuiting, because its an electric context.) But this boundary condition doesn't work anymore. V takes values unequal to 0.</p> <p>I have to add a second equation in ODE, where the value is unequal to zero or the change dt or dt² must be zero, to make the boundary condition work again. This second equation is not used somewhere, but helps. Kind of workaround.</p> <p><strong>Is there a more complex relationship between ODEs and boundary conditions (or constraints or constraint forces) in the background, even if the ODE equation and the boundary condition is not direct or not handedly (by hand) coupled??</strong> Has such a background relationship maybe something to do with "Apply reactions terms on: All physics"??</p> <p>For now it seems like a bug.</p> <p>Nice Greetings</p> Wed, 16 Apr 2025 20:36:56 +0000 4.2025-04-16 20:36:56.350951