Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
26 avr. 2012, 22:14 UTC−4
don't know if this can help: http://www.comsol.com/community/forums/general/thread/23511/
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
27 avr. 2012, 12:30 UTC−4
don't know if this can help: www.comsol.com/community/forums/general/thread/23511/
Thanks for providing the link.
Actually we need to use the variable of time steps in the expression of comsol. But we don`t know the name of ime step in comsol. Could you please give an answer by more specifically?
[QUOTE]
don't know if this can help: http://www.comsol.com/community/forums/general/thread/23511/
[/QUOTE]
Thanks for providing the link.
Actually we need to use the variable of time steps in the expression of comsol. But we don`t know the name of ime step in comsol. Could you please give an answer by more specifically?
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
27 avr. 2012, 12:35 UTC−4
I only use 'timestep' in the stop condition of my time-dependent solver. I never used it elsewhere. Now it's your turn to see if you can use it in expressions elsewhere!
But I would guess that you need to use a time-discrete solver and the 'prev' operator in order to use the previous timestep? This is just some thoughts, I never tried that.
Keep us informed if it works!
Cheers
I only use 'timestep' in the stop condition of my time-dependent solver. I never used it elsewhere. Now it's your turn to see if you can use it in expressions elsewhere!
But I would guess that you need to use a time-discrete solver and the 'prev' operator in order to use the previous timestep? This is just some thoughts, I never tried that.
Keep us informed if it works!
Cheers
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
27 avr. 2012, 16:43 UTC−4
Hi
Check carefully the doc, several of the operators and variables are only "postprocessing" variables, not defined during solving. But I do not know exactly which one you are looking for, so far I have not interfered with the solveing process in that way ;)
--
Good luck
Ivar
Hi
Check carefully the doc, several of the operators and variables are only "postprocessing" variables, not defined during solving. But I do not know exactly which one you are looking for, so far I have not interfered with the solveing process in that way ;)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
27 avr. 2012, 16:53 UTC−4
Hi Ivar,
I had not looked at the doc for the 'prev' operator before my last post. I read it after your post and it specifically talks about the use of 'timestep' with the 'prev' operator. Siyad, I think that there is definitely hope for your problem!
Hi Ivar,
I had not looked at the doc for the 'prev' operator before my last post. I read it after your post and it specifically talks about the use of 'timestep' with the 'prev' operator. Siyad, I think that there is definitely hope for your problem!
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
28 avr. 2012, 05:44 UTC−4
Hi
you are right that operator is also valid during solvin (be aware not all operators can be used during solving, good to knw) ;)
see COMSOL Users Guidev4.2 p. 119
The expression prev(expr, i) evaluates expr using the solution obtained i time
steps before the current time step.
• The operator can be used in equations as well as for results evaluation.
.....
--
Good luck
Ivar
Hi
you are right that operator is also valid during solvin (be aware not all operators can be used during solving, good to knw) ;)
see COMSOL Users Guidev4.2 p. 119
The expression prev(expr, i) evaluates expr using the solution obtained i time
steps before the current time step.
• The operator can be used in equations as well as for results evaluation.
.....
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
3 mai 2012, 06:42 UTC−4
Is there any new insight regarding this subject? I also would like to know the actual name of the variable in COMSOL that defines the time step during calculations.
I need the actual COMSOL system time step to turn newly calculated concentrations per element into rates.
[(c_1-c_1_new)/delta_t=mol/m^3*s]
If I use strict timestepping I can define a stepsize myself, but this means I lose the advantage of automatically smaller timesteps when gradients are steep and such and big timesteps when calculations are easy and stable.
So, does anyone know what the name is or how to tackle this?
Thanks in advance,
Ray
Is there any new insight regarding this subject? I also would like to know the actual name of the variable in COMSOL that defines the time step during calculations.
I need the actual COMSOL system time step to turn newly calculated concentrations per element into rates.
[(c_1-c_1_new)/delta_t=mol/m^3*s]
If I use strict timestepping I can define a stepsize myself, but this means I lose the advantage of automatically smaller timesteps when gradients are steep and such and big timesteps when calculations are easy and stable.
So, does anyone know what the name is or how to tackle this?
Thanks in advance,
Ray
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
3 mai 2012, 07:44 UTC−4
Hi
have you tried "timestep" ? see page CM Users Guide p119 there are more info there
--
Good luck
Ivar
Hi
have you tried "timestep" ? see page CM Users Guide p119 there are more info there
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
3 mai 2012, 09:00 UTC−4
Hi
have you tried "timestep" ? see page CM Users Guide p119 there are more info there
--
Good luck
Ivar
'
Hi,
are you sure it's page 119? My page 119 is titled: ''Example of importing a file data source into a parameter table''..
Also; 'timestep' seemed to be the most obvious name so I did indeed try that. (actually I tried plotting the timestep of a done simulation to see if it is a valid name). Unfortunately COMSOL does not seem to recognize 'timestep' as a valid variable (it does give it the right unit [s], but I am unable to plot it.
The convergence plot is 1/timestep if I am correct, so it must be possible right? It does exist somewhere.
If you could find the right page I would be interested :)
Thanks!
Ray
[QUOTE]
Hi
have you tried "timestep" ? see page CM Users Guide p119 there are more info there
--
Good luck
Ivar
[/QUOTE]'
Hi,
are you sure it's page 119? My page 119 is titled: ''Example of importing a file data source into a parameter table''..
Also; 'timestep' seemed to be the most obvious name so I did indeed try that. (actually I tried plotting the timestep of a done simulation to see if it is a valid name). Unfortunately COMSOL does not seem to recognize 'timestep' as a valid variable (it does give it the right unit [s], but I am unable to plot it.
The convergence plot is 1/timestep if I am correct, so it must be possible right? It does exist somewhere.
If you could find the right page I would be interested :)
Thanks!
Ray
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
3 mai 2012, 09:10 UTC−4
Hi Raymond,
Yes it's at p.119 of Comsol Multiphysics User's Guide Version 4.2a. If you have a different guide, it's under Global and Local Definitions\Operators, Functions, and Variables Reference\Special Operators\The Prev Operator.
Have you tried plotting timestep after solving with a time-discrete solver? Maybe it needs that type of solver in order to store the values...? Just a guess.
Hi Raymond,
Yes it's at p.119 of Comsol Multiphysics User's Guide Version 4.2a. If you have a different guide, it's under Global and Local Definitions\Operators, Functions, and Variables Reference\Special Operators\The Prev Operator.
Have you tried plotting timestep after solving with a time-discrete solver? Maybe it needs that type of solver in order to store the values...? Just a guess.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
3 mai 2012, 10:28 UTC−4
Hi Raymond,
Yes it's at p.119 of Comsol Multiphysics User's Guide Version 4.2a. If you have a different guide, it's under Global and Local Definitions\Operators, Functions, and Variables Reference\Special Operators\The Prev Operator.
Have you tried plotting timestep after solving with a time-discrete solver? Maybe it needs that type of solver in order to store the values...? Just a guess.
Hi Francois,
I see it now, I was looking in 4.1 manual ;)
If I use BDF timestepping, isn't time discretized per se? I ran the sim using BDF time stepping and it did not give results for 'timestep' (although 'timestep' is indeed mentioned under 'prev' in the manual).
Did I miss something?
Kind regards,
Ray
[QUOTE]
Hi Raymond,
Yes it's at p.119 of Comsol Multiphysics User's Guide Version 4.2a. If you have a different guide, it's under Global and Local Definitions\Operators, Functions, and Variables Reference\Special Operators\The Prev Operator.
Have you tried plotting timestep after solving with a time-discrete solver? Maybe it needs that type of solver in order to store the values...? Just a guess.
[/QUOTE]
Hi Francois,
I see it now, I was looking in 4.1 manual ;)
If I use BDF timestepping, isn't time discretized per se? I ran the sim using BDF time stepping and it did not give results for 'timestep' (although 'timestep' is indeed mentioned under 'prev' in the manual).
Did I miss something?
Kind regards,
Ray
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
3 mai 2012, 10:45 UTC−4
Hi
sorry that you didnt find it quickly, but COMSOl has so many pages of doc, and I only keep the latest one.
One thing I do index the pdf files then its easier to find your way, you "just" search for "timestep"
--
Good luck
Ivar
Hi
sorry that you didnt find it quickly, but COMSOl has so many pages of doc, and I only keep the latest one.
One thing I do index the pdf files then its easier to find your way, you "just" search for "timestep"
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
4 mai 2012, 04:57 UTC−4
I use BDF time stepping, so that means time is discretized right? If 'timestep' is indeed the right name for this variable, and COMSOL does indeed give the right unit when putting is in a plot, why can't I plot the timestep?
Any ideas at all?
Kind regards,
Ray
I use BDF time stepping, so that means time is discretized right? If 'timestep' is indeed the right name for this variable, and COMSOL does indeed give the right unit when putting is in a plot, why can't I plot the timestep?
Any ideas at all?
Kind regards,
Ray
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
4 mai 2012, 15:55 UTC−4
Hi
I tried a few things but I cannot get the" timestep" variable to be dumpedout. COMSOL does recognise the name and unitsthough .
I believe you should use a time-discrete solve (not BDF or Gen-alphar, but I had not moresuccess with this solver method
--
Good luck
Ivar
Hi
I tried a few things but I cannot get the" timestep" variable to be dumpedout. COMSOL does recognise the name and unitsthough .
I believe you should use a time-discrete solve (not BDF or Gen-alphar, but I had not moresuccess with this solver method
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
7 mai 2012, 06:54 UTC−4
How do I use a time discrete solver? Because I seem to be unable to find it..?
Am I still able to solve all my 'regular' equations with this?
Please advise. Thanks and kind regards,
Ray
How do I use a time discrete solver? Because I seem to be unable to find it..?
Am I still able to solve all my 'regular' equations with this?
Please advise. Thanks and kind regards,
Ray
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
7 mai 2012, 14:22 UTC−4
Hi
check the doc (run an indexer over your pdf files it helps to fnd your way therein ;) there are so many combinations, impossible to say without studying in detail each case.
You have the standard predefined solvers wehn you set up your physics the first time you open a new file, but you can always add all sort of solver nodes to a main Study node, but it's up to you to know it they make any sens w.r.t your model and your need
--
Good luck
Ivar
Hi
check the doc (run an indexer over your pdf files it helps to fnd your way therein ;) there are so many combinations, impossible to say without studying in detail each case.
You have the standard predefined solvers wehn you set up your physics the first time you open a new file, but you can always add all sort of solver nodes to a main Study node, but it's up to you to know it they make any sens w.r.t your model and your need
--
Good luck
Ivar
Andrew Prudil
Nuclear Materials
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
5 juil. 2013, 11:49 UTC−4
I case anyone comes across this post looking for the interal time-step size variable in comsol:
The 'timestep' variable appears to be defined only during solution but not stored. For example, you can actually access it via probe (which will populate a table during solution) but during post processing you can't use it. As a simple work around I simply maded a dependent variable equal to it (with a very large tolerance). Now I have the step size variable in a form that can be used for post processing.
I case anyone comes across this post looking for the interal time-step size variable in comsol:
The 'timestep' variable appears to be defined only during solution but not stored. For example, you can actually access it via probe (which will populate a table during solution) but during post processing you can't use it. As a simple work around I simply maded a dependent variable equal to it (with a very large tolerance). Now I have the step size variable in a form that can be used for post processing.
Please login with a confirmed email address before reporting spam
Posted:
9 years ago
29 avr. 2016, 04:54 UTC−4
Hi
you are right that operator is also valid during solvin (be aware not all operators can be used during solving, good to knw) ;)
see COMSOL Users Guidev4.2 p. 119
The expression prev(expr, i) evaluates expr using the solution obtained i time
steps before the current time step.
• The operator can be used in equations as well as for results evaluation.
.....
--
Good luck
Ivar
Hi,
thanks for this answer I have similar problem and this solution seems to be working. But I have one more problem. Using it for Temperature in previous time step - prev(T,1) I got the answer that the previous time step is not stored. What is bad? Thank you.
Pavel
[QUOTE]
Hi
you are right that operator is also valid during solvin (be aware not all operators can be used during solving, good to knw) ;)
see COMSOL Users Guidev4.2 p. 119
The expression prev(expr, i) evaluates expr using the solution obtained i time
steps before the current time step.
• The operator can be used in equations as well as for results evaluation.
.....
--
Good luck
Ivar
[/QUOTE]
Hi,
thanks for this answer I have similar problem and this solution seems to be working. But I have one more problem. Using it for Temperature in previous time step - prev(T,1) I got the answer that the previous time step is not stored. What is bad? Thank you.
Pavel