Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Step function boundary condition: step occurs earlier than expected
Posted 2012/06/26 12:42 GMT-4 Version 4.2 10 Replies
Please login with a confirmed email address before reporting spam
The problem I am having is the heat flux begins to decrease earlier than what was programmed. The attached file shows a plot of the inward heat flux (which is exactly what was programmed) and the total heat flux. I found that I could fix this by decreasing the maximum time step. But for more complex models I can't decrease the time stepping due to the high computation time.
I am not looking to change my current model. Instead I would just like to know how Comsol determines a time dependent solution and why a large time step results in this change occurring earlier than expected.
-John
Attachments:
Please login with a confirmed email address before reporting spam
have you checked that your mesh is compatible with the gradients generated by a 0.1 sec abrupt temperature change ?, how many mesh elements are there across he heat front as it propagates ? Because you do not only have an earlier drop, but also an undershoot (numerical ?)
changin time stepping is one way, changing the mesh is another to cope with transient thermal effects
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
But again I am mainly just trying to understand what Comsol is actually doing. My guess is that instead of solving from a time of 0 sec to a time of 30 sec, Comsol is solving all time steps simultaneously. And therefore Comsol is trying to center the transition zone around 20 sec instead of starting the transition zone at 20 sec. But I don't know how Comsol obtains its solution, so I don't know if this explanation is correct.
-John
Please login with a confirmed email address before reporting spam
but if you are using the standard step() function it's value is 0.5 at the t=0 time, hence the transition starts at Dt/2 before t=0 and ends at Dt/2 after, where Dt is the transition time, try a plot of step1()
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
-John
Attachments:
Please login with a confirmed email address before reporting spam
I do not have any explanations, would need to understand more about the model and the set-up, but heat fluxes are not always the most precise. Have you read through theknowledge base articles on heat flux calculations and tip&tricks ? Take a look, that might give you a clue
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
COMSOL could be taking big time steps close to 20 seconds. For example if COMSOL solves at t=18 and then uses a step size of 2.0 then the next solution time will be t=20. If you request the results at t=19 it will be an interpolated result. You can check that from the Log tab. If that is the case restrict the maximum time step the solver can take to a smaller value.
Nagi Elabbasi
Veryst Engineering
Please login with a confirmed email address before reporting spam
-John
Please login with a confirmed email address before reporting spam
-John
Please login with a confirmed email address before reporting spam
your are right, it depends also on the settings of the time stepper, automatic, intermediate or strict (and perhaps some new things in 4., I3 havent had time to get there yet ;)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
-John
Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.
Suggested Content
- FORUM Magnetic Fields Lower Than Expected
 - BLOG Solving Nonlinear Static Finite Element Problems
 - KNOWLEDGE BASE Solving time dependent models with inconsistent initial values
 - BLOG Intro to Modeling Transient Heating of Solids in COMSOL Multiphysics®
 - FORUM Step function boundary condition: step occurs earlier than expected
 
