Hello Robin Kieser
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
29.10.2012, 14:17 GMT-4
I have the same question for what is likely a similar model. In my case I would like to sweep the voltage on a fixed geometry and see the change in particle trajectories.
My model is very similar to the "charged particle tracing in a quadrupole mass spectrometer" model in the gallery (#10653). The particle tracing calculation gets values for dependent variables from the previous electric field calculation, which was performed as a parametric sweep. Under the settings tab for the time dependent particle study, in the values of dependent variables section, there is the option to select a parameter value. The options are "automatic", "all", or each value of the swept voltage. Choosing automatic or all seems to give the same result as choosing the last value of the swept voltage. The results available coincide with the last voltage, and the calculation time and resources if I choose "all" are the same as choosing just the last parameter.
Initially this seemed like the obvious method for sweeping the particle tracing calculation, but clearly I'm wrong! Any ideas are appreciated, thanks!
I have the same question for what is likely a similar model. In my case I would like to sweep the voltage on a fixed geometry and see the change in particle trajectories.
My model is very similar to the "charged particle tracing in a quadrupole mass spectrometer" model in the gallery (#10653). The particle tracing calculation gets values for dependent variables from the previous electric field calculation, which was performed as a parametric sweep. Under the settings tab for the time dependent particle study, in the values of dependent variables section, there is the option to select a parameter value. The options are "automatic", "all", or each value of the swept voltage. Choosing automatic or all seems to give the same result as choosing the last value of the swept voltage. The results available coincide with the last voltage, and the calculation time and resources if I choose "all" are the same as choosing just the last parameter.
Initially this seemed like the obvious method for sweeping the particle tracing calculation, but clearly I'm wrong! Any ideas are appreciated, thanks!
Ivar KJELBERG
COMSOL Multiphysics(r) fan, retired, former "Senior Expert" at CSEM SA (CH)
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
30.10.2012, 02:31 GMT-4
Hi
I'm no longer sure how it is in 4.2 as I'm in 4.3a and there has been changes on the Parametric sweep methode. Now on can even sweep on "t" and use "t" to point into a time series solution and get the related initial conditions correctly from therein (not just the last one). In his case Im', solving a parametric sweep of a stationary solver in MEF, based on a time series CFD that gives me voleotitiy values U(t) for the MEF case. Hence making me get a "time solved MEF analysis. But I believe this did not work prior to 4.3a.
The easiest is to test out the parametreic sweep on some very simple "dummy" cases. I'm also often upsaet that I ned to test out but with COMSOl now there are so many combinations possible, it' difficult to describe all cases, as well as to find the correct combination. So I mostly test them out to get the logic of the linking i.e. initial conditions when and where for multiple coupled sepp solviers
--
Good luck
Ivar
Hi
I'm no longer sure how it is in 4.2 as I'm in 4.3a and there has been changes on the Parametric sweep methode. Now on can even sweep on "t" and use "t" to point into a time series solution and get the related initial conditions correctly from therein (not just the last one). In his case Im', solving a parametric sweep of a stationary solver in MEF, based on a time series CFD that gives me voleotitiy values U(t) for the MEF case. Hence making me get a "time solved MEF analysis. But I believe this did not work prior to 4.3a.
The easiest is to test out the parametreic sweep on some very simple "dummy" cases. I'm also often upsaet that I ned to test out but with COMSOl now there are so many combinations possible, it' difficult to describe all cases, as well as to find the correct combination. So I mostly test them out to get the logic of the linking i.e. initial conditions when and where for multiple coupled sepp solviers
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
09.11.2012, 16:39 GMT-5
Thank you for your suggestions. I made a very simple model in 4.3a, but I fear I am still struggling with the parametric sweep.
The model is two electrostatic lenses with charged particles flying between them. The electric field is calculated using Electrostatics physics and a stationary study. The charged particle trajectories are calculated with a time-dependent study that uses the ES solution for values for dependent variables.
If I sweep the value of the potential (called Udc) on a lens in the stationary ES study, the CPT study gives me an option to select one or all of the parameter values. This is shown in the attached screenshot. The CPT calculation is successful if I choose an individual parameter. However if I choose "All" from this menu, the calculation is only performed using the last parameter of the sweep in the ES study.
I am able to sweep Udc if I include the ES physics in the time-dependent calculation. However the calculation takes unreasonably long because it recalculates the electric field at every time step.
To me it seems like this drop down menu is the obvious selection for using the ES parameter sweep in the CPT calculation, but perhaps I am missing a necessary part of the procedure?
Thank you again for your suggestions.
Thank you for your suggestions. I made a very simple model in 4.3a, but I fear I am still struggling with the parametric sweep.
The model is two electrostatic lenses with charged particles flying between them. The electric field is calculated using Electrostatics physics and a stationary study. The charged particle trajectories are calculated with a time-dependent study that uses the ES solution for values for dependent variables.
If I sweep the value of the potential (called Udc) on a lens in the stationary ES study, the CPT study gives me an option to select one or all of the parameter values. This is shown in the attached screenshot. The CPT calculation is successful if I choose an individual parameter. However if I choose "All" from this menu, the calculation is only performed using the last parameter of the sweep in the ES study.
I am able to sweep Udc if I include the ES physics in the time-dependent calculation. However the calculation takes unreasonably long because it recalculates the electric field at every time step.
To me it seems like this drop down menu is the obvious selection for using the ES parameter sweep in the CPT calculation, but perhaps I am missing a necessary part of the procedure?
Thank you again for your suggestions.
Daniel Smith
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
09.11.2012, 16:47 GMT-5
Hi, you have to perform both study steps within the same study. To do this, remove study 2. Then right click on Study 1 and choose Study Steps>Time Dependent. If you regenerate the solver sequence on Study 1, the particle tracing will use the correct field values in the sweep.
Hi, you have to perform both study steps within the same study. To do this, remove study 2. Then right click on Study 1 and choose Study Steps>Time Dependent. If you regenerate the solver sequence on Study 1, the particle tracing will use the correct field values in the sweep.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
23.10.2013, 09:57 GMT-4
Hi, you have to perform both study steps within the same study. To do this, remove study 2. Then right click on Study 1 and choose Study Steps>Time Dependent. If you regenerate the solver sequence on Study 1, the particle tracing will use the correct field values in the sweep.
Hello,
If I understand well, the parametric study really recalculates the field at each parameter setting. For a simple voltage change (when the field solution simply scales with the voltage parameter) this is not necessary. Is there a simple way to quickly visualize charged particle trajectories at different field strengths?
Thank you
Daniel
[QUOTE]
Hi, you have to perform both study steps within the same study. To do this, remove study 2. Then right click on Study 1 and choose Study Steps>Time Dependent. If you regenerate the solver sequence on Study 1, the particle tracing will use the correct field values in the sweep.
[/QUOTE]
Hello,
If I understand well, the parametric study really recalculates the field at each parameter setting. For a simple voltage change (when the field solution simply scales with the voltage parameter) this is not necessary. Is there a simple way to quickly visualize charged particle trajectories at different field strengths?
Thank you
Daniel
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
17.08.2015, 09:58 GMT-4
Hi, you have to perform both study steps within the same study. To do this, remove study 2. Then right click on Study 1 and choose Study Steps>Time Dependent. If you regenerate the solver sequence on Study 1, the particle tracing will use the correct field values in the sweep.
I'm currently working in version 5.0 and I encounter the same problem (I'm changing electrode voltage and I'm interested in the trajectories of electrons of different energy. That means combining different parameter sweeps, but if I do this in two studies (electric field sweep in the first, the rest in the second), it does not pass the correct field, it only passes 1 field). Yes, I can solve the problem in 1 study, but doesn't that result in Comsol recalculating the electic field for every variation of parameters? Is it still not possible to do this in 2 studies, or am I mistaken in thinking Comsol recalculates the electric field too many times?
[QUOTE]
Hi, you have to perform both study steps within the same study. To do this, remove study 2. Then right click on Study 1 and choose Study Steps>Time Dependent. If you regenerate the solver sequence on Study 1, the particle tracing will use the correct field values in the sweep.
[/QUOTE]
I'm currently working in version 5.0 and I encounter the same problem (I'm changing electrode voltage and I'm interested in the trajectories of electrons of different energy. That means combining different parameter sweeps, but if I do this in two studies (electric field sweep in the first, the rest in the second), it does not pass the correct field, it only passes 1 field). Yes, I can solve the problem in 1 study, but doesn't that result in Comsol recalculating the electic field for every variation of parameters? Is it still not possible to do this in 2 studies, or am I mistaken in thinking Comsol recalculates the electric field too many times?