deepxde icon indicating copy to clipboard operation
deepxde copied to clipboard

convective boundary condition for Time-dependent heat diffusion equation

Open AJAXJR24 opened this issue 1 year ago • 3 comments

Dear @lululxvi I want to define a convective boundary condition for a time dependent heat diffusion equation. the boundary condition is kdT/dx=h(T-T_inf). How can I implement this? T_inf is a function of time and T is my final output. I tried to define it by RobinBC but it seems the Temperature remains constant over time. Thanks

AJAXJR24 avatar Jun 17 '23 05:06 AJAXJR24

time is your input, right? Then, define T_inf as a function of your input. Do not forget use tf functions if your backend is tf, such as tf.exp ...

tsarikahin avatar Jun 20 '23 14:06 tsarikahin

@tsarikahin Thanks for your response def func_conv(x,y): Tamb = 51.27781029*x[:,1:2]**6 - 135.54389704*x[:,1:2]**5 + 124.53193211*x[:,1:2]**4 - 46.15559865*x[:,1:2]**3 + 6.5535281*x[:,1:2]**2 - 0.24661724 * x[:,1:2] + 0.69538291 return h * x_max * (y[:,0:1]-Tamb)/kx is this ok or I must define it as tensorflow function and how?

AJAXJR24 avatar Jun 20 '23 14:06 AJAXJR24

Looks OK.

lululxvi avatar Jul 06 '23 18:07 lululxvi