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.

How to use the temperature of one study into another study. correct method or not?

Please login with a confirmed email address before reporting spam

Dear all, I tried to couple the temperature of study1 into Study2 (study1 is heating, Study2 is cooling) it can not be done in 1 study because in study 2 we have also air cooling, and the time of study1 is unknown.
I first tried some simple things and it worked, can you specialists have a look to the method is it principally correct (physics not important in this topic)?


Step 1: make a global variable
Name: Starttemp
Expression: mod1.T
This will store all the temperatures on all places from study1 but on which times?

Step 2: calculate study 1

Step 3: add physics: (heat transfer in solids 2 (ht2))
Add study (un check the ht1 mode in the physics selection)

Step 4: Initial values in ht2
T2= Starttemp

Step 5: Dependent variables
General:
Defined study step: user defined

Initial values of variables solved for:
Method: Initial expression
Solution: Solver 1
Time: Automatic or last time step

Scaling
Method: Automatic

Values of variables not solved for
Method: Solution
Solution: Solver 1
Time: Automatic or last time step

Output
Keep solution: initial values

Step6: Run study 2

Step 7: take care by looking to the results: the temperature of study 2 is T2 not T

3 Replies Last Post Mar 28, 2012, 9:45 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 28, 2012, 6:00 a.m. EDT
the principal model is in attachment without solutions
the principal model is in attachment without solutions


Lechoslaw Krolikowski

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 28, 2012, 6:59 a.m. EDT
Hi,
For correct method see thread 16346 in this forum.
Best regards,
Andrzej
Hi, For correct method see thread 16346 in this forum. Best regards, Andrzej

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Mar 28, 2012, 9:45 a.m. EDT
www.comsol.dk/community/forums/general/thread/16346/

it is giving the same results.
But in the method mentioned in the link, you need to manually change the physics?
You can not choose heat transfer in solids and conjugated heat transfer in the solver?
This last point is intersting for me because then I don't need to change my model because of having different physics in the different studies?

Also I'm dealing some problems with finding back the boundary probes results from the first solver (it is always giving the results of the second solver (I used also different time steps to evaluate but also second time steps were taken)
http://www.comsol.dk/community/forums/general/thread/16346/ it is giving the same results. But in the method mentioned in the link, you need to manually change the physics? You can not choose heat transfer in solids and conjugated heat transfer in the solver? This last point is intersting for me because then I don't need to change my model because of having different physics in the different studies? Also I'm dealing some problems with finding back the boundary probes results from the first solver (it is always giving the results of the second solver (I used also different time steps to evaluate but also second time steps were taken)

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.