Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all 25631 articles
Browse latest View live

Simulating Step index fiber in 3D

$
0
0
I am trying to simulate step-index fiber in 3D.
But which physics i should add?


In 2D model of comsol model library they added "Modal Analysis".
But in 3D should i have to use "Boundary mode analysis"??
If so, how can I use it?


I am a novice in comsol. So, please help.

Thanks in advance.

Out of memory, solution does not converge, failed to find solution

$
0
0
I still try to solve my photovoltaics-model ;) I thought i might done something wrong and created a new model because i had that NaN/InF Error but well, it still doesnt solve it. To understand my problem better, i just attached a picture of the whole model but also a section.

Because i had several times the error: Out of memory, solution does not converge
i tried to change the solver to iterative and GMRES with Out of Core checked, but after 4 hours of solving the message that returns is:
Failed to find a solution.
Divergence of the linear iterations.
Returned solution is not converged.

I created every layer of the 5 layers (glass/polymer/silicon/polymer/polymer2) with the same plane geometry (quarter symmetry to save ram) wich i extruded in several steps for the thickness of each layer, then draw the framemodel and extruded it from both sides and united it with the virtual option of composite areas.

Then i set up a free triangle net on the top surface with refinement at the borders to the frame. I extruded this step by step thru the layers, made the convert option at the borders with an area-diagonal to fit with the free tet elements from the frame. Also i divided the glass layer with the distribution of 5 elements.
So far everything is ok. No errors or anything.

Thanks for the help ;)

The constraints are: Area load from induced by the circles on top, symmetry on 2 sides to save ram, fixed constraint at a predefined area.

First of all my question: What do i have to change to let it converge?
secondly: Wich solver would be the best? Id rather let it run longer with ram saving due i just got a Quad-core pc here with 8 Gb of Ram.

Concentric Cylinders Viscometer

$
0
0
hi everybody,
We are a group of students and we are doing a viscometer with concentric ciylinders. We need to do a simulation of velocity in the time (depent time) and we have a problem with the animation. If somebody has done or maybe can help us, my mail is: s.rios1927@uniandes.edu.co

Thanks

De-icing of wing

$
0
0
Hi,
I'm doing simulation of deicing of wing due to heating up sections of the leading edge of the wing. However, when I go through all the boundary set up and run the solution. I get an error:

Undefined value found.
- Detail: NaN or Inf found when solving linear system using SOR.

I've attached my file to this, please help me eliminate this if possible. Few possibilities of error might be at how my velocity is set up: i want it in -y direction but I'm not sure if that will cause any problems or not.

Who has Comsol model of the Modeling Hysteresis Effects

$
0
0
HI everyone,

I have a tutorial on Modeling Hysteresis Effects (in Comsol 3.5). Currently, I need this model for reference of hysteresis loss analysis. Anyone who has this please share the model here?
Thank you so much.

COMSOL Multiphysics 4.3b is now available

$
0
0
Hello COMSOL Community!

Five new modules and a tremendous number of new features and enhancements are ready to be applied in your models and simulations. Release Highlights are available at www.comsol.com/products/4.3b

The new modules are:
- Multibody Dynamics Module
- Wave Optics Module
- Molecular Flow Module
- Semiconductor Module
- Electrochemistry Module

On-subscription license holders of the RF Module, Structural Mechanics Module, or Microfluidics Module will receive the Wave Optics Module, Multibody Dynamics Module, or Molecular Flow Module, respectively, and for free.
COMSOL Multiphysics 4.3b can be downloaded at www.comsol.com/support/download

Happy simulating!
Valerio

--
Valerio Marra, Ph.D.
Technical Marketing Manager
COMSOL, Inc.
+1-781-273-3322
valerio@comsol.com

floquet Boundary condition in PDE module

$
0
0
Hi everyone

I'm trying to solve a boundary value problem in a periodic structure, I have to use PDE module to solve the coupling equations, and I need to impose floquet BC on two parallel boundaries on the geometry.
Seems that PDE interface does not have this type of BC and wonder if it is possible to use predefined ones like "constraint" node or "pointwise node" or not.

Has anyone dealt with such a problem so far?

internal error geometry decomposition

$
0
0
Hi everyone!
I built a model in which 40 spheres are randomly placed in two cylinders and 4 spheres are fixed in the third cylinder. The problem is two errors are shown when i run the script:
Error:internal error geometry decomposition
Error: in built-in function plus

Mises or First-Principle-Stress for laminates?

$
0
0
Hi, someone told me that i should use the First-Principle-Stress- value für a laminate containing glass, polymers and silicon. The setting is: Glass - Polymer - Silicon - Polymer - Polymer 2-BEAM with a fixed constraint and symmetric constraint at the middle. For brittle materials i know ishould use the FPS but it doesnt lead me to a conclusion of my testing results where the Mises value is more constructive.

My question is: When i change the values from Mises to FPS, there are no stresspeaks close to the restraint anymore. In my real case, i got most defects close to the restraint thats why its kind of confusing to have a value of zero MPa at this point. Usually you have stresses at the restraints.
Well i use to have materials that arent brittle in this case too (polymers) even i like to know the stresses at the silicon.

Thanks for the advice. I know im asking many questions but i really need someone to talk to in these things ;)

With special greetings

Pleasse help me.

$
0
0
Good day.

Would somebody be so kind as to send me a model ID 14191?

Thank veri much.

goodbye

Find Inertial Modes, Eigenvalues for a Sphere of Fluid

$
0
0
I am new to Comsol and I am trying to find the eigenmodes of a rotating sphere filled with water in the rotating frame. I have specified the sphere filled with water with free slip walls, specified pressure points specified and the Coriolis force imposed with the volume force: F=(-2*v,2u,0). I have tried to set up the simplest mode, called the spin-over mode where I have prescribed the initial velocity to be solid body rotation around the y axis: U_0=(-z,0,x). I am not sure how to set up the problem for finding the eigenvalues in the fluid. In Comsol 3, the eigenvalue was found as a subset of a time dependent problem but I am not sure how to even setup this problem in Comsol 4.3a.The examples I have found seems to deal with solid structures or acoustics and not with fluids. I have include a bare bones file with non dimensional parameters assigned. When I run it I only get Nan for the eigenvalues. Thank you very any help or links to helpful documentation.

comsol 4.0 how to have unequal scaling on different axes

$
0
0
In comsol 3.5a, i could selected under
options->axes/grid settings the option that the axes not be equal.

I have problems where dimension along one of the axis are microns while along the other axes they are cm.
in 3.5a after unticking axes equal, I could use the zoom extents tool to display my results so that the short dimension could be expanded to fill the screen.

I am struggling with 4.0 now. In geometry (model builder) such a possibility exists.
I have not been able to find this possibility once I have results.
When I extrude a 2D object 5 microns in the z direction to get a 3D object from a 2D drawing made in a working plane, I do not know how to view that.
It is also a necessity to be able to define correctly some of my boundaries.

It is also necessary to be able to view the results!!!

I do not understand where this possibility is hidden. I am not sure it even exists.
if not, please include this ASAP.

Can someone help??
Thanks


Transport of diluted species and electrostatics

$
0
0
Dear Community,

I am trying to combine the physics of the poisson equation (electrostatics) with the nernst-planck (transport of diluted species) in Comsol 4.1 for like 6 weeks now, and all I get is errors. Does anyone have experience with these two models combined?

Eventually I wanna model the concentration and potential and flux fields in a nanopore, but I took a step backwards, and just try to get the physics right, by modeling an electrical double layer next to a charged surface.

Some details on my model. I use the potential field from the electrostatics as input for the potential in the nernst-planck, and in return I defined a space charge density of F*(c-c2) (c and c2 being the electrolyte ions) for the electrostatics. That should be enough to couple the two physics, or am I wrong?
Moreover I have a -1 mC/m2 surface charge on one side and ground on the other side (just rectangle). Electrolyte concentrations are fixed on the ground side to 1 mM.

All I get as error is that the maximum number of newton iterations is reached and the solution is not converged. I tried a whole bunch of different initial conditions and solver configurations, but nothing is working.

Does anyone have any ideas?

Best
Nils

Eigenvalue Calculations In RF Module With Perfectly Matched Layers: Radiation Q factors

$
0
0
Hi everyone,

I have one part general info that maybe others will find helpful, and one part question. Here goes:


I've been trying to compute the eigenvalues of dielectric GaAs disk structures (embedded in air or some other dielectric cladding) in the RF module.

In particular, I wanted to find the Q-factor (due to radiation alone) of whispering gallery modes in these structures. The type of mode isn't important, just that I wanted Q-factor for a dielectric structure that can radiate, so the Q factor is not infinity even though all materials are lossless.

For some reasons specific to my problem, I can't do this in the 2D axi-symmetry approach as you'll find in some of the comsol related papers on whispering gallery modes in aix-symmetry.

I'm forced to do 3D. Anyway, I had assumed that simply using perfectly matched layers (PMLs) of one wavelength thickness would do the trick and allow any radiation associated with the eigenmode to be absorbed w/o reflection and just die in the PMLs.

I've had lots of success with comsol default PMLs in say, steady state (frequency domain, stationary) analysis. So I was really puzzled why the choice of the size of my cladding layer before PMLs affected DRAMATICALLY the Q factor reported by comsol. The resonant frequency (and consequently, wavelength) were relatively unaffected by how big a domain I drew around my (nm to micron sized) disk.

Turns out, comsol drops a scaling factor in the "coordinate stretching in the complex plane" that is equal to the wavelength. This means (and I worked through the math here, given comsol's definition of the PML stretching) that effectively my physically 1 wavelength (~1200 nm) long PML "looks" like it's 1 METER long after PML stretching. This is no good--especially when you only have 5 elements in that 1 wavelength long PML. It means that it is TERRIBLY undermeshed. This normally just leads to "Singular Matrix" for most cases, but in the off chance you DO get a solution, the Q factor is nonsense, but yet the wavelength is in the ballpark.

The fix:

Set the scaling factor, F, as it appears in the PML subnode equal to 1 wavelength (of the mode you're interested in, so you kinda have to take a guess, just like you do at where to search for eigenmodes, you can tune later once comsol reports a wavelength from a first run...remember, the wavelengths [frequencies] I think are trustworthy regardless of PML choice).

This worked like a charm for me, and I believe is a general approach for getting Comsol to report Quality factors truthfully. I compared my results for a disk that's 2 microns long made out of GaAs (easy to find in literature--it's all over a google search for "whispering gallery modes + comsol"), and got decent agreement with the Q factor they report from axi-symmetry analysis.

Anyway, I hope the above may help others, since I've struggled for a month now before I read the fine print in comsol and found they drop the "lambda" term in their coordinate stretching in eigenvalue calculations so as to avoid nonlinear dependence (b/c wavelength and frequency are connected, the stretching would be eigenvalue dependent otherwise)...

I do have one question, if anyone can help. Comsol reports 1 Q-factor from taking the imaginary part of the eigenvalue and dividing by twice the real part of that same eigenvalue calculation. If it were REALLY REALLY correct,then I should be able to go into post processing mode and do the following:

1. Know Q =(defined)=omega_0*(Time_Avg_Energy_at_resonance)/(Time_avg_power_disssipated_at_resonance)

2. Extract omega_0, the resonant ANGULAR frequency, from the imaginary part of the eigenvalue

3. [3D Volume] Integrate energy density over entire model space (all domains) to get the numerator

4. [3D Volume] Integrate resistive losses (or power dissipation density in V4.2, they're the same) to get the denominator.

I do this and I get the computed quality factor from (1) to be EXACTLY 2 times that which comsol reports.

Anybody have any ideas on where this is coming from. I'm happy knowing ONE of the answers is correct and that only a factor of 2x separates me from truth, but I'd very much appreciate it if someone could tell me what one is the right one. I'm inclined to believe the computed answer from number (1) above, because it agrees better with numbers I find in the literature for my test case...But even comsol's direct answer isn't too far off those values either (well, a factor of 2....but maybe comsol IS right).

Thanks!

--Matt

Self and mutual inductance Calculation 3D (Ivar Kjelberg)

$
0
0
Hello,

I am a newbie in Comsol and i am using the version 4.2a right now. I am trying to calculate the self and mutual inductance between 2 coils in 3D. i tried to search for different solutions in the forums here but none of the them solve my problem. I can't attach my model here because it is so big so i really appreciate if u can help me and mention your email here so i can send the model to u and sorry if it takes too long to open or compile.

I am having few problems with it:

1. I can't find the best way to excit the primary coil, i was thinking of creating an air cylinder between the beginning and the end of the coil ( like the tutoriel inductor_3D) and to put a terminal and ground on these endings. is it the best way for my case or is there an easier way to excit the primary coil??

2. To calculate the inductances (self and mutual) , i found in different forums different solutions but what is the best one for my case using the newer version of Comsol and can you please explain it in details because i am a beginner.


Thanks in advance

Jad TAKI


Finite Elements for Fluids P1+P1 P2+P1

$
0
0
Dear Comsol users,

Comsol sets P1+P1 elements as default for laminar flow described by Navier-Stokes equations. As far as I know, theoretically, these elements are not good for such equations. Instead, P2+P1, or P2IsoP1 should be used. But Comsol uses those for creeping (Stokes) flow.

Is the comsol's P1+P1 choice stabilized in some way such that it can be used for Navier-Stokes?

I appreciate any hint.
Thank you

Splitting one Geometry in two

$
0
0
Hello,
Iam a newy in working with comsol Multiphysics and would be very glad if I could find some help in this forum for my problem.
I would like to define two different materials in one geometry. You can watch in my attached grafic-file, which geometry Iam talking about. The file shows an tank with luiquid gas inside. But the tank should be filled with liquid gas just for 60 % and the rest should be gas. So there should be something like a border to define the liquid and the gas phase.
I have tried to do it with the workplane, but unfortunetly without succeeding.
Do somebody know how to handle this?
Thank you very much für your help!

parameter sweep error when loading a geometry

$
0
0
I am applying a load to the top of the geometry shown while the bottom is fixed but i keep getting an empty parameter sweep error can u help me??

Point Evaluation using Biot-Savart Law.

$
0
0
Hello everyone,
I am currently attempting to do a point evaluation with the expression for Biot-Savart Law.

The set up is like this:
I have an array of points that I would like to get the value at using this expression:
1/(4*pi)*intop1((ec.Jy*(z_P-z)-ec.Jz*(y_P-y))/r^3)

where:
intop1 is the integration operator,
z_P, y_P, x_P are the field points, and x.y.z are points within the domain
r = ((x_P-x)^2+(y_P-y)^2+(z_P-z)^2)^0.5

I can get the values with parameter sweeps, but this involves solving the model over and over again for each point I use. (No point in solving for the current density N times, when it only needs to be solved once.)

Ideally I would like the expression to be something like:
1/(4*pi)*intop1((ec.Jy*(z_coord_at_selected_point-z)-ec.Jz*(y_coord_at_selected_point-y))/r^3)
r = ((x_coord_at_selected_point-x)^2+(y_coord_at_selected_point-y)^2+(z_coord_at_selected_point-z)^2)^0.5

I have looked pretty extensively on the internet, and in manuals, but cannot seem to find a command for such a general function. I have seen dom==particular point, ie 7, but I need it to take a general selected point, as well as only taking the x, y, or z coordinate of the point.

Does anyone know of a command I may have missed? Or offer an alternative method to getting this information without having to input an insane amount of parameters into comsol?

I realize I can use the magnetic package to get the field from the current density, but I am needing to do it this way for now, so the magnetics package isn't an option for me.

Any and all help is much apprecated, thanks!

ECT sensitivity distribution maps

$
0
0
Hi,

I am using Comsol ver 3.5a Electrostatics module to design my 12 electrode electrical capacitance sensor in 2D. Now i would like to generate a sensitivity map for this ECT sensor but before that would like to transform my 2D model to 3D. So my first question is that how can i transform my 2D model to 3D?
Then after that, how 3D sensitivity distribution (map) could be obtained using COMSOL?
Sensitivity distribution is essentially a map of the sensor response to a short test probe of high permittivity material in a low permittivity background as it located at different x, y and z positions inside the sensor. In principle, the sensitivity distributions can be obtained by physical measurement or by FE analysis. The 3D sensitivity distribution of electrode pair ij,Sij(k) (the subscript i and subscript j indicate that the measurement electrode i and j are the excitation and the
detection electrodes.


Please help me.

Thanks.
Viewing all 25631 articles
Browse latest View live