Open Harmon9802 opened 10 months ago
Please check the thermal_diffusion branch, where more general thermal dynamics equations are solved.
@DrChiZhang could you make a pull request if you think the changes are done?
@DrChiZhang could you make a pull request if you think the changes are done?
Sure, I will try to merge master to this branch first.
Describe the bug The right hand side of diffusiondt algorithm in all of diffusion types (Inner, Robin, etc. ) only calculate the rate of heat flow per unit volume (W/m3), we need to multiply a particle volume term to get heat flow (W), then we can use it for heat flux calculation.
Trace to the source Steps to trace the source:
Modified algorithm The modified diffusion_dt_m should be: diffusion_dt_m = diffusiondt * particle_volume
Additional context However, this bug does not effect the final temperature field calculation, it is only useful if we want to calculate overall heat flow instead of volumetric heat flow.