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.
time dependent boundary conditions
Posted May 19, 2012, 5:46 p.m. EDT Heat Transfer & Phase Change Version 4.0 9 Replies
Please login with a confirmed email address before reporting spam
i am solving a time dependent heat transfer problem..
at the start ,for a rectangular domain boundaries 1 and 2 are insulated and 3 and 4 are assigned with constant temperature..
after some time t>100 my BC changes to all 1 2 3 and 4 boundaries insulated..
how can i do that
thanks in advance
pavan
Please login with a confirmed email address before reporting spam
I would say either you stop and change your BC manually and then continue, or you write out the full equations for your bondaries such that at the time limit your BC changes from T=cte to Isolated (no normal heat flow) ,the first case is far quicker, 2nd more interesting (but I do not have the equations ready like that needs some thoughts and validations ;)
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
I am successful with the first method...
I run the simulation for first 100 sec and manually change the BC and continue the simualation from 100 sec to 300sec
I got the correct solution
but ...if i want to run the simulation at a time t=1 :1:300
on 3 and 4 boundaries i set
1. Temp BC t=900*(t<100)
2. Flux BC q=0*(t>100)*(t<300)
but this yield a wrong result..
can you comment on it
thanks
pavan
Please login with a confirmed email address before reporting spam
if you define a flux and a fixed temperature on the same boundary these are in contradiction, as the temperature is stabilised by exchanging the correct amount of heat flux. So the flux cannot be =0 and #0 in the same time
So you need to wait to the shortly arriving 4.3 to use conditional BC selected by solver / study
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
I am using COMSOL 4.0. After defining all the parameters (kthS and kthL), finally wrote equation for kth inside variable. kth=kthS*(T<Ttrans)+kthL*(T>=Ttrans)
But I am getting this error message below. Can you please help me how to get rid of this error.
Failed to evaluate expression.
- Expression: d(d((-(mod1.ht.k effxx*mod1.Tx*test(mod1.Tx)+mod1.ht.k effyy*mod1.Ty*test(mod1.Ty))*mod1.ht.dz)*(dvol),{test@1}),mod1.Ty)
Failed to evaluate variable.
- Variable: mod1.ht.k effyy
- Defined as: mod1.ht.kyy
Failed to evaluate variable.
- Variable: mod1.ht.kyy
- Defined as: kth
Failed to evaluate variable.
- Variable: kth
- Defined as: (((T<Ttrans)*kthS)+(kthL*(T>=Ttrans)))
Failed to evaluate variable.
- Variable: T
- Geometry: 1
- Domain: 1
Thanks
Please login with a confirmed email address before reporting spam
it looks like it's missing first of all the variable "T" have you defined it ?
if not add it in as a Parameter
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Thanks for your quick reply. I am doing heat transfer analysis so "T" should be my output obtain after simulation and after certain value of "T" it will compare whether "T<Ttrans" if not then it supposed to switch to another condition "T>=Ttrans".
If I write kth=kthS+kthL inside variable instead of kth=kthS*(T<Ttrans)+kthL*(T>=Ttrans) in that case I am getting no error. Only I am getting error when introducing with the condition kth=kthS*(T<Ttrans)+kthL*(T>=Ttrans).
I have defined 'Ttrans" in parameter section but did not defined "T" because I supposed to get the value of "T" during simulation.
Can you please help me what changes I supposed to bring to get rid of this error.
Thanks
Please login with a confirmed email address before reporting spam
OK then its the if statement/ Boolean tests, that makes your function spiky and not smooth (non-continuous) this gives issues for the solver when it needs to cross the boundary. What about trying to use a smooted step function to define a smoother, continuous transition, mostly it helps.
Also the later versions have better default settings for the solvers
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Thanks for your valuable comments. I was able to fix the problem. But when I am exporting data as a text file then I am getting kind of random fashion data instead of regular one. Please find the attachment. I have saved data as a text file. Can you help me how I can get the regular data.
Thansk
Attachments:
Please login with a confirmed email address before reporting spam
Attachments:
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 How to Implement the Weak Form for Time-Dependent Equations
- BLOG Guidelines for Modeling Rotating Machines in 3D
- FORUM initial/boundary conditions set as step dependent
- KNOWLEDGE BASE Solving time dependent models with inconsistent initial values
- BLOG Protein Adsorption: Batch and Space-Dependent Modeling