Skip to content
Snippets Groups Projects
Voxel Designer (Truss).ipynb 7.86 MiB
Newer Older
  • Learn to ignore specific revisions
  •        "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1701.64,528.97 1677.55,209.506 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,469.051 1891.9,222.497 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,469.051 2082.16,409.131 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,469.051 2082.16,162.578 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#000000; stroke-width:12; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,469.051 2082.16,655.684 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#00ff00; stroke-width:12; stroke-opacity:1; fill:none\" points=\"\n",
           "  1819.56,478.179 2016.5,660.691 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,469.051 1867.81,396.14 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,469.051 1867.81,642.693 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,469.051 1867.81,149.586 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#000000; stroke-width:12; stroke-opacity:1; fill:none\" points=\"\n",
           "  2082.16,409.131 2082.16,162.578 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#00ff00; stroke-width:12; stroke-opacity:1; fill:none\" points=\"\n",
           "  2006.57,415.465 1980.75,168.824 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1321.11,402.256 1511.37,342.336 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1321.11,402.256 1511.37,588.889 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1321.11,402.256 1297.02,329.345 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1321.11,402.256 1297.02,575.898 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1511.37,342.336 1701.64,282.417 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1511.37,342.336 1701.64,528.97 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1511.37,342.336 1487.28,269.425 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1511.37,342.336 1487.28,515.978 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1701.64,282.417 1891.9,222.497 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#000000; stroke-width:12; stroke-opacity:1; fill:none\" points=\"\n",
           "  1701.64,282.417 1891.9,469.051 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#00ff00; stroke-width:12; stroke-opacity:1; fill:none\" points=\"\n",
           "  1602.68,301.919 1819.56,478.179 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1701.64,282.417 1677.55,209.506 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1701.64,282.417 1677.55,456.059 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,222.497 2082.16,162.578 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,222.497 2082.16,409.131 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,222.497 1867.81,149.586 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
    
           "<polyline clip-path=\"url(#clip2802)\" style=\"stroke:#ffffff; stroke-width:0; stroke-opacity:1; fill:none\" points=\"\n",
           "  1891.9,222.497 1867.81,396.14 \n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
           "  \"/>\n",
           "</svg>\n"
          ]
         },
         "metadata": {},
         "output_type": "display_data"
        },
        {
         "data": {
          "text/plain": [
    
         "execution_count": 146,
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
         "metadata": {},
         "output_type": "execute_result"
        }
       ],
       "source": [
    
        "threshold=amax*0.4\n",
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
        "setup = getSetup(fileName)\n",
        "E,f,g,idb,ien,ndf,nel,nen,nnp,nsd,xn,len,Ke,Te,Ls=getDataFromSetup3D(setup,scale);\n",
        "problem=E,f,g,idb,ien,ndf,nel,nen,nnp,nsd,xn,len,Ke,Te;\n",
        "display(plotTrussDeformed3D(problem,copy(X),scale,threshold,exageration))\n",
        "K,F,d,stress,dcomp,g=FEM_truss(problem,X);\n",
    
        "simulateAndExport(setup,X,dcomp,\"json/result_$(fileName)\",threshold)"
    
    Amira Abdel-Rahman's avatar
    Amira Abdel-Rahman committed
       ]
      },
      {
       "cell_type": "code",
       "execution_count": null,
       "metadata": {},
       "outputs": [],
       "source": []
      }
     ],
     "metadata": {
      "kernelspec": {
       "display_name": "Julia 1.5.2",
       "language": "julia",
       "name": "julia-1.5"
      },
      "language_info": {
       "file_extension": ".jl",
       "mimetype": "application/julia",
       "name": "julia",
       "version": "1.5.2"
      }
     },
     "nbformat": 4,
     "nbformat_minor": 4
    }