Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Fri, 17 May 2024 01:19:36 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Coupling Matrix of Piezoelectric materials https://www.comsol.com/forum/thread/339671/Coupling-Matrix-of-Piezoelectric-materials?last=2024-05-17T05:56:16Z <p>How to find Coupling matrix of a Piezoelectric materials? I am working with MoS2, and I can't find its properties like coupling marix,elasticity matrix, compliance matrix.</p> Fri, 17 May 2024 01:19:36 +0000 4.2024-05-17 01:19:36.339671 Dispersed phase https://www.comsol.com/forum/thread/339662/Dispersed-phase?last=2024-05-16T19:46:27Z <p>I am trying to couple heat transfer with Euler-Euler flow physics. I have defined solid particles and air in a Euler-Euler physics with respective volume fraction. I have a constant heat source heating a particle so I need heat transfer physics. I am bit confused and trying to figure out how to define dispersed phase in heat transfer physics. Please let me know if there is a way to do so.</p> <p>Thank You</p> Thu, 16 May 2024 19:44:40 +0000 4.2024-05-16 19:44:40.339662 Divergence on piezoelectric domain https://www.comsol.com/forum/thread/339652/Divergence-on-piezoelectric-domain?last=2024-05-16T18:16:11Z <p>Hello to all,</p> <p>I'm trying to create a 2D model of an ultrasonic NDT using Elastic Waves, Time Explicit with Electrostatics. I used the tutorial "Angle Beam Nondestructive Test" (https://www.comsol.com/model/angle-beam-nondestructive-testing-78811) as starting point for my own model, but I'm having some trouble with the Piezoelectric domain.</p> <p>I assigned an edge as Electric Potential boundary condition and to create a pulse I inserted an Analytic function as voltage input, just like the tutorial. The simulation starts fine, but after a while, the electric potential in the piezoelectric domain grows and I can't figure it out why. I attached a plot of the average electric potential on the edge, in this image is visible the input pulse and how exponentially the voltage grows after some point.</p> <p>I thought that it could be a mesh problem, so I tried to refine it, but that didn't work. Anyone faced a similar problem?</p> <p>Thank you in advance,</p> <p>Rodrigo Pires</p> Thu, 16 May 2024 18:15:33 +0000 4.2024-05-16 18:15:33.339652 How to define an initial current for a coil in magnetic fields physics https://www.comsol.com/forum/thread/339651/How-to-define-an-initial-current-for-a-coil-in-magnetic-fields-physics-?last=2024-05-16T17:59:14Z <p>I'm simulating a coil with voltage source. How to define the coil initial current so that I don't need to wait for the transient period to finish? Or how to initiate the time stepping solution with the static (time harmoinc) solution?</p> Thu, 16 May 2024 14:19:56 +0000 4.2024-05-16 14:19:56.339651 Parametric sweep not being made/showing any plots https://www.comsol.com/forum/thread/339641/Parametric-sweep-not-being-madeshowing-any-plots?last=2024-05-16T19:48:06Z <p>Hello,</p> <p>I encounter an issue when I try to perform a parametric sweep for my meshsize. I am trying to get a plot showing how it changes based on what meshsize one gets for each frequency in my plot (mainly the eigenfrequencies). How come my parametric sweep is not being performed or it is being performed but only showing one constant value? I will attach a picture of my sweep as well as my model file.</p> <p>Thank you in advance!</p> Thu, 16 May 2024 14:10:25 +0000 4.2024-05-16 14:10:25.339641 Magnetic Force-Based Simulation and Experiment Differ by scaling of (length)^2 for geometries with changing (length) https://www.comsol.com/forum/thread/339632/Magnetic-Force-Based-Simulation-and-Experiment-Differ-by-scaling-of-length2-for-geometries-with-changing-length-?last=2024-05-16T19:31:01Z <p>My team is trying to 2D model a short (~50um) post (10 x 10 um) with a single cube (sizes from 10-40um) at the top that bends at its fixed base in the presence of slowly rotating (1Hz) magnetic field. The system is also in a fluid medium, so there is fluid structure interaction. The model is compared to experiment and we find that</p> <p>(exp value) = (Constant) * (sim value) * (L^2)</p> <p>where "exp value" and "sim value" are the deflection of the cube's leading corner from experiments and simulations, respectively, over a range cube sizes defined by L. "Constant" is a fixed value of 2.5 that was chosen beause it makes the magnitudes of the results agree with minimized R^2 error ~=0.85; the Constant used has the same value no matter what cube size we model.</p> <p>Even more interesting, the exp results are parabolic (the deflection peaks at an intermediate value of L and drops by ~30 and 70 % at the low and high cube sizes) which this particular scaling matches suprisingly very well. It would seem very odd that this particular scaling matches the data so closely over the wide range of L without some underlying reason <em>since the parabolic nature is tied to simulation geometry</em>. The required Constant could come form material property measurements, or experimetnal field values being off due to fixed machine calibrations and is not seen as a major issue (although 2.5 is an oddly round number).</p> <p>We've sat with this for months doing hand calculations and simpler models to tease out whether this is an issue with the 2D sim, our application of the Force calculation, Comsols force calculation itself, experimental data collection, some thickness effect that is/not acounted for, and the list goes on.</p> <p>Anyone have any ideas or threads to pull to help us figure this out? All thoughts are appreiated.</p> Thu, 16 May 2024 13:50:10 +0000 4.2024-05-16 13:50:10.339632 Electric field due to dipole in Comsol RF. Difference between closed form solution and comsol results https://www.comsol.com/forum/thread/339621/Electric-field-due-to-dipole-in-Comsol-RF-Difference-between-closed-form-solution-and-comsol-results-?last=2024-05-16T12:57:46Z <p>The field produced by the electric point dipole in COMSOL RF differs from that of the closed-form solution.</p> <p><strong>Simulation details:</strong></p> <ul> <li>Simulation domain is a square region of side length 2.2m with 0.1m allocated for PML along all six sides</li> <li>Electric Dipole is located at the origin</li> <li>Dipole moment is 0.001Am along the Z direction.</li> <li>Frequency is 433 MHz</li> </ul> <p>The closed-form expression is evaluated using the attached Matlab code, which implements the equations in the attached image in spherical coordinates and transforms the fields to cartesian coordinates. The absolute value of the field along the Z direction is plotted for the 2D slice at z=0.</p> <p><strong>Problem:</strong> The absolute values of electric fields are drastically different.</p> <p><strong>Question:</strong> Why is there a considerable deviation in the amplitude of electric fields? Is there anything wrong with the Comsol settings or the code implemented?</p> <p>Can any one of you point out the issue?</p> Thu, 16 May 2024 11:38:56 +0000 4.2024-05-16 11:38:56.339621 Obtain the coordinates of faces https://www.comsol.com/forum/thread/339611/Obtain-the-coordinates-of-faces?last=2024-05-16T11:19:28Z <p>Hello!</p> <p>I'm using COMSOL with MATLAB, and I need to get the coordinates of the faces of my model. I'm using the following code: [info1, data1] = mphgeominfo(model, 'geom1', 'entity', 'face');</p> <p>However, I'm encountering a problem because the geometry comes from an imported mesh, which results in the following error:</p> <p>Error using mphgeominfo DATA output is not supported when the geometric model is defined by a mesh and entity is a face</p> <p>Error in TestSelecAuto (line 72) [info1, data1] = mphgeominfo(model, 'geom1', 'entity', 'face');</p> <p>How can I obtain the face data in this situation?</p> <p>Thank you, Vassili</p> Thu, 16 May 2024 11:18:14 +0000 4.2024-05-16 11:18:14.339611 1D transient conduction problem https://www.comsol.com/forum/thread/339601/1D-transient-conduction-problem?last=2024-05-16T12:42:01Z <p>Hi there</p> <p>In a 1D transient conduction problem we are trying to validation the fig 11 in <a href="https://www.researchgate.net/publication/235328176_Thermal_Performance_of_the_Building_Walls">this paper</a> and I set all BCs and equations but I cant get the results, can someone have a look and help me ? Im using Comsol V6</p> <p>Thanks alot Abraham</p> Thu, 16 May 2024 09:39:59 +0000 4.2024-05-16 09:39:59.339601 Crossover from capacitive to inductive electromagnetic responses in near selfcomplementary metallic checkerboard patterns https://www.comsol.com/forum/thread/339582/Crossover-from-capacitive-to-inductive-electromagnetic-responses-in-near-selfcomplementary-metallic-checkerboard-patterns?last=2024-05-16T12:38:44Z <p>Hi,</p> <p>I am new to comsol and trying to simulate <a href="https://opg.optica.org/oe/fulltext.cfm?uri=oe-22-20-24787&amp;id=301903//">this article</a> using the COMSOL software. It's about metallic checkboard pattern response to THz. I am not getting results as the paper suggests. In the paper, simulation, were done on <a href="http://jp.fujitsu.com/solutions/hpc/app/poynting/">Poynting for Optics, Fujitsu</a>. I have used periodic boundary condition (Floquet) and PEC for checkboard pattern. I have also tried using material specified in the paper by using refractive index and transition boundary condition. I am still not getting any reliable data.</p> <p>Kindly let me know what mistake I am doing.</p> Wed, 15 May 2024 23:47:30 +0000 4.2024-05-15 23:47:30.339582 Variable definition https://www.comsol.com/forum/thread/339572/Variable-definition?last=2024-05-15T16:36:38Z <p>I'm having a problem and I don't know how to go around it. I'm trying to solve the equation (du/dt)+(du/dx)+(dP/dx)=(d2u/dx^2) using the coefficient form PDE maths physics.I used u as my dependent variable. but P is also another dependent variable here and I'm not able to define it in the physics setting because its unit is different from u. How do I define P as a variable? I tried to define it as a global variable but I don't have data on how P changes with x and don't know how P depends on x. Any help? Thank you.</p> Wed, 15 May 2024 16:35:22 +0000 4.2024-05-15 16:35:22.339572 MR fluid simulation https://www.comsol.com/forum/thread/339571/MR-fluid-simulation?last=2024-05-15T15:00:12Z <p>What are the necessary modules and BCs needed for MR fluids simulation?</p> Wed, 15 May 2024 14:24:31 +0000 4.2024-05-15 14:24:31.339571 error message of Singular matrix in nitsche contact https://www.comsol.com/forum/thread/339563/error-message-of-Singular-matrix-in-nitsche-contact?last=2024-05-15T13:55:24Z <p>When the same problem is solved by penalty and augmented Lagrangian there is no error. But with nitsche, there's the following error:</p> <ul> <li>Feature: Stationary Solver 1 (sol17/s1) Failed to find a solution for the initial parameter. Singular matrix.</li> </ul> <p>There are 264 void equations (empty rows in matrix) for the variable comp1.solid.Wfric_p1. at coordinates: (2.65789e-18,0.0248165,-0.0434066), (2.16489e-18,0.0353553,-0.0353553), (1.51957e-18,0.0434066,-0.0248165), (7.86146e-19,0.0483235,-0.0128387), (1.8747e-34,0.05,-3.06162e-18), ...</p> <p>and similarly for the degrees of freedom (empty columns in matrix). Returned solution is not converged. Not all parameter steps returned.</p> Wed, 15 May 2024 13:55:24 +0000 4.2024-05-15 13:55:24.339563 Magnetic Force Calculation https://www.comsol.com/forum/thread/339561/Magnetic-Force-Calculation?last=2024-05-15T13:39:00Z <p>Hello everyone.</p> <p>I am a new user of COMSOL. I have a project for my school. I need to calculate magnetic force. I have a cylindical magnet with a hole. Also cylindrical carbon steel top and the bottom of the magnet. Magnet radius is 80 and carbon steels are 90mm. It is a magnetic wheel in total. I have flat plate which is also carbon steel. I just wanna calculate the magnetic force between magnet and the flat plate. Carbon steel is also magnetized so i want to include all the factor for magnetic force.</p> <p>Can you please tell me step by step about that calculations?</p> <p>Thank you for all</p> Wed, 15 May 2024 13:08:44 +0000 4.2024-05-15 13:08:44.339561 Premixed Combustion https://www.comsol.com/forum/thread/339521/Premixed-Combustion?last=2024-05-15T03:42:49Z <p>Hi,</p> <p>So Im trying to build the methanol laminar premixed combustion in COMSOL. I used several physics interface like heat transfer in fluids, chemistry, transport concentrated species, and laminar flow. I used a single formula reaction rate (Arhenius reaction)</p> <p>r = k<em>exp(-E/RT)</em>C_CH3OH^1.4</p> <p>Eventhough, the temperature increase a lot, however the flame does not appear. Is anyone here can solve my prblem? or anyone knows about the setting in laminar premixed combustion in COMSOL?</p> <p>I would really need help on this problem. I attached my file here</p> <p>Rizky Kusumastuti</p> Wed, 15 May 2024 03:42:48 +0000 4.2024-05-15 03:42:48.339521 Scaling down issue in COMSOL Multiphysics from millimeter to micro meter https://www.comsol.com/forum/thread/339501/Scaling-down-issue-in-COMSOL-Multiphysics-from-millimeter-to-micro-meter?last=2024-05-15T18:37:09Z <p>Hi Experts,</p> <p>I have a model created and defined dimensions as parameters in millimeter range and I want to scale it down to micrometer dimension. I used the scaling option under geometry and <strong>add 1000 as</strong> scaling factor with <strong>isotropic option selected</strong> but after I clicked the build option, it processed the image and didnt show anything in the right hand side and sometimes it throws error saying "the object to be scaled must be selected".</p> <p>I did select the CAD image as can be seen in the below screenshots image 2,image 3.</p> <p>Am i doing some mistake in the whole scaling down process? could you please advise .I use COMSOL 2024 version. Is there any other way to scale down the parameters in comsol from millimeter to micrometer?</p> <p>Image 2.png below is the inital image to be scaled but Image 3.png is the scaled image that vanishes when i click build all.</p> <p>Kind reg Amit</p> Tue, 14 May 2024 16:00:38 +0000 4.2024-05-14 16:00:38.339501 A question about fluid-structure interaction https://www.comsol.com/forum/thread/339483/A-question-about-fluid-structure-interaction?last=2024-05-14T12:55:09Z <p>Why is the minimum temperature change in my FMI heat transfer simulation 5K, I want a more accurate temperature change, how should I do this, how should I implement the effect of microfluidic velocity on the FSI module</p> Tue, 14 May 2024 12:55:09 +0000 4.2024-05-14 12:55:09.339483 How to utilize Temperature Data for Complex Rolled Foil Geometry https://www.comsol.com/forum/thread/339481/How-to-utilize-Temperature-Data-for-Complex-Rolled-Foil-Geometry?last=2024-05-14T13:38:37Z <p>Hello everyone,</p> <p>I conducted a flow simulation (2D-axisymmetric) to obtain temperature data within a specific system. Now, I would like to utilize this temperature data for a separate study where the geometry is significantly more complex (a coated, rolled-up foil with over 3000 layers and layer thicknesses ranging from 5-60 µm).</p> <p>Is there a way to directly transfer the temperature data from my flow simulation into a new study with the modified geometry? I am not particularly experienced with COMSOL. How would you suggest proceeding? Especially the thin and numerous layers are posing challenges for me.</p> <p>Thank you!</p> <p>Luis</p> Tue, 14 May 2024 12:53:24 +0000 4.2024-05-14 12:53:24.339481 Temperature difference boundary condition https://www.comsol.com/forum/thread/339471/Temperature-difference-boundary-condition?last=2024-05-13T13:55:35Z <p>Hello everyone,</p> <p>I want to define a boundary condition in which there is a constant value for the temperature difference of two surfaces. How can I define such boundary condition?</p> Mon, 13 May 2024 12:47:26 +0000 4.2024-05-13 12:47:26.339471 Livelink for MATLAB taking too much time to simulate https://www.comsol.com/forum/thread/339461/Livelink-for-MATLAB-taking-too-much-time-to-simulate?last=2024-05-14T12:18:32Z <p>Dear all,</p> <pre><code> I am simulating coil strands to know its AC resistance. i am using LiveLink for MATLAB to automate this task. however, for 10 turns coil with 100 strands, the total simulation time goes to 5 hours while for 10 turns with 300 strands, the total simulation time goes 50+ hours. by profiler code checking, i found that *** model.sol('sol').runAll;*** is taking 95% of overall simulation time. can you please suggests me to reduce the time duration of simulations. I am using regular mesh with minimal complexity. best regards thanks </code></pre> Mon, 13 May 2024 11:46:57 +0000 4.2024-05-13 11:46:57.339461