%% FEATool Multiphysics Version 1.12.5, Build 20.10.289, Model M-Script file.
%% Created on 15-Oct-2020 20:16:23 with MATLAB 9.8.0.1359463 (R2020a) Update 1 PCWIN64.


%% Starting new model.
fea.sdim = { 'x', 'y', 'z' };
fea.geom = struct;
fea = addphys( fea, @conductivemediadc, { 'V' } );

%% Geometry operations.
del_gobj = fea.geom.objects{1};
fea.geom.objects([1]) = [];
fea.geom = geom_update_tags( fea.geom );
fea = geom_apply_transformation( fea, 'TF1', [ 0  0  0 ], [ 1  1  100 ], 0, [ 1  0  0 ], [2.17432e-05  0.100018  0.0005], true );
fea.geom = geom_revert_object( fea.geom, 'TF2' );
fea = geom_apply_transformation( fea, 'TF1', [ 0  0  0 ], [ 1  1  10], 0, [ 1  0  0 ], [2.17432e-05  0.100018  0.0005], true );
gobj = gobj_block( [0], [1], [0], [1], [0], [1], 'B1' );
fea = geom_add_gobj( fea, gobj );
fea = geom_apply_transformation( fea, 'B1', [-.5 -.5 -.5 ], [ 1  1  1 ], 0, [ 1  0  0 ], [0.5  0.5  0.5], true );

%% Grid operations.
fea.grid = gridgen( fea, 'gridgen', 'gmsh', 'hmax', 0.083, 'nsm', 25 );

