COMSOL Forums: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/
Most recent forum messagesTue, 11 Dec 2012 11:13:21 +0000COMSOL Forums: Iteration solver, RF module, 4.2ahttp://www.comsol.com/shared/images/logos/comsol_logo.gif
http://www.comsol.com/community/forums/general/thread/33510/
Re: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92113
Hi<br />
<br />
just to make it clear, I happened to answer quick today, as I was waiting for COMSOL to finish an animation ;)<br />
I'm not always in this situation <br />
<br />
--<br />
Good luck<br />
IvarTue, 11 Dec 2012 11:13:21 +000033510.1355224401.92113Re: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92108
<div class="quote"><br />
Hi<br />
<br />
that looks rather good, you your solver is getting a low value from the way the model is set up. But the results could still be wring by 10% or more if the mesh is not fine enough, often I double the mesh to test the mesh independence, as you need both good dolver convergence and mesh resolution.<br />
<br />
You can make a similarity between music sampling and compression, that is today often well understood: if you sample poorly your waves, your error (difference from the digitized points and the true signal AT these digitized points) will be small, but the sound would not be nice as you will miss the high frequencies and the modulation will be spiky, so you need both<br />
<br />
--<br />
Good luck<br />
Ivar<br />
</div><br />
<br />
Thank you very much Ivar on answers and especially on quick answers. <br />
<br />
I didn't think about on that way. I just compared few simulations for iterative solver (number of iterations 10 000) and for direct solver, and I thought that is OK because almost perfectly fit.<br />
<br />
Now I get it. My mesh is maximum lambda/5 (so 5 elements per wavelength) and my PML is lambda/2.<br />
<br />
So I have to check same model and put for example maximum lambda/7 or lambda/8.<br />
<br />
<br />
Thank you very much Ivar, you helped me lot, yesterday and today. <br />
<br />
<br />
Cheers ,<br />
<br />
<br />
Stefan<br />
<br />
Tue, 11 Dec 2012 10:19:48 +000033510.1355221188.92108Re: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92107
Hi<br />
<br />
that looks rather good, you your solver is getting a low value from the way the model is set up. But the results could still be wring by 10% or more if the mesh is not fine enough, often I double the mesh to test the mesh independence, as you need both good dolver convergence and mesh resolution.<br />
<br />
You can make a similarity between music sampling and compression, that is today often well understood: if you sample poorly your waves, your error (difference from the digitized points and the true signal AT these digitized points) will be small, but the sound would not be nice as you will miss the high frequencies and the modulation will be spiky, so you need both<br />
<br />
--<br />
Good luck<br />
IvarTue, 11 Dec 2012 10:04:42 +000033510.1355220282.92107Re: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92104
Thank you on fast response.<br />
<br />
But for example, when I follow iterations in log tab, can I conclude something if in some iteration I have for example<br />
linear error 0.00078 and linear residual 2e-5. <br />
<br />
Can I know something about quality of my simulation from these values?<br />
<br />
Thank you very much in any case.<br />
<br />
Cheers,<br />
<br />
Stefan<br />
<br />
Tue, 11 Dec 2012 09:53:00 +000033510.1355219580.92104Re: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92101
Hi<br />
<br />
you need reasonably both, first fine enough mesh to resolve the fields variations, in RF its at least 5 (ideally 10) elements per wavelength IN THE MATERIAL (do not forget "n")<br />
<br />
Now iterations for me depends on the solver and its settings<br />
<br />
RF requires a lot of RAM and time to wait (time to take a look at the Forum ;)<br />
<br />
In any case do not forget that numerical FEM has at best around 6 digits precision, due to the representation of the number in double precision, and mostly the solver are set by default to some 3-4 digits relative precision<br />
<br />
--<br />
Good luck<br />
IvarTue, 11 Dec 2012 09:35:13 +000033510.1355218513.92101Re: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92097
<div class="quote"><br />
Hi<br />
<br />
check the Definition probe plots, and the solver nodes, "plot while solving" , for "all solver steps"<br />
<br />
--<br />
Good luck<br />
Ivar<br />
</div><br />
<br />
Thank Ivar, you helped me ;-).<br />
<br />
Can you give me some information from your experience?<br />
<br />
When you do simulation, probably you also have dilemma "go to finer meshing or go to bigger number of iterations".<br />
<br />
By your experience, when you get better results, with finer mesh or with many many iterations??<br />
<br />
I use RF module, mostly just plane wave which radiate on glass - air interface (gold particles are on the glass).<br />
<br />
<br />
Thanks in advanced.<br />
<br />
<br />
Cheers,<br />
<br />
Stefan.Tue, 11 Dec 2012 08:32:51 +000033510.1355214771.92097Re: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92037
Hi<br />
<br />
check the Definition probe plots, and the solver nodes, "plot while solving" , for "all solver steps"<br />
<br />
--<br />
Good luck<br />
IvarMon, 10 Dec 2012 08:38:22 +000033510.1355128702.92037Re: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92034
<div class="quote"><br />
Hi<br />
<br />
the solver normally show a few conversion plots, these are labelled per step index, you must take a look at the plot tab to see at which wavelength it is at a given time. What is often more intersting is to see how the solution evolves, for this turn on the plot while solving in the solver tab<br />
<br />
Solver settings are very model dependent, I usually leave the default, and adapt only once it solves and that I believe I need more precision<br />
<br />
--<br />
Good luck<br />
Ivar<br />
</div><br />
<br />
Thank you very much Ivar on your response Ivar, but can you help about few things?<br />
<br />
Do you know how to follow evolving of solution? I also check "Generally default plots" and "Generally convergence plots" in "Study settings", but after end of simulation I don't know which commands to use to put all linear residuals and linear errors in some table, and I also don't know how to turn on plot in solver tab during the solving.<br />
<br />
<br />
Can you give me some short instruction?<br />
<br />
Thanks in advanced,<br />
<br />
Stefan.Mon, 10 Dec 2012 08:18:56 +000033510.1355127536.92034Re: Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92019
Hi<br />
<br />
the solver normally show a few conversion plots, these are labelled per step index, you must take a look at the plot tab to see at which wavelength it is at a given time. What is often more intersting is to see how the solution evolves, for this turn on the plot while solving in the solver tab<br />
<br />
Solver settings are very model dependent, I usually leave the default, and adapt only once it solves and that I believe I need more precision<br />
<br />
--<br />
Good luck<br />
IvarMon, 10 Dec 2012 05:49:53 +000033510.1355118593.92019Iteration solver, RF module, 4.2a
http://www.comsol.com/community/forums/general/thread/33510/#p92012
Dear Comsol Users,<br />
<br />
I have issue concerning iteration solver in RF Module, <br />
<br />
I want to follow during the simulations linear residual and linear error, because as you know, these values change for every wavelength during the simulation (in my case wavelength is parameter).<br />
<br />
My question is how to plot linear residual and linear error (I want to have wavelength on x axis and linear residual or linear error on y axis), and is that possible to plot it during the simulation, or just after it?<br />
<br />
<br />
And my second question, by your experience, what is good iteration number in these simulations (is 10 000 good enough)?<br />
<br />
<br />
Thank you very much on every help.<br />
<br />
<br />
Sun, 09 Dec 2012 12:52:52 +000033510.1355057572.92012