Latest Discussions - COMSOL Forums https://www.comsol.com/forum/ Most recent forum discussions Wed, 21 Aug 2024 18:29:29 +0000 COMSOL Forum: Latest Discussions https://www.comsol.com/shared/images/logos/comsol_logo.gif https://www.comsol.com/forum/ Phase unwrapping within COMSOL https://www.comsol.com/forum/thread/343372/phase-unwrapping-within-comsol?last=2024-08-21T19:03:27Z

Hello,

Has anyone had success phase unwrapping within COMSOL? We can do so through livelink, but we would like to extract the adjoint sensitivities using a phase front profile as the goal, so unwrapping within COMSOL would be best. With it wrapped, this can play havoc with sensitivities near the phase jump.

Wed, 21 Aug 2024 18:29:29 +0000 4.2024-08-21 18:29:29.343372
Relativistic correction causes the electron to stop https://www.comsol.com/forum/thread/343363/relativistic-correction-causes-the-electron-to-stop?last=2024-08-21T16:25:49Z

In the process of using COMSOL to simulate electron acceleration, after I imported the electric field defined by myself, checking the relativistic correction will cause some electrons to stop after a certain distance. If I do not check the relativistic correction, everything will be normal. What is the reason for this problem?

Wed, 21 Aug 2024 16:25:49 +0000 4.2024-08-21 16:25:49.343363
Eigenfrequency Prestressed not working https://www.comsol.com/forum/thread/343362/eigenfrequency-prestressed-not-working?last=2024-08-21T17:19:37Z

Hello I'm doing an Eigenfrequency Prestressed study of a rod and it is giving me this error

**Failed to find a solution. The relative residual (1.9) is greater than the relative tolerance. There was a warning message from the linear solver. Iterative refinement triggered. Returned solution is not converged. Not all parameter steps returned. **

here are the boundary condition that is given 1. The rod has a rigid connector boundary that constrained rotation in x y and z direction place at the bottom of the rod 2. the rod has an added mass boundary of 50 kg at the bottom of the rod 3. gravity is used, set at -9.82 m/s^2 in y direction 4. the material used is anisotropic silicon

The mesh is set at extra fine

attached is the rod mph.file that is used.

Wed, 21 Aug 2024 16:22:34 +0000 4.2024-08-21 16:22:34.343362
Error https://www.comsol.com/forum/thread/343351/error?last=2024-08-20T11:26:47Z

The below post is related to an archived discussion


[start here] Undefined variable. - Variable: freq - Geometry: geom1 - Domain: 1 Failed to evaluate variable. - Variable: comp1.mat1.rfi.n11 - Defined as: sqrt(((1+((comp1.mat1.DispersionModelSellmeierStandard.ODsma1((c_const/(frequnit_um_cf))^2))/(((c_const/(frequnit_um_cf))^2)-comp1.mat1.DispersionModelSellmeierStandard.ODsma4)))+((((c_const/(frequnit_um_cf))^2)comp1.mat1.DispersionModelSellmeierStandard.ODsma2)/(((c_const/(frequnit_um_cf))^2)-comp1.mat1.DispersionModelSellmeierStandard.ODsma5)))+((((c_const/(frequnit_um_cf))^2)comp1.mat1.DispersionModelSellmeierStandard.ODsma3)/(((c_const/(freq*unit_um_cf))^2)-comp1.mat1.DispersionModelSellmeierStandard.ODsma6))) Failed to evaluate variable. - Variable: comp1.gop.N_localxx - Defined as: comp1.mat1.rfi.n11 Failed to evaluate variable. - Variable: comp1.gop.nabs_local_real - Defined as: ((comp1.gop.N_localxx+comp1.gop.N_localyy)+comp1.gop.N_localzz)/3 Failed to evaluate variable. - Variable: comp1.gop.nabs_local - Defined as: comp1.gop.nabs_local_real Failed to evaluate variable. - Variable: comp1.gop.nref_local - Defined as: comp1.gop.nabs_local Failed to evaluate expression. - Expression: real(comp1.gop.nref_local) Failed to evaluate operator. - Operator: env_out_pgeom_gop - Geometry: Rays Failed to evaluate expression. - Expression: env_out(real(comp1.gop.nref_local))

Please help me to solve this

Tue, 20 Aug 2024 11:26:12 +0000 4.2024-08-20 11:26:12.343351
Wave optics module VS RF module https://www.comsol.com/forum/thread/343341/wave-optics-module-vs-rf-module?last=2024-08-20T11:02:01Z

I would like to numerically calculate the scattered intensity field inside a suspension when a 385nm UV laser is applied to the surface of a particle-filled suspension with a Gaussian beam intensity profile. The particles are ceramic particles like alumina with a d50 size ranging from 150nm to 500nm. Between the Wave Optics Module and the RF Module, which optics module would be more suitable? Is the Electromagnetic Waves, Frequency Domain (ewfd) interface alone sufficient for this simulation?

Tue, 20 Aug 2024 11:02:01 +0000 4.2024-08-20 11:02:01.343341
Modeling a Time Varying Electrical Stimulation https://www.comsol.com/forum/thread/343322/modeling-a-time-varying-electrical-stimulation?last=2024-08-20T09:58:45Z

Hi everyone,

I'm working on building a model that simulates a confined space with a custom, arbitrary time-varying waveform applied from an electrode. I'm looking for advice or examples from anyone who has experience using a time-varying interpolated waveform as an electrode voltage in COMSOL.

Any guidance or references to similar models would be greatly appreciated.

Thank you in advance for your help!

Mon, 19 Aug 2024 18:45:24 +0000 4.2024-08-19 18:45:24.343322
Electromagnetic Heating not Simulating https://www.comsol.com/forum/thread/343321/electromagnetic-heating-not-simulating?last=2024-08-19T16:27:45Z

Hi all,

I have a model that I've just posted about re AC losses, but I have a more major, pressing issue with the simulation that I cannot solve and wondering if anyone could give some advice. It is a superconducting cable that was downloaded from this source: https://htsmodelling.com/model-files/3d-comsol-model-for-corc-cables which simulates redistribution of current after an external heat pulse.

The issue I'm having is that, after disabling the heat source (I'm only concerned with the electromagnetic cable heating not external), there is no heating internally of the cable when I run the model. The external boundary is maintained at 77K and designed to keep the cable cool, so there should not be much internal temperature change, but even when I drastically increase the current input to way over critical temperature (when resistance should become very large) there is zero internal heating. The heat transfer node is not the issue, because in the original model with external heat, the 77K boundary condition cooled the cable back down over time with the correct heat flux.

I would like to know how much cooling power is required by the external boundary without a heat pulse but with only internal electromagnetic heating (which should be present even if very small as far as I'm aware), but no matter the parameters that I change I cannot get the cable to heat up.

For reference, the T-A formulation is used for current vector generation, along with Magnetic Field node with electrical conductivity defined from the material, Heat Transfer in Shells node that seems to be all OK, and a Multiphysics node for Electromagnetic Heating. Any other model information I'm happy to provide! The temperature variation within the superconducting tape is in the order of 10e-13 over the sim time, which would be purely calculation error.

Thank you massively in advance if anyone can help shed any light on why I'm not getting any internal cable heating. The top-level model builder is shown in the image attached.

Mon, 19 Aug 2024 16:27:45 +0000 4.2024-08-19 16:27:45.343321
AC loss calculation from COMSOL https://www.comsol.com/forum/thread/343311/ac-loss-calculation-from-comsol?last=2024-08-19T16:08:57Z

Hi all,

First time posting here but with a quite urgent issue. I'm very new to COMSOL (and electrical engineering in general, I'm a mechanical engineer) and I'm doing a project simulating superconducting cable with high current flow. I am using a model that has already been made, changed some parameters and have a bunch of plots and results that were predefined from the download. For reference, this is the model https://htsmodelling.com/model-files/3d-comsol-model-for-corc-cables

I am wondering, could anyone shed some light on how to calculate or plot AC losses in my cable, and where these losses actually originate? I have current density outputs and various others, but no temperature rise in the cable (this is a separate issue I'm having) and can share more info if required.

I really appreciate any help and please do assume that my knowledge around this area is very limited! Thank you.

Mark

Mon, 19 Aug 2024 16:08:57 +0000 4.2024-08-19 16:08:57.343311
Modify field variable (Pressure) https://www.comsol.com/forum/thread/343301/modify-field-variable-pressure?last=2024-08-19T17:14:55Z

Hello, I want to modify a pressure value at a specified node and use it as the initial value for the stabilized Convection-Diffusion Equation. I can access the field data in Livelink for MATLAB through: pd = mpheval(model, 'p0', 'dataset', 'dset1');

I changed the pressure value as follows: p0_modi = pd;
p0_modi.d1(1,1) = 3;

Since I want to use the modified p0 ("p0_modi.d1"), I tried to set it again through: model.variable('var17').set('p0', p0_modi.d1);

However, due to the unacceptable data type for the .set function, it doesn't work. How can I use "p0_modi" for the p0 variable?

Mon, 19 Aug 2024 15:48:56 +0000 4.2024-08-19 15:48:56.343301
The relative error (0.027) is greater than the relative tolerance in Optimization Module https://www.comsol.com/forum/thread/343292/the-relative-error-0027-is-greater-than-the-relative-tolerance-in-optimization-module?last=2024-08-19T12:55:34Z

Dear community, I am running Optimization Module for the first time in order to maximize the current density in an Electromagnetic Study (ACDC module) of a coil detecting a defect over a metal cylinder; for now i am just changing the height of the coil ("altbob"). I have found message below, tried several changes in tolerance in Optimization Module but nothing changes. I appreciate any advice.

  • Parameters: "altbob","4.3" The following feature has encountered a problem:
    • Feature: Stationary Solver 2 (sol1/s2) Failed to find a solution. The relative error (0.027) is greater than the relative tolerance. There was a warning message from the linear solver. Iterative refinement triggered. Returned solution is not converged. Not all parameter steps returned.

Thanks in advance, Thiago

Sun, 18 Aug 2024 23:11:55 +0000 4.2024-08-18 23:11:55.343292
Can the "base excitation" module be controlled to achieve the specified displacement in transient analysis? https://www.comsol.com/forum/thread/343291/can-the-base-excitation-module-be-controlled-to-achieve-the-specified-displacement-in-transient-analysis?last=2024-08-17T15:59:07Z

Dear Forum:

Specifically, I used a two-dimensional symmetrical fluid structure coupling module. Due to the strong nonlinearity of the structure, I attempted to use resonant transient analysis for multiple periods.

I derived the sine displacement function twice from t and used it as the acceleration of the fixed direction base vibration. However, the calculated displacement of the base, expressed as solid.u_maseZ, shows a curve of increasing sine function plus linear function.

After searching, the help documentation for the "base excitation" module shows that its acceleration, velocity, and displacement are all relative to a fixed coordinate system. How to make the base displacement become a sine curve with only acceleration input? What is the relationship between the incentive application of "base excitation" and fixed boundary conditions?

Sat, 17 Aug 2024 15:58:45 +0000 4.2024-08-17 15:58:45.343291
Getting Transmission Loss from FFT simulation in Time Dependent Study https://www.comsol.com/forum/thread/343272/getting-transmission-loss-from-fft-simulation-in-time-dependent-study?last=2024-08-16T16:25:46Z

I'm simulating a nonlinear phononic crystal using time dependent study. My goal is to get the transmission loss for the structure and compare it with frequency domain study.

So I defined my study following the Loudspeaker Driver — Transient Analysis defining study 1 as time dependent and applying the sin displacement for a certain frequency and then collecting the input and output displacement history for last cycle. Then I defined another study as time dependent + fft to convert my results into frequency domain defining ODE & DAEs. I can successfully do this. However, I'm not clear how can we calculate the transmission loss out of that since I'm getting a different peaks for various frequencies.

also if I apply a range of frequencies as my source frequency, how can I integrate all of these results into a unique general transmission loss spectrum.

Thanks

Fri, 16 Aug 2024 16:25:46 +0000 4.2024-08-16 16:25:46.343272
Electric field plot https://www.comsol.com/forum/thread/343202/electric-field-plot?last=2024-08-17T00:07:20Z

Hi, I am using the scattering field formulation for my model. I am using an x-polarized negative z-propagated plane wave as my background electric field. My structure is a box consisting of an air domain(top) and cancer domain(below). I used scattering boundary conditions. After the simulation, I realized that 1. emw.normE = abs(emw.Ex) 2. but abs(emw.Ez) is not = 0. if 1 is true, then how is 2 possible(since i am propagating the z direction anyways). or i am not plotting it correctly. I have attached my file. Thanks

Fri, 16 Aug 2024 04:22:13 +0000 4.2024-08-16 04:22:13.343202
Conjugate Heat Transfer Transient Model not Working https://www.comsol.com/forum/thread/343192/conjugate-heat-transfer-transient-model-not-working?last=2024-08-15T15:34:06Z

Hello all,

I am modeling a heating device placed inside a room using conjugate heat transfer module with k-ε turbulence model.

The simplified geometry consists of three cubes (figure attached), the smallest cube represents the device, which is placed inside the room very close to two walls. The air inside the room is defined using the second cube, and the difference between the biggest cube and the second cube is defined as a brick wall. The heating device is at a constant temperature of 100 degC, and there is a constant air inlet (mass flow rate defined) from the top face of the device. To make it a stable system, an opening is made in the roof (as seen in the attached picture).

Mentioned below are the specified boundary conditions. Heat transfer in solids and fluids: - Air inside the room and the brick wall are initially at 25 degC - The device is initially at 100 degC - Constant temperature of the domain is defined using a pointwise constraint - The exterior surfaces of the brick walls are convecting with the external air at 25 degC - An "outflow" condition is specified at the exterior surface of the window

Turbulent flow: - Initial and reference pressure levels at 1 atm for the whole model - Weakly compressible flow with no gravity effects - Inlet at the top surface of the device (mass flow rate defined) - The surfaces of the device (other than the inlet) are defined as walls - The internal surfaces of the brick wall are defined as walls - An "outlet" condition is specified at the exterior surface of the window - Used a pressure point constraint set at 1 atm at one of the point on the external surface of the window

For the multiphysics coupling, viscous dissipation is enabled.

With the above set of boundary conditions, a stationary model is working well and is giving reasonable results. But the same model when run using a time-dependent study is giving several errors. It initially gave an error of inconsistent initial values, following which I used step function to ramp up the transition of the device's temperature, inlet. and convective coefficient. This time, I am getting an error that says

"Time-Dependent Solver 1 (sol3/t1) Repeated error test failures. May have reached a singularity. Time: 3.2249932802768407e-06 s. Last time step is not converged".

I have tried changing the solvers and mesh resolution too, but nothing seems to work. Would be great if anyone could help me with this.

Thu, 15 Aug 2024 15:34:06 +0000 4.2024-08-15 15:34:06.343192
Penalty method for Navier-Stokes equations https://www.comsol.com/forum/thread/343171/penalty-method-for-navier-stokes-equations?last=2024-08-15T00:59:14Z

Is it possible to use the penalty method to eliminate the pressure term from the momentum equation in COMSOL?

Wed, 14 Aug 2024 21:23:52 +0000 4.2024-08-14 21:23:52.343171
how to define P-polarized and S-polarized light for 3D geometry in COMSOL 6.1 https://www.comsol.com/forum/thread/343141/how-to-define-p-polarized-and-s-polarized-light-for-3d-geometry-in-comsol-61?last=2024-08-16T19:52:20Z

Dear fellows, I hope you are doing well.

Could you please guide how to define components for S-Wave and P-wave of Electric field incident at specific incident angle on 3D geometry in COMSOL 6.1.
It would be appreciated if some tutorial or example can be provided.

Thanks in anticipation.

Wed, 14 Aug 2024 09:23:40 +0000 4.2024-08-14 09:23:40.343141
Data export while a study is running https://www.comsol.com/forum/thread/343131/data-export-while-a-study-is-running?last=2024-08-14T08:04:35Z

While I am running an optimization study, I get the probe results for each iteration in a table. Is it possible to write these data, automatically after each iteration, to a file, while the study is ongoing?

Motivation: I want to check the intermediate results in batch mode without graphical interface.

Wed, 14 Aug 2024 08:02:08 +0000 4.2024-08-14 08:02:08.343131
Coupling of transformer electric and magnetic fields https://www.comsol.com/forum/thread/343113/coupling-of-transformer-electric-and-magnetic-fields?last=2024-08-14T23:09:27Z

When studying the calculations, there were errors in compiling the equations, and the differential algebraic equations were structurally inconsistent。 so how to deal with this question?

Wed, 14 Aug 2024 07:21:02 +0000 4.2024-08-14 07:21:02.343113
Extrusion/projection operation for non-local couplings https://www.comsol.com/forum/thread/343102/extrusionprojection-operation-for-non-local-couplings?last=2024-08-13T21:52:31Z

Hello, I was wondering what is the right way of using 1D extrusion/projection to a 3D surface. I understand projection decreases the number of dimensions.

What I am trying to do is to project temperature from a 1D pipe to a 3D surface, where x and y will be the pipe wall temperature as a function of z.

Since, the pipe is in non-isothermal conditions, I dont want to average my values. I tried linearizing it to 1D line on my surface, it didnt work.

Tue, 13 Aug 2024 21:52:31 +0000 4.2024-08-13 21:52:31.343102
strange result on static analysis https://www.comsol.com/forum/thread/343092/strange-result-on-static-analysis?last=2024-08-13T20:23:59Z

I did a stationary study on comsol to get the displacement on the bottom flexure top face here was the set up 1. Upper and lower flexure with the beam 2. Anisotropic silicon [100] 3. Added mass at Top of the beam: 0.9 kg 4. Added mass at the top face bottom flexure: 50kg 5. Fixed constant at the top flexure bottom face 6. No-rotation constant at the bottom flexure top face 7. Boundary load: first test 0.5 N then second test 0.005 N both test at bottom flexure top face both in the x-direction 8. Gravity is on first test. Gravity is off on the second test 9. Study is static study 10. Use a probe at the bottom flexure top face to grab this displacement value.

i got the displacement on the bottom flexure top face and it 0.323 m is this correct?

Tue, 13 Aug 2024 20:23:59 +0000 4.2024-08-13 20:23:59.343092
Baidu
map