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.
Depth-dependent temperature as initial values
Posted 13 ott 2022, 14:39 GMT-4 2 Replies
Please login with a confirmed email address before reporting spam
Hi, I am pretty new to COMSOL, so this is probably a noob question. But I did scour the internet looking for an answer before posting here.
I am running the 'heat transfer in solid' routine on a simple 2-D geometry. I want the the temperature of the geometry to increase with the Y-axis as my initial value. I have written a simple equation under global definitions to do this.
Let's say the equation called an1 is '20Y', so with every 1 unit of Y, I want the temperature to increase by 20 K. I can plot this under the global definition module and it looks fine.
My question is how do I use this as an initial value. I have defined the Y-extent of my geometry by the parameter 'Tc = 5[m]'. I have 'Temperature' as one of the boundary condition. Under Temperature -> User defined, I have the following equation an1(Tc[m]), but this does not calculate the depth-dependent temperature, but rather imposes a value of 20*5 = 100 K for the entire domain.
Any help is appreciated.