Skip to content
Snippets Groups Projects
Topology Optimization 3D.ipynb 972 KiB
Newer Older
Amira Abdel-Rahman's avatar
Amira Abdel-Rahman committed
       "<path clip-path=\"url(#clip3902)\" d=\"M640.77 513.318 L640.77 545.318 L672.77 545.318 L672.77 513.318 L640.77 513.318 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M670.856 491.81 L670.856 523.81 L702.856 523.81 L702.856 491.81 L670.856 491.81 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M700.943 470.302 L700.943 502.302 L732.943 502.302 L732.943 470.302 L700.943 470.302 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M731.03 448.793 L731.03 480.793 L763.03 480.793 L763.03 448.793 L731.03 448.793 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M704.782 496.477 L704.782 528.477 L736.782 528.477 L736.782 496.477 L704.782 496.477 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M734.869 474.969 L734.869 506.969 L766.869 506.969 L766.869 474.969 L734.869 474.969 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M764.956 453.461 L764.956 485.461 L796.956 485.461 L796.956 453.461 L764.956 453.461 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M738.708 501.145 L738.708 533.145 L770.708 533.145 L770.708 501.145 L738.708 501.145 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M768.795 479.637 L768.795 511.637 L800.795 511.637 L800.795 479.637 L768.795 479.637 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M798.882 458.128 L798.882 490.128 L830.882 490.128 L830.882 458.128 L798.882 458.128 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M802.721 484.304 L802.721 516.304 L834.721 516.304 L834.721 484.304 L802.721 484.304 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M832.808 462.796 L832.808 494.796 L864.808 494.796 L864.808 462.796 L832.808 462.796 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M569.078 444.619 L569.078 476.619 L601.078 476.619 L601.078 444.619 L569.078 444.619 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M599.165 423.111 L599.165 455.111 L631.165 455.111 L631.165 423.111 L599.165 423.111 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M629.251 401.602 L629.251 433.602 L661.251 433.602 L661.251 401.602 L629.251 401.602 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M542.831 492.303 L542.831 524.303 L574.831 524.303 L574.831 492.303 L542.831 492.303 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M572.918 470.795 L572.918 502.795 L604.918 502.795 L604.918 470.795 L572.918 470.795 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M603.004 449.286 L603.004 481.286 L635.004 481.286 L635.004 449.286 L603.004 449.286 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M633.091 427.778 L633.091 459.778 L665.091 459.778 L665.091 427.778 L633.091 427.778 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M663.177 406.27 L663.177 438.27 L695.177 438.27 L695.177 406.27 L663.177 406.27 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M576.757 496.97 L576.757 528.97 L608.757 528.97 L608.757 496.97 L576.757 496.97 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M606.844 475.462 L606.844 507.462 L638.844 507.462 L638.844 475.462 L606.844 475.462 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M636.93 453.954 L636.93 485.954 L668.93 485.954 L668.93 453.954 L636.93 453.954 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M667.017 432.446 L667.017 464.446 L699.017 464.446 L699.017 432.446 L667.017 432.446 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M697.103 410.937 L697.103 442.937 L729.103 442.937 L729.103 410.937 L697.103 410.937 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M610.683 501.638 L610.683 533.638 L642.683 533.638 L642.683 501.638 L610.683 501.638 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M640.77 480.13 L640.77 512.13 L672.77 512.13 L672.77 480.13 L640.77 480.13 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M670.856 458.621 L670.856 490.621 L702.856 490.621 L702.856 458.621 L670.856 458.621 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M700.943 437.113 L700.943 469.113 L732.943 469.113 L732.943 437.113 L700.943 437.113 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M731.03 415.605 L731.03 447.605 L763.03 447.605 L763.03 415.605 L731.03 415.605 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M704.782 463.289 L704.782 495.289 L736.782 495.289 L736.782 463.289 L704.782 463.289 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M734.869 441.781 L734.869 473.781 L766.869 473.781 L766.869 441.781 L734.869 441.781 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M764.956 420.272 L764.956 452.272 L796.956 452.272 L796.956 420.272 L764.956 420.272 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M768.795 446.448 L768.795 478.448 L800.795 478.448 L800.795 446.448 L768.795 446.448 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M569.078 411.431 L569.078 443.431 L601.078 443.431 L601.078 411.431 L569.078 411.431 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M599.165 389.922 L599.165 421.922 L631.165 421.922 L631.165 389.922 L599.165 389.922 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M629.251 368.414 L629.251 400.414 L661.251 400.414 L661.251 368.414 L629.251 368.414 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M542.831 459.115 L542.831 491.115 L574.831 491.115 L574.831 459.115 L542.831 459.115 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M572.918 437.606 L572.918 469.606 L604.918 469.606 L604.918 437.606 L572.918 437.606 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M603.004 416.098 L603.004 448.098 L635.004 448.098 L635.004 416.098 L603.004 416.098 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M633.091 394.59 L633.091 426.59 L665.091 426.59 L665.091 394.59 L633.091 394.59 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M663.177 373.082 L663.177 405.082 L695.177 405.082 L695.177 373.082 L663.177 373.082 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M576.757 463.782 L576.757 495.782 L608.757 495.782 L608.757 463.782 L576.757 463.782 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M606.844 442.274 L606.844 474.274 L638.844 474.274 L638.844 442.274 L606.844 442.274 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M636.93 420.766 L636.93 452.766 L668.93 452.766 L668.93 420.766 L636.93 420.766 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M667.017 399.257 L667.017 431.257 L699.017 431.257 L699.017 399.257 L667.017 399.257 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M697.103 377.749 L697.103 409.749 L729.103 409.749 L729.103 377.749 L697.103 377.749 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M610.683 468.45 L610.683 500.45 L642.683 500.45 L642.683 468.45 L610.683 468.45 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M640.77 446.941 L640.77 478.941 L672.77 478.941 L672.77 446.941 L640.77 446.941 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M670.856 425.433 L670.856 457.433 L702.856 457.433 L702.856 425.433 L670.856 425.433 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M700.943 403.925 L700.943 435.925 L732.943 435.925 L732.943 403.925 L700.943 403.925 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M731.03 382.417 L731.03 414.417 L763.03 414.417 L763.03 382.417 L731.03 382.417 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M734.869 408.592 L734.869 440.592 L766.869 440.592 L766.869 408.592 L734.869 408.592 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M569.078 378.242 L569.078 410.242 L601.078 410.242 L601.078 378.242 L569.078 378.242 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M599.165 356.734 L599.165 388.734 L631.165 388.734 L631.165 356.734 L599.165 356.734 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M629.251 335.226 L629.251 367.226 L661.251 367.226 L661.251 335.226 L629.251 335.226 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M603.004 382.91 L603.004 414.91 L635.004 414.91 L635.004 382.91 L603.004 382.91 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M633.091 361.401 L633.091 393.401 L665.091 393.401 L665.091 361.401 L633.091 361.401 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M663.177 339.893 L663.177 371.893 L695.177 371.893 L695.177 339.893 L663.177 339.893 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M636.93 387.577 L636.93 419.577 L668.93 419.577 L668.93 387.577 L636.93 387.577 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M667.017 366.069 L667.017 398.069 L699.017 398.069 L699.017 366.069 L667.017 366.069 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M697.103 344.561 L697.103 376.561 L729.103 376.561 L729.103 344.561 L697.103 344.561 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M700.943 370.736 L700.943 402.736 L732.943 402.736 L732.943 370.736 L700.943 370.736 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M731.03 349.228 L731.03 381.228 L763.03 381.228 L763.03 349.228 L731.03 349.228 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M569.078 345.054 L569.078 377.054 L601.078 377.054 L601.078 345.054 L569.078 345.054 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M599.165 323.546 L599.165 355.546 L631.165 355.546 L631.165 323.546 L599.165 323.546 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M629.251 302.037 L629.251 334.037 L661.251 334.037 L661.251 302.037 L629.251 302.037 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M603.004 349.721 L603.004 381.721 L635.004 381.721 L635.004 349.721 L603.004 349.721 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M633.091 328.213 L633.091 360.213 L665.091 360.213 L665.091 328.213 L633.091 328.213 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M663.177 306.705 L663.177 338.705 L695.177 338.705 L695.177 306.705 L663.177 306.705 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M667.017 332.881 L667.017 364.881 L699.017 364.881 L699.017 332.881 L667.017 332.881 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "<path clip-path=\"url(#clip3902)\" d=\"M697.103 311.372 L697.103 343.372 L729.103 343.372 L729.103 311.372 L697.103 311.372 Z\" fill=\"#000000\" fill-rule=\"evenodd\" fill-opacity=\"0.6\" stroke=\"none\"/>\n",
       "</svg>\n"
      ]
     },
     "execution_count": 266,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# m= Matlab.meshgrid(1:nelx,1:nely,1:nelz)# Coordinates\n",
    "# scatter(m[1],m[2],m[3])\n",
    "ix=[]\n",
    "iy=[]\n",
    "iz=[]\n",
    "for j in 1:nely\n",
    "    for i in 1:nelx\n",
    "        for k in 1:nelz\n",
    "            if(xPhysC[j,i,k]>0.0)\n",
    "                append!(ix,i)\n",
    "                append!(iy,j)\n",
    "                append!(iz,k)\n",
    "            end\n",
    "        end\n",
    "    end\n",
    "end\n",
    "# r = 4.0\n",
    "# lim = FRect3D((-4,-4,-4*r),(8,8,8*r))\n",
    "scatter(ix,iz,iy,color=\"black\",label=\"\",markersize =4, aspect_ratio=:equal,markerstrokealpha = 0.2,markeralpha = 0.6,markershape = :square,camera = (30, 60))#,markershape = :square"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "@webio": {
   "lastCommId": null,
   "lastKernelId": null
  },
  "kernelspec": {
   "display_name": "Julia 1.2.0",
   "language": "julia",
   "name": "julia-1.2"
  },
  "language_info": {
   "file_extension": ".jl",
   "mimetype": "application/julia",
   "name": "julia",
   "version": "1.2.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}