Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchauveau committed Sep 2, 2024
1 parent 8578329 commit af42774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Simulate.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
mu = options.T_latent;
sigma = 5;
A = options.latent_heat/sqrt(2*pi*sigma^2);
specific_heat_material=@(location,state) A*exp(-((state.u-mu).^2)/sigma^2)+options.cavities_material.cp;
specific_heat_material=@(location,state) A*exp(-((state.u-mu).^2)/sigma^2)+options.material.cp;
specific_heat_cavity=@(location,state) A*exp(-((state.u-mu).^2)/sigma^2)+options.cavities_material.cp;
elseif options.latent_heat == 0
specific_heat_material=options.cavities_material.cp;
specific_heat_material=options.material.cp;
specific_heat_cavity=options.cavities_material.cp;
else
error("Latent heat; must define 'latent_heat' and 'Tlatent'.");
Expand Down

0 comments on commit af42774

Please sign in to comment.