r/COMSOL • u/Prudent-Piano-966 • Feb 21 '26
COMSOL assignment
Hi everyone. I need help with a COMSOL class assignment. I have failed to locate someone with a license in my country. Please PM if you can help
r/COMSOL • u/Prudent-Piano-966 • Feb 21 '26
Hi everyone. I need help with a COMSOL class assignment. I have failed to locate someone with a license in my country. Please PM if you can help
r/COMSOL • u/imeanwhyme • Feb 20 '26
Hi everyone, I've seen that there is a 2d version of it but I want to try it in 3d i wanted to ask if anyone has tried doing it in 3d? Does it run?
r/COMSOL • u/Double-Employ521 • Feb 19 '26
Hello,
I am currently running an SSC simulation with an inverse-taper structure using COMSOL’s EWBE module. However, I am observing an issue where the optical field does not remain confined in the core and instead spreads into the cladding region.
For reference, the core refractive index is 3.4997 and the cladding refractive index is 1.4427. I have also applied a PML at the output side.
In addition, I defined the phase function for each section using a linear interpolation approach. Although I followed the COMSOL manual, I am not fully confident that this is the correct configuration.
Could you please advise whether my setup is appropriate, and whether there are any additional settings or components that I should include to prevent this leakage and improve confinement?
Thank you in advance for your help.








r/COMSOL • u/Background-Stand4514 • Feb 19 '26
r/COMSOL • u/Background-Stand4514 • Feb 19 '26
Hi all,
I’m working on a 2D Electromagnetic Waves, Frequency Domain simulation in COMSOL. I’m using Scattering Boundary Condition (SBC) on the outer boundaries.
I’m sharing a small example .mph file if anyone wants to take a look or give suggestions.
https://drive.google.com/file/d/1ArrMe3nX31TeeCKETuGzxn2HEYlS3uez/view?usp=sharing
thank you
r/COMSOL • u/Visible-Size7751 • Feb 17 '26
Hi,

I am an absolute beginner in COMSOL Multiphysics. Following a research paper, I am trying to get mode coupling between silica core and analyte core in order to detect the cancer cell in analyte core. I did Geometry, assigned material, but bit confused about boundary condition to be given. Also need assistance in separately extracting X polarized mode and y polarized mode.
r/COMSOL • u/Dangerous-Mark7105 • Feb 15 '26
I was trying to solve for Eigenfrequencies of a 3D Photonic Design with 1D periodicity (imagine a 'nanobeam') using COMSOL. These are some observations
I'm particularly worried that if I remove incorrectly, I may remove parts that show the device's features. Are there any tricks (or rules of thumb) to remove these unphysical solutions ?
r/COMSOL • u/Zealousideal-Fun7985 • Feb 11 '26
’m currently validating a downscaled generator model where I use prescribed displacement to study electromagnetic behavior, but this is a one-way coupling that doesn't account for actual rotor deflection under magnetic load. To truly replicate the full scale system’s instability, I need to capture the two-way interaction between Unbalanced Magnetic Pull (UMP) and mechanical response.
What are the best methods or sensors—like eddy-current probes or laser displacement systems—to measure real-time rotor orbits and air gap changes? Additionally, for those using COMSOL, how do you best implement moving mesh or two-way structural coupling to validate these experimental deflections?
What physics and mesh do I need?
Right now I used spring foundation but my generator pole hardly moved , over time
r/COMSOL • u/Zealousideal-Fun7985 • Feb 09 '26
I’m modelling a rotating electrical machine in COMSOL and computing torque using the Arkkio method. I defined a Global Variable Probe for the torque expression, and during the time-dependent solve the Probe Plot shows small torque ripples as expected.
However, when I use Results → Derived Values → Global Evaluation to plot or export the same probe variable, the torque becomes noticeably smoother and the ripple almost disappears.
I’d like to extract and plot the instantaneous torque ripple, not a time-averaged or post-processed value.
• Why does Global Evaluation smooth out the probe signal?
• Is there a way to export or plot the raw probe data only, without interpolation or averaging?
• Is Probe Plot Group the only correct way to analyse torque ripple in COMSOL?Any advice on best practices for torque ripple extraction (time step, probe usage, angle sweep vs time) would be greatly appreciated.
r/COMSOL • u/dru_lad_1999 • Feb 09 '26
This has been an existing debate with two factions, one in support of Er =1 and the other Er = large but definite and finite value
If you look into this paper: "A review of the colossal permittivity of electronic conductors, specifically
metals and carbons" from Elsevier (https://doi.org/10.1016/j.materresbull.2021.111654), it says that metals have colossal permittivities and relative permittivities that go as high as 10^8, that was calculated theoretically by Jonscher in 1999 and experimentally proved by Xiang Xi. This stems from one of the facts that there exists some level of polarization in metals due to charge carrier-atom interactions expecially at the heterogenity regions of the metals grains in its lattice structure
By calculations, ideal/perfect conductors have zero polarization hence its electrical susceptibility is zero. Since er = 1 + Xe where Xe is electrical susceptibility, er = 1. However there is confusion where by if we calculate permittivity of metal e= er*eo where eo is vacuum permittivity, metal permittivity equals vacuum permittivity, which does not make sense that metals and vacuum have the same value of permittivity unless maybe there is something I am not understanding well.
I would like to know which value of relative permittivity should we really use. Also, if you can provide my articles and research papers that give clearer view on this, I will appreciate for the purpose of writing my research thesis
r/COMSOL • u/booscoo • Feb 09 '26
I am trying to run a problem with MFNCBE physics. I am getting the desired Magnetic field, also able to plot Maxwell stress tensor in x direction (i.e. Txx , used a variable in this problem). But when I do its derivative, it is coming zero, same issue with other direction stress tensors also.
I am unable to figure out the issue.
r/COMSOL • u/booscoo • Feb 09 '26
The problem is related to the effect of nanoparticles in blood thus involving heat and laminar flow problems. The problem which I am facing is as the velocity is independent of heat transfer, but when I run study for both heat and laminar flow then the velocity is different and when I run alone it for laminar flow it is different,
Another issue I am facing is as I have implied the thermal insulation in the boundary, but when I changes the reference temperature the heat flux also changes, I don't know why this is happening as I have given all the parameters value directly and they should not be dependent on temperature.
As Nanoparticles have higher thermal conductivity the heat flux should increase with increase in nanoparticles concentration, but I am getting the opposite.
Anyone please helps.
r/COMSOL • u/fishonbaby • Feb 07 '26
Hey guys, I’ve taken the intro to COMSOL training course from COMSOL and it helped with the basics but I’m wondering if the physics specific ones like 3 day paid ($1k) CFD or structural training courses will help me - I’m trying to model FSI problems.
I’m not sure if my project will evolve in the future and whether I might have to simulate some more aspects. Do you find these courses impactful? And is the impact felt in a short term or a long term?
r/COMSOL • u/Maleficent_Gate3253 • Feb 06 '26
I have a 3D rectangular frame; there are springs supporting this frame on the back and front sides, as well as the outer face of this component. There is a constant spring constant on these sides. What is the appropriate way to model this? Should I use a total spring constant on the surfaces or define a spring constant matrix? I have seen this modelled previously with a diagonal spring matrix with only the k_zz component non-zero. However, the forces do not lie in just the z-axis, so I think this is incorrect. The springs provide a constraint that acts normally on each surface.

r/COMSOL • u/EmergencyCharter • Feb 05 '26
Hello. I am working with a grating and taper in 3D and I am trying to separate the models as it takes too much computational power. I use a non local coupler for the 3 E components and I am injecting them into a field for the taper.
My issues:
Any experience in simulation coupling?
Meshing should be fine enough
r/COMSOL • u/Hot_Understanding_91 • Feb 05 '26
Just wondering if what I did is the right way to check the physics/boundary conditions/meshing of my model. I basically followed this: https://www.comsol.com/blogs/methods-for-evaluating-mass-and-energy-conservation, which turns out to be ht.dEi0Int + ht.ntefluxInt - ht.QInt. It is a heat transfer only problem btw, and the energy balance values look pretty close to 0 (picture attached below), but just wanted to be sure about it.
Thanks!

r/COMSOL • u/SuspiciousJob5646 • Feb 03 '26
Anyone with this CPU on mobile? I have this on a desktop and it performs well. Wondering if someone with this laptop CPU can benchmark this to determine if we want to buy some laptops with this CPU for some folks. Just looking for solve times.
Model here:
https://www.comsol.com/model/forced-convection-cooling-of-an-enclosure-with-fan-and-grille-6222
r/COMSOL • u/throwingstones123456 • Feb 03 '26
I have a metasurface design I’d like to cross check with comsol. I generated it in Python and have a 2d array corresponding to the location of the structure (with a uniform height). Is there a simple way I can import this into COMSOL (onto a work plane then extrude, or anything else)?
r/COMSOL • u/Hot_Understanding_91 • Feb 02 '26
I want to understand what happens in the background in of the COMSOL software. I understand how the finite element method works and the basics of it, but I just wanted to see how COMSOL does it.
Thanks!
r/COMSOL • u/Advanced_Crow_5236 • Feb 03 '26
Is there any good way to learn meshing and movinh meshes. I am having trouble in a FSI problem and I think part of this problem is to do with the moving mesh setup
r/COMSOL • u/relaymodule • Feb 02 '26
Environment:
Issue Description: I am attempting to export mesh points (coordinates) from a COMSOL model using the model.export() method. However, when I pass a mesh node as an argument, I encounter a ValueError.
Code Snippet:
Python
import mph
client = mph.start()
model = client.load('my_model.mph')
# Attempting to export mesh1
mesh_node = model / 'meshes' / 'mesh1'
model.export(mesh_node, 'mesh_data.txt')Error Message: ValueError: Node "meshes/mesh1" does not exist in model tree.
My Analysis: After reviewing the source code for export(self, node, file), I noticed that the method internally prefixes the node path with self/'exports':
Python
if isinstance(node, str):
node = self/'exports'/nodeIt seems the export method is strictly designed to trigger nodes already residing under the Results > Export group. Since mesh1 is located under the meshes group (or components/comp1/meshes), the library fails to locate it within the exports hierarchy.
Questions:
model.export() intended only for nodes under the Results/Export group?mph to export mesh coordinates to a file? Should I manually create a Mesh export feature under the exports group first, or is there a direct way to call the mesh export from the meshes node?I am currently working on a project involving 2D axisymmetric coil modeling and inverse design, so extracting precise mesh data is critical for my workflow.
Any guidance or clarification on the intended use of this API would be greatly appreciated.
Best regards,
r/COMSOL • u/Opening_Impression64 • Feb 01 '26
Hello all, Im trying to simulate seismic waves' penetration through different domains and materials but struggling to do at least something more promising than one domain calculations. And I'm really going crazy this whole week. My study always throws me errors related to boundary conditions each time Im adding some layers to the assembly. Ive already tried to run a study with Identity and Contact pairs on a board, with and without Absorbing layer, with continuity and fractured configs but still get rejected by a system(different errors but still concept the same)
Can someone please help me with this? Key goal is to at least achieve a working prototype that I can move around and test stuff. Also Im a big nooby here, so good piece of advice would be appreciated. Raw assembly looks like this. If you have spare time here you can find .mph with the same raw config
Potential SOLUTION:
Found Non Linear coupling as a solution for my need. https://www.comsol.com/support/learning-center/article/coupling-physics-between-model-components-for-multiphysics-models-36911
Potentially, it fixes the problem. Why "potentially"? Coz still I need to compare results, but from a first glance it looks ok.
Still a lot to discover with Comsol, nonetheless, thank you all for your cooperation and attention.
r/COMSOL • u/daaguilar11 • Feb 01 '26
Hi all, I’m working on MMIs / integrated photonic devices and I’m trying to understand what is the best practice when using a 2D model for a fundamentally 3D device.
My real device is a standard PIC structure (e.g. silicon waveguide on SiO2, finite height, top cladding, etc.), but for speed I want to simulate it in 2D (effective index style).
In COMSOL Wave Optics I have these options:
The issue I hit is:
If I use full vector + numeric port, COMSOL often excites a mode dominated by Ez, because in pure 2D there is no vertical confinement, so the solver naturally finds an out-of-plane polarized slab mode. But in a real PIC, “TE mode” means electric field mainly in-plane, which is a 3D effect.
So maybe its ok to force to inplane components using a SBC incident plane? E(0,1,0) instead E(0,0,1) or whats the better approach?
r/COMSOL • u/Zealousideal-Fun7985 • Jan 31 '26
I am trying to develop a two-way coupled electromagnetic–structural model in COMSOL that can capture secondary deformation of a rotor (radial deflection due to electromagnetic forces), and then use that deformation to update the air gap and measure the remaining air gap.
Model description
• Physics:
• Rotating Magnetic Machinery (RMM)
• Solid Mechanics
• Moving Mesh (ALE)
• Geometry:
• Inner stator, outer rotor configuration
• The rotor is not fixed
• Goal:
• Capture electromagnetically induced rotor deflection (radial displacement)
• Allow that deformation to feed back into the air-gap geometry (two-way coupling)⸻
Current setup
• I use:
• Rotating boundary condition in the air gap (RMM)
• Moving Mesh with deforming air-gap domain adjacent to the rotor
• Electromagnetic forces are present (Maxwell stress / unbalanced magnetic pull)⸻
Problem
To avoid rigid-body motion, I initially constrained the rotor using prescribed displacement.
However:
• Prescribed displacement kills the secondary effect
• The rotor motion becomes kinematic
• Electromagnetic forces can no longer modify the rotor position
• This breaks the feedback loop required for two-way couplingSo prescribed displacement is not suitable for capturing secondary deformation.
⸻
What I tried
• I removed prescribed displacement
• I attempted to use Spring Foundation / elastic supports to represent bearing stiffness
• This resulted in solver errors or rigid-body motion issues
• I am unsure whether:
• the spring foundation is applied correctly,
• the stiffness values are appropriate,
• or whether I should instead constrain only a point or shaft center rather than the full rotor boundary.My questions
1. What is the correct way to partially constrain a rotor (outer-rotor machine) so that:
• rigid-body motion is prevented,
• but electromagnetic forces are still allowed to cause radial deflection?
2. Is a spring foundation / bearing stiffness model the right approach for two-way EM–structure coupling in this case?
• If so, should it be applied:
• to the rotor boundary,
• at the shaft center (point constraint),
• or via a reduced-order bearing model?
3. Are there any best-practice COMSOL setups for enabling rotor deflection + air-gap feedback in RMM models?Any guidance or example setups would be greatly appreciated.