Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Tue, 22 Apr 2025 13:07:01 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Antenna calculation Frequency combination https://www.comsol.com/forum/thread/351023/antenna-calculation-frequency-combination?last=2025-04-22T13:07:01Z <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/4ePzL8AAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAAHdElNRQfpBBYCAzaaflxdAAAC+klEQVRo3u2Z4Zm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DIwMTEIusW0AAAAMXRFWHRpY2M6ZGVzY3JpcHRpb24AQXJ0aWZleCBTb2Z0d2FyZSBzUkdCIElDQyBQcm9maWxlEwwBhgAAACF0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAA2NngyNisyNzIrNjI4Joc4fgAAAB50RVh0cHM6TGV2ZWwAUFMtQWRvYmUtMi4wIEVQU0YtMi4wQfkzEwAAAABJRU5ErkJggg==" /></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/4ePzL8AAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAAHdElNRQfpBBYBHR55zHUhAAAFaklEQVR42u2c63mjPBCF3/mebUBbgrYEbQlKCaQEXAIuAZdgSohLMCWYEkwJoYT5fnDH+O4EyLOHPwZxGR2Go5mRElH+4fvxa2oDHoHEQEGq2YVzrOZT23keC6RdQhwrDjjez5xhCXG8TW3peSyQdiLWFKSM+ro4Ago8xdRmXoIsTdsl4IPfeoVU2YPO2Nv/m9qAu+HJrpE+fyyP9oB0ahOex8JoF48he/4+U2NhtOPhH+3fD0cx53j8ViyNdv8TfH1htMsPkZiF0f5TlH1ptFvgByh7laWKJWyObLQACbEAZLqb2sSOsZ8YlatnxRgCYEdB8r0DsMQ40DeJ6yO67rS1R7TaiFGctvsBB2y7P/2GQ9lPbcVVK2MOikKIEvZaDMf6SCsyjqxXSM2/21OuwrEEiXFVFp3DoBxnSTQpf7a0+0HS7WeXhLuTjswRdYibVRa3CHRT/6xoHwnNzMx8vezE5K4gXsyl1trGYblOIpJ2r663N6fPGC8QGQnx9GlbDd1LYnZj81YSE5SBhqSs+2dUQUmG69RHs9bbxUL3OTXtrl9OlS/KBsUx7iuFXnmeeHiuMCCG/eCzHxEt8UQYVifHt3h2FOQ4wn62LI6Ydy3EE3Z8uqiiQYCwjWig6+2b3lOG+7d2zVJcrIYHZ1uuvWZ3wzmXLCtJT0g0k4AP4O/Yq9ZU3k6fIwFW/1Q7O9Ynd37XAjQV09GMDN9cPVQSRcGjBP0w6KHgKeSI/6LAbIs+ZlUT2HXCTw7oPZYSsiUi5oNoxLKDNjwOnmgVzKnd5ZD6ImXX5AsDvJu8XfR0q5oC6Ai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lyaWdodCBBcnRpZmV4IFNvZnR3YXJlIDIwMTEIusW0AAAAMXRFWHRpY2M6ZGVzY3JpcHRpb24AQXJ0aWZleCBTb2Z0d2FyZSBzUkdCIElDQyBQcm9maWxlEwwBhgAAACJ0RVh0cHM6SGlSZXNCb3VuZGluZ0JveAAxMTJ4MjkrMjQ5KzYyNezaZQ4AAAAedEVYdHBzOkxldmVsAFBTLUFkb2JlLTIuMCBFUFNGLTIuMEH5MxMAAAAASUVORK5CYII=" /></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/4ePzL8AAAAJcEhZcwAAAHgAAAB4AJ31WmAAAAAHdElNRQfpBBYCAQaOkQ5zAAAGGUlEQVR42u2b25WjOhBFd901CWhC0ISgFDQhuEOgQ8Ah4BDsEEwITQhNCCaEJoS6H7wxuMFuwF5ryj9YICEdS/U4VRbln4zJf1tP4Jnl1zavlYDj1ku/LSqbgcOO35pvDcB3stWxMs8PzUbgiOEFoNlq5zjSrRc+RbYBx/8DZ1ws2dYLnyIbgaP/ds6ozFDHYiUSt8kstwBHZmgcCXCEmPVnCds4gW76ztETSK9NLCGWRA/f9RZDOHgj09OzgmNIHumuGe+ixBMeDbCcSDWXHWcOugfx7Jh6THX1Dx8zn1d8r8Wi2Ak9z/VV2PTAEk178xYK+XEN4sn0W2dAbGuHulYPO3Xnrg6OuB/wcdyk5fnW0fOdHhNnsL7O+QkH0HMAkBAzrlybdnGYxkLqZI23/rGa9qtXywokAnYStdoslkSMRJyAaMIwHu4yAuurY8yDIwRcFEKMwo7dFMXM5Z43ydocslz0z4MjHLEknNqMkBhCQirPx7Dv3P0i1ven3zmYOYa897U06Fw4EnHs7kAsX63dGbbuOJT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JRcY1x9JWtlKz8v1j/Udk6WNVWKPxf1dl7QMnprJqYru6R2Mysb3gNWmxk3F9XXOYmoB8SCiuoFVu9l8fHE0BK/aGA5jgpc0IVCm/K5pWMwaSM5Vi1RNeLEiXnP1LSsCnXMQNjdn03wAcIMWOO4CgCe98iBcvIWERegID9Z4DZJnpECknAnoOpOa61z/8JiYaGNNcEzFi2+z50uBkuNtMjp54w+KItVWqphlJ7UACYnH9th6FfyKQjjclXnwFEfZ6zMHSFN/Z5cvGtUQol3tibFxjTSobhmvGat8v756LSouqNgPfUPwtazXUv6nh6HAHSxcvpYC9J1bSVN4IJSmVely3RZKQYfFFMkksEVYCPXHCl/9toCzDtRKSAp79aH+PB3biAdfVSwtXWYjlQqJ/H+hv+2lDcZhJ5f0GNC/czI67MLH/CiUoom0+8LVk+UKC5PVSMpUsD076PFH2XFm9gv2V5H/tfwygwu2DKgAAAC10RVh0aWNjOmNvcHlyaWdodABDb3B5cmlnaHQgQXJ0aWZleCBTb2Z0d2FyZSAyMDExCLrFtAAAADF0RVh0aWNjOmRlc2NyaXB0aW9uAEFydGlmZXggU29mdHdhcmUgc1JHQiBJQ0MgUHJvZmlsZRMMAYYAAAAhdEVYdHBzOkhpUmVzQm91bmRpbmdCb3gAODV4MzgrMjYzKzYxNrZW0kMAAAAedEVYdHBzOkxldmVsAFBTLUFkb2JlLTIuMCBFUFNGLTIuMEH5MxMAAAAASUVORK5CYII=" /></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 COMSOL simulation issue — power extraction from PN junction using Electric Circuit interface https://www.comsol.com/forum/thread/350991/comsol-simulation-issue-power-extraction-from-pn-junction-using-electric-circuit-interface?last=2025-04-21T11:22:03Z <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 matlab live link: mphplot produces no legend https://www.comsol.com/forum/thread/350983/matlab-live-link-mphplot-produces-no-legend?last=2025-04-21T10:46:32Z <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-17T13:23:44Z <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 Update parameters from a file or a database in JAVA code, through COMSOL java API https://www.comsol.com/forum/thread/350942/update-parameters-from-a-file-or-a-database-in-java-code-through-comsol-java-api?last=2025-04-16T16:18:48Z <p>I have a Java file for a sample model and would like to develop a process that allows me to update the model parameters directly in the Java code. I want to load the input model parameters either from a file or by connecting to a database. While I see this functionality is available in the UI, I’m interested in achieving this through the Java API.</p> <p>commands similar to the following be appropriate?</p> <p>comsolcompile sample_test.java comsolbatch -inputfile sample_test.java -paramfile sample_file.txt | (db_string)</p> <p>import com.comsol.model.*; import com.comsol.model.util.*;</p> <p>/** Model exported on Apr 15 2025, 11:34 by COMSOL 6.3.0.335. */ public class runSeriesOfModels {</p> <p>public static Model run() { Model model = ModelUtil.create("Model");</p> <p>model.modelPath("C:&#92;Users&#92;fs9357&#92;comsol&#92;temp_files");</p> <p>//model.label("runSeriesOfModels.mph");</p> <p>model.param().set("L", "21", "Length"); model.param().set("W", "7", "Width"); model.param().set("rho0", "1140[kg/m^3]", "Density"); model.param().set("E0", "2.13[GPa]", "Young's modulus"); } }</p> Wed, 16 Apr 2025 16:18:48 +0000 4.2025-04-16 16:18:48.350942 Infinite Element Domain is not Working in 2D domain https://www.comsol.com/forum/thread/350941/infinite-element-domain-is-not-working-in-2d-domain?last=2025-04-21T15:27:16Z <p>Hello everyone,</p> <p>I am simulating a simple long conductor in COMSOL 2D in a magnetic field (mf) to observe its inductance value. However, its inductance values do not converge as I increase the domain size. I used the parametric sweep option. (Please see attached File_1)</p> <p>Then, I tried to add the infinite element domain to find the inductance value, but it is still not working (File_2)</p> <p>Finally, inductance value convergences when I perform the exact simulation in the 2D-axisymmetric domain (File_3). Most of the avaialble tutorial on COMSOL focuses on 2D axi-symmetric simulation.</p> <p><strong>In summary, 2D = not convergence, 2D axisymmetric = converges.</strong></p> <p>Please help me solve this issue for the 2D domain. Note that I am not asking about the values but about the convergence of inductance values.</p> Wed, 16 Apr 2025 08:10:34 +0000 4.2025-04-16 08:10:34.350941 Convergence problem https://www.comsol.com/forum/thread/350921/convergence-problem?last=2025-04-19T00:05:13Z <p>Hello,</p> <p>I have a Comsol license within the company Framatome. I am currently working on a topic related to the simulation of fluid flow within a test loop section (inlet d = 3mm + rack + 4 titanium steam generator tubes with a diameter of 17mm) and I am encountering a problem with the simulation.</p> <p>The chosen physics:</p> <p>Laminar flow (Re = 9 / Velocity = 2.36 * 1E-03)</p> <p>Steady-state study (solver, tolerance, error; all left as default)</p> <p>Mesh: Normal (Defined by the physics)</p> <p>Temperature: 25°C</p> <p>However, in the end, the solution does not converge, displaying the following message: "Failed to find a solution. Divergence in the iterations of the linear solver. The linear solver/preconditioner is ill-conditioned. The relative residual is more than 1000 times larger than the tolerance. The returned solution did not converge properly."</p> <p>I would greatly appreciate any clarification regarding this type of error and a possible solution.</p> <p>Best regards,</p> Tue, 15 Apr 2025 12:45:40 +0000 4.2025-04-15 12:45:40.350921 homogenization in COMSOL simulation https://www.comsol.com/forum/thread/350901/homogenization-in-comsol-simulation?last=2025-04-15T12:28:35Z <p>Dear community members,</p> <p>My question is about homogenization consideration of COMSOL. Does COMSOL follow some built in homogenization rules as it uses finite element method for simulation? In case of simulation for reflectance in far infrared scale from metasurfaces consisting of metastructures in micron sizes, do one need to care about the homogenization or COMSOL does it by itself as one defines the mesh during modeling COMSOL modeling?</p> <p>I hope you got my question.</p> <p>regards,</p> <p>Shahban</p> Tue, 15 Apr 2025 11:26:21 +0000 4.2025-04-15 11:26:21.350901 Getting errors while importing Solidworks geometry (step file) into COMSOL Multiphysics https://www.comsol.com/forum/thread/350891/getting-errors-while-importing-solidworks-geometry-step-file-into-comsol-multiphysics?last=2025-04-15T12:25:17Z <p>Error Could not obtain license for CAD Import Module.</p> <p>License error: -5. No such product exists. Note: CAD Import Module functionality is included in the Design Module and the LiveLink products for CAD. No such feature exists. Feature: CADIMPORTCKL License path: C:\Program Files\COMSOL\COMSOL60\Multiphysics\license\license.dat; FlexNet Licensing error: -5,414</p> <p>Error This feature requires the CAD kernel.</p> <p>Feature: Import 1 Change 'Geometry representation' to 'CAD kernel' in the Settings window of the Geometry 1 node. Change permanently in the Preferences dialog box</p> Tue, 15 Apr 2025 11:13:49 +0000 4.2025-04-15 11:13:49.350891 PWM https://www.comsol.com/forum/thread/350883/pwm?last=2025-04-15T10:48:40Z <p>The temperature regulation module employs high-frequency pulse-width modulation (PWM) combined with soft-switching IGBT inverter control technology. This system dynamically adjusts the DC voltage and current output of the power module to precisely control the thermal ramp rate of the bed layer during heating processes. How to perform numerical simulations using COMSOL Multiphysics®</p> Tue, 15 Apr 2025 10:48:40 +0000 4.2025-04-15 10:48:40.350883 Epoxy Modelling https://www.comsol.com/forum/thread/350881/epoxy-modelling?last=2025-04-14T17:43:55Z <p>Correct approach to model epoxy bonding using thin elastic layer? Do we need to model epoxy or not and define TEL between substrate and epoxy &amp; PZT and epoxy? How to determine value of Ka?</p> Mon, 14 Apr 2025 17:43:55 +0000 4.2025-04-14 17:43:55.350881 Iron losses over simulation time https://www.comsol.com/forum/thread/350871/iron-losses-over-simulation-time?last=2025-04-16T09:58:35Z <p>Hello everyone, I'd like to analyze the transient behavior of iron losses in order to determine the duration of the settling process. Coming from an ANSYS Maxwell background, I'm still getting used to COMSOL. I'm currently modeling a motor similar to the one shown in the following example: https://www.comsol.com/model/analyzing-electric-motor-and-generator-designs-97091</p> <p>My first study is a stationary analysis that provides me with the magnetic flux density and torque values. This is followed by a "Time to Frequency Losses" study using the "Rotating Machinery, Magnetic" physics interface. From this, I obtain the parameter rmm.Qh, which represents the volumetric loss density in W/m³. By integrating this quantity and multiplying by the length, I calculate the total iron losses in watts. The file is in the attachment.</p> <p>Am I correct in assuming that this value represents an average over all computed time steps? When I look at the dataset from the "Time to Frequency Losses" study and export the rmm.Qh value, I only see X, Y, rmm.Qh (see attachment). Which leads me to conclude that rmm.Qh is only a one-dimensional vector. This leads me to believe that the iron losses calculated in this study are not time-dependent—is that correct?</p> <p>That brings me to my question, how do I plot the iron losses over the simulation time?</p> <p>Another question that comes to mind: when calculating losses using the Steinmetz equation, are the results already based on a steady-state condition? In other words, do I even need to consider the transient behavior or settling time in that case?</p> <p>Best regards</p> Mon, 14 Apr 2025 06:46:46 +0000 4.2025-04-14 06:46:46.350871 Heat Exchanger streamline velocity plot https://www.comsol.com/forum/thread/350862/heat-exchanger-streamline-velocity-plot?last=2025-04-13T17:26:40Z <p>Hello,</p> <p>For my transport II class we had to create the boundary conditions (hydrodynamic and thermal) for a 1,4 heat exchanger. I completed and rendered the model with no issues, and for this project in particular we have to show 3 plots, 1 for the temperature, and the other two for the hydrodynamics.</p> <p>To save time for rendering, we were only making half a heat exchanger and then using the mirror 3D model section of the model builder to create the other half for the hydrodynamic plots.</p> <p>For whatever reason, under the model builder section, the subsections for <strong>More Datasets</strong> and <strong>3D Plot Group</strong> are not here. To plot the last two graphs, I will need this function.</p> <p>Can anyone help me with this?</p> Sun, 13 Apr 2025 17:26:40 +0000 4.2025-04-13 17:26:40.350862 Surface area https://www.comsol.com/forum/thread/350861/surface-area?last=2025-04-14T06:01:39Z <p>Dear Researchers/Faculty</p> <p>After topology optimization why it showing less surface area for heat transfer optimization problem ? It supposed to be maximum surface area to increase heat rate after topology optimization. How can resolve it ?</p> <p>Thank you</p> Sun, 13 Apr 2025 05:05:16 +0000 4.2025-04-13 05:05:16.350861 mesh generation https://www.comsol.com/forum/thread/350853/mesh-generation?last=2025-04-13T22:48:48Z <p>Hello, I encountered some technical issues while conducting simulation calculations using the electromagnetic module and would like to consult you. Currently, I am using the user-controlled mesh generation method. However, when the calculation reaches approximately 70%, the calculation speed significantly slows down, and the convergence curve becomes a horizontal straight line, failing to meet the convergence criteria. Due to the large scale of the model, if I were to switch to the physics-controlled mesh, it would result in an excessively high memory requirement, exceeding the capacity of the current computer configuration. I would like to ask if you have any suggestions for optimizing the mesh generation settings in this situation. Thank you very much for your guidance!</p> Sun, 13 Apr 2025 03:20:23 +0000 4.2025-04-13 03:20:23.350853