|
3D_Pinchout |
Top Previous Next |
|
{ This problem demonstrates the merging of extrusion surfaces and the 'Pinch-Out' of a layer. }
title '3D Layer Pinch-out Test'
coordinates cartesian3
variables Tp
definitions long = 1 wide = 1 K = 1 { thermal conductivity -- values supplied later } Q = 10*exp(-x^2-y^2-z^2) { Thermal source } z1 = 0 z2 z3 = 1
initial values Tp = 0.
equations div[k*grad(Tp)] + Q = 0 { the heat equation }
extrusion z = z1,z2,z3 { divide Z into two layers }
boundaries surface 1 value(Tp)=0 { fix bottom surface temp } surface 3 value(Tp)=0 { fix top surface temp }
Region 1 { define full domain boundary in base plane } z2 = 1 start(-wide,-wide) value(Tp) = 0 { fix all side temps } line to (wide,-wide) { walk outer boundary in base plane } to (wide,wide) to (-wide,wide) to close
Region 2 { overlay a second region in left half } z2 = 1 + x/2 layer 2 k=0.1 start(-wide,-wide) line to (0,-wide) { walk left half boundary in base plane } to (0,wide) to (-wide,wide) to close
monitors grid(x,z) on y=0
plots grid(x,z) on y=0 contour(Tp) on y=0 as "ZX Temp"
end |