Hey /sci/, I made a finite difference method heat transfer shape optimizer.
>>7920952
post code
>>7920965
It's really messy because I'm still doing lots of stuff to the code, but
The core program:
https://gist.github.com/anonymous/bf34a1014e9fa4317b22#file-optimizer-m
And the cavity remover:
https://gist.github.com/anonymous/bf34a1014e9fa4317b22#file-isvalid-m
Also have another pic.
You the same guy from /dpt/?
>>7921793
Yes.
Here's one I ran last night.
label your axes
>>7922649
You can't make me, mom
what are you doing? I get that you're solving 2d heat but what are you optimising? and what makes it optimal?
>20 to 20.0005
why is it discont. at the boundary?
>>7923483
I'm optimizing the shape of the cooling fins at the top in order to minimize the core temperature of the thermal system.
>>7923485
Heat generation is specified to only be one watt, but I don't make the rules.
>>7923488
The boundary conditions are specified to be convective heat transfer at 20C, so there's has to be a temperature difference [math]\theta[/math] in order for heat transfer to occur. Also there's different materials throughout the body, each with different thermal conductivities.