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 dependant heat flux at the boundary
Posted 13 set 2012, 05:29 GMT-4 11 Replies
Please login with a confirmed email address before reporting spam
I am trying to model 3D tissue. I wish to apply a time-dependent heat flux for one boundary. I have introduced an interpolation function under global definition. Basically, the function is a sin wave,i.e., f(t)=sin(wt). I am getting a smooth plot of the sine wave. The problem is that, I am unable to figure out the way to implement that heat flux to behave like a sin wave.
Thanking You
Arka
Please login with a confirmed email address before reporting spam
I do not really understand what you are missing, if you have a boundary heat flux condition and you write
P0[W/m^2]*sin(omega[1/s]*t) with a time dependent solver and omega some frequency value then you should see your system being influenced by the sinus excitation.
But do not forget that a time series solver is a transient type analysis, normally for a few periods, if you are interested in the steady state sinus exciatiaion response you should rather consider the frequency domain solvers (harmonic developments of the equations, see the Equation view
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
Actually I understand that the problem was with unit. I have considered omega a constant and comsol understand time,t in sec. But inside Sin function t should be [1/s], and that solves problem. Now it is working fine.
Kind Regards
Arka
Please login with a confirmed email address before reporting spam
It's always useful to check the units, as "t" is in seconds you can either write omega[1]*t[1/s] or omega[1/s]*t to get a unitless call for sinus(), but do not forget an orange unit "error" is a warning, COMSOl calculate anyhow, while red is an error and COMSOL will flag it and halt
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
I have another query. Regarding the temperature profile? Since I am irradiating the boundary using a sin wave. So, I am assuming that the temperature profile at the irradiated boundary should behave a similar nature like a wave. But I am getting temperature curve at a point on the boundary straight lines. It is not following a sin nature. I am using time step of 0.1 for time marching procedure. But I think the temperature profile is not taking all the time steps it is skipping certain points. It is showing irregular straight lines like it has skipped few points. I am not sure what is the problem.
Thanking You
Arka
Attachments:
Please login with a confirmed email address before reporting spam
indeed it looks like the time stepping is being too coarse, the thing is that by default COMSOL assumes a diffusion type model decay, so when you have a periodic BC you must tweak a little the time stepping settings.
Use rather an intermediate or a strict time stepping (and not the default automatic for periodic BC conditions) then be sure you define enough time steps per periode, 5 as absolute mnimum 10 or more is better (it all depends on the time you ant to wait for the solution ...
Thne you can also consider a gen-alpha, in case of converging issues
--
Good luck
Ivar
Please login with a confirmed email address before reporting spam
I have the same problem as you. I want to define a SIN Temperature for the comsol but i can not define it very well. Would you please help me and tell me that how did you define a Time dependant heat for the software?
Best Regards
Please login with a confirmed email address before reporting spam
I have a similar problem. I have to set my convective heat flux depending how much time as passed.
For example;
Time (s) 0-500 set h=10
Time 501-1000 set h=20
Time 1001-1500 set h=35
Time 1501-2000 set h=15
How do I covert this into a IF statement to insert into the "Convective heat flux" field ?
Thanks,
Please login with a confirmed email address before reporting spam
Make a piecewise function, say pw1, and call it then pw1(t). See attachment.
Lasse
Attachments:
Please login with a confirmed email address before reporting spam
I have done the piecewise function, but how are you plotting that graph with h as a function of t?
When I plot the graph I don't get any labels at all.
Thank you,
Hi
Make a piecewise function, say pw1, and call it then pw1(t). See attachment.
Lasse
Please login with a confirmed email address before reporting spam
Please login with a confirmed email address before reporting spam
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.