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.
Temperature condition depending on time
Posted Mar 30, 2010, 5:24 a.m. EDT 5 Replies
Please login with a confirmed email address before reporting spam
I would like to know if it is possible to force the temperature of a subdomain with values depending on time (convection and conduction module).
Thanks
Please login with a confirmed email address before reporting spam
yes why not, but to solve with respect to time "t" (default time variable in COMSOL) you must use "physics - transient" as equation mode, depending on what you are doing you will see the equations being updated and the time derivative appear.
Then it's up to you to define the way the BC changes with time, either as function of the time, with a predefined "function" or with na bolean condition T = T0*(t<t1)+T1*(t>=t1). But note that abrupt steps might give some difficulties to the solver so smoohing the steps are often recommended, you can use the heaviside functions (do a search on "flc" on your doc, or go directly to the "command.pdf" for the function description, but will find examples in the other docs.
Note that "t" is not defined if you are changing the solving mode i.e. to stationary, so you must update your BC equations.
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Thanks
Please login with a confirmed email address before reporting spam
There are probably a couple of way around. If you insist on changing the temperature, for a restart, I would save the solution and export it to matlab and adapt the initial temperature where needed and restart.
Now to get that to flow nicely, it's better to pilot it fully from Matlab.
But, my second question/comment would be why change the temperature ?
is it not possible to say that you have an energy increase of the type volumic power input Q(t)[W/m^3] and you pilot your model energy, which is the basic physicsal value we balancing and are solving for ?
Good luck
Ivar
Please login with a confirmed email address before reporting spam
thanks
Please login with a confirmed email address before reporting spam
you should read through the transient solver settings in the doc, and do a couple of exercices related, the importance is how you set the time step in the definition of "t" time (I usually use 3-5 points per steep slopes, with different time steps in different regions, but always a monotoneous time sequence.
Then I ususally leave the rest as default, leaving COMSOL to decide on intermediate points etc, but these settings might also be required to tweak, specially with short pulses.
Good luck
Ivar
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
- BLOG Using Discontinuous Meshes for Conjugate Heat Transfer Modeling
- FORUM Temperature difference boundary condition
- KNOWLEDGE BASE Solving Models with Step Changes to Loads in Time
- KNOWLEDGE BASE Improving Convergence of Nonlinear Stationary Models
- BLOG Implementing a Thermostat with the Events Interface