Jeff Hiller
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
19 févr. 2020, 16:19 UTC−5
Updated:
5 years ago
19 févr. 2020, 17:25 UTC−5
Hello Tamer,
The Initial Values node is used to specify the initial conditions when solving time-dependent problems, or to provide an initial guess to the solver for stationary problems, so it does not do what you think it does.
If you want to practice using an Interpolation function, you could in postprocessing subtract the "re-imported" data from the solution (i.e. plot T-int1(x[1/m],y[1/m])), and you'll get zero within numerical accuracy.
Best,
Jeff
-------------------
Jeff Hiller
Hello Tamer,
The Initial Values node is used to specify the initial conditions when solving time-dependent problems, or to provide an initial guess to the solver for stationary problems, so it does not do what you think it does.
If you want to practice using an Interpolation function, you could in postprocessing subtract the "re-imported" data from the solution (i.e. plot T-int1(x[1/m],y[1/m])), and you'll get zero within numerical accuracy.
Best,
Jeff
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
20 févr. 2020, 09:07 UTC−5
Hi Jeff,
At first, my problem is solved (thanks so much). I found that I was passing wrong arguments to the interpolition function when it was called at the "Initial Values" node ==> it must be int1(x[1/m], y[1/m])). Moreover, I changed the study case to Time dependent instead of the stationary solver. Now, for short time steps, I can see the development of the solution, and at time=0 s, the thermal distribution of the system is what I expected (identical to the distribution of the intital value.)
As for what I thought, it was a wrong expectation/guess from me! For whatever reason that came to my mind at that time, I thought that if I put a closed/isolated system in some "thermal" intital condition (which is the imported T distribution from the txt file, in my case) it gonna stay stable, i.e. preserve its intital condition, forever. I forgot a very simple physics rule, that the "isolated" system will try to reach thermal equilibrium among its volume! So, solving for stationary case is not the right choice then!
Thanks once again,
Tamer
Hi Jeff,
At first, my problem is solved (thanks so much). I found that I was passing wrong arguments to the interpolition function when it was called at the "Initial Values" node ==> it must be int1(x[1/m], y[1/m])). Moreover, I changed the study case to Time dependent instead of the stationary solver. Now, for short time steps, I can see the development of the solution, and at time=0 s, the thermal distribution of the system is what I expected (identical to the distribution of the intital value.)
As for what I thought, it was a wrong expectation/guess from me! For whatever reason that came to my mind at that time, I thought that if I put a closed/isolated system in some "thermal" intital condition (which is the imported T distribution from the txt file, in my case) it gonna stay stable, i.e. preserve its intital condition, forever. I forgot a very simple physics rule, that the "isolated" system will try to reach thermal equilibrium among its volume! So, solving for stationary case is not the right choice then!
Thanks once again,
Tamer