Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Sat, 18 May 2024 10:20:50 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Issue with Image Resolution When Exporting from COMSOL https://www.comsol.com/forum/thread/339771/Issue-with-Image-Resolution-When-Exporting-from-COMSOL?last=2024-05-18T11:12:54Z <p>Hi everyone,</p> <p>I'm currently working on my thesis and need to export high quality images of my COMSOL model. However, whenever I save the images, the resolution seems too low, and the details are not clear enough for publication. I've tried adjusting the settings and I used some online application such as <a href="http://jpegcompressor.com/">Jpeg compressor</a> and others but haven't had much success.</p> <p>Has anyone encountered this issue before, and can you suggest the best way to export high-resolution images from COMSOL?</p> <p>Thanks in advance</p> Sat, 18 May 2024 10:20:50 +0000 4.2024-05-18 10:20:50.339771 Monitoring intermediate results during running time dependent simulation https://www.comsol.com/forum/thread/339761/Monitoring-intermediate-results-during-running-time-dependent-simulation?last=2024-05-18T09:38:24Z <p>Hi all,</p> <p>I am running time dependent jobs on remote cluster, and need to monitor the results at regular intervals to monitor the progress. Is there a way I can output the solution files at predefined timesteps/intervals, so that I can transfer them to my local and open in GUI. Can the recoveries feature be modified to do this?</p> <p>Best Regards Amit</p> Sat, 18 May 2024 09:38:24 +0000 4.2024-05-18 09:38:24.339761 Oscillatory Flow https://www.comsol.com/forum/thread/339742/Oscillatory-Flow-?last=2024-05-18T08:36:48Z <p>Hello, community. I have a doubt. I would like to realize a purely oscillatory flow. One of the requirements for this simulation is that, somehow, the mass flow has to be zero so that the wave passes through the medium and does not take the mass of liquid along with it (let's assume a cross section of a cylinder, a rectangle). What options would I have? Would there be a way to do this without importing the Acoustics library into Comsol? How to impose (algebraically) a mass flow condition equal to zero in COMSOL and how to place the wave in the simulation? Would it be worth using the Wave form part of COMSOL?Thank you very much.</p> Sat, 18 May 2024 00:15:28 +0000 4.2024-05-18 00:15:28.339742 Circular Polarization with Gaussian Beam https://www.comsol.com/forum/thread/339741/Circular-Polarization-with-Gaussian-Beam?last=2024-05-18T00:41:41Z <p>The below post is related to an <a href="//www.comsol.fr//forum/thread/296571/how-to-generate-linear-polarized-light-and-circular-polarized-light-in-comsol">archived discussion</a></p> <hr /> <p>I have been working to get a circularly polarized Gaussian beam. I found that this solution does indeed work for the user defined waves but using the (built in) function for a Gaussian beam, the result is elliptically polarized light. I have combed through the equations and cannot see anything amiss. I have also tried to counteract the ellipticity using various methods, but to no avail. I believe there must be a way to simulate an circularly polarized beam in COMSOL, but thus far I cannot find it. I have attached a simple model which demonstrates the difference in the two methods despite the same inputs.</p> Fri, 17 May 2024 13:22:48 +0000 4.2024-05-17 13:22:48.339741 Planar spiral inductors https://www.comsol.com/forum/thread/339721/Planar-spiral-inductors?last=2024-05-17T11:56:07Z <p>Hi, Im building a planar coil for simulation of inductance. The model consists of many square coils. When im building it, I am getting an error " Numeric coil Coil 1 (coil1) not solved for. Solve it in a Coil Geometry Analysis step. "</p> <p>Please help me to rectify the error.</p> Fri, 17 May 2024 11:05:30 +0000 4.2024-05-17 11:05:30.339721 Numerical diffusion and unphysical results https://www.comsol.com/forum/thread/339711/Numerical-diffusion-and-unphysical-results?last=2024-05-17T08:48:41Z <p>Hi all,</p> <p>The equations I am solving are simple set of equations just to get a feel for the software as I build more complicated systems. Here, I have a simple diffusion-reaction equation of Zn+2OH->ZnO+2H2O I am solving using equation based modelling since thats what I will be using in the later part of my modelling. Here, in domain 1(centre square) the initial conc of Zn is given and all other species are set to zero. The idea is that OH diffuses from outside (outer annular square) into the inner square, reacts with Zn to give ZnO and H2O. ZnO does not diffues and H2O must diffuse outside. I have formed a union of the system and enforced conituinty at the edges. Now my question is, 1) Although I have given the diffusion coefficient in domain 1 and 2 for Zn and ZnO to be zero, I still see both these species diffusing out of the central square which should not occur? 2) The solution produced negative results for ZnO inside the centre square which can never be the case since ZnO is the species being produced. After being produced the ZnO is not supposed to diffuse since its diffusion coefficient is set to zero. So is it due to numerical diffusion that I see the artifacts here? And how can I avoid them or am I making a mistake in the model? I appreciate any help I can get. I am new to COMSOL and the learning curve is quite high.</p> Fri, 17 May 2024 08:48:41 +0000 4.2024-05-17 08:48:41.339711 Sensitivity Analysis https://www.comsol.com/forum/thread/339691/Sensitivity-Analysis?last=2024-05-17T12:46:29Z <p>Hello,</p> <p>I am simulating a capacitive pressure sensor and am stuck with Sensitivity Analysis. I have used Sensitivity analysis under Study 1 and have added Maxwell Capacitance expression comp1.es.C11 as the Objective Function and selected Pressure as my Control Variable. I am unable to understand the process involved in Sensitivity analysis as to whether Change in Capacitance divided by Change in Pressure is being computed or not which is the formula to calculate the Sensitivity. When I check for the sensitivity vs. pressure graph in Results section, I am getting a wrong curve.</p> <p>Kindly clear my doubt over what is happening behind the COMSOL Sensitivity Analysis process.</p> <p>Regards, Sourabh</p> Fri, 17 May 2024 07:55:43 +0000 4.2024-05-17 07:55:43.339691 Question in electro-thermal coupled simulation based on electric-field-dependent conductivity https://www.comsol.com/forum/thread/339681/Question-in-electro-thermal-coupled-simulation-based-on-electric-field-dependent-conductivity?last=2024-05-17T07:02:13Z <p>The conductivity of the insulation materials in my simulation is a function of temperature and the electric field strength. But how I express the electric field strength in the function in COMSOL 6.0? Maybe ec.normE? But it didn't work for me.</p> Fri, 17 May 2024 07:02:13 +0000 4.2024-05-17 07:02:13.339681 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-17T19:22:50Z <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-17T11:24:00Z <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-17T14:55:54Z <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