{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "129f639c", "metadata": {}, "outputs": [], "source": [ "import IJulia\n", "\n", "# The julia kernel has built in support for Revise.jl, so this is the \n", "# recommended approach for long-running sessions:\n", "# https://github.com/JuliaLang/IJulia.jl/blob/9b10fa9b879574bbf720f5285029e07758e50a5e/src/kernel.jl#L46-L51\n", "\n", "# Users should enable revise within .julia/config/startup_ijulia.jl:\n", "# https://timholy.github.io/Revise.jl/stable/config/#Using-Revise-automatically-within-Jupyter/IJulia-1\n", "\n", "# clear console history\n", "IJulia.clear_history()\n", "\n", "# Intialize Plots w/ default fig width/height\n", "try\n", " fig_width = 7\n", " fig_height = 5\n", " fig_format = :retina\n", " fig_dpi = 96\n", " # no retina format type, use svg for high quality type/marks\n", " if fig_format == :retina\n", " fig_format = :svg\n", " # IJulia doesn't support PDF output so use png (if the DPI \n", " # remains the default of 300 then set to 96)\n", " elseif fig_format == :pdf\n", " fig_format = :png\n", " fig_dpi = 96\n", " end\n", " # convert inches to pixels\n", " fig_width = fig_width * fig_dpi\n", " fig_height = fig_height * fig_dpi\n", " using Plots\n", " gr(size=(fig_width, fig_height), fmt = fig_format, dpi = fig_dpi)\n", "catch e\n", " # @warn \"Plots init\" exception=(e, catch_backtrace())\n", "end\n", "\n", "# Set run_path if specified\n", "try\n", " run_path = \"\"\n", " if !isempty(run_path)\n", " cd(run_path)\n", " end\n", "catch e\n", " @warn \"Run path init:\" exception=(e, catch_backtrace())\n", "end\n", "\n", "# don't return kernel dependencies (b/c Revise should take care of dependencies)\n", "nothing\n" ] }, { "cell_type": "code", "execution_count": 2, "id": "8b15e8a8", "metadata": {}, "outputs": [], "source": [ "#| code-fold: true\n", "#| output: false\n", "\n", "using FileIO\n", "using MeshIO\n", "\n", "using stlProcess\n", "\n", "using CSV\n", "using DataFrames\n", "\n", "using LinearAlgebra" ] }, { "cell_type": "code", "execution_count": 3, "id": "f40c9594", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
0 rows × 8 columns (omitted printing of 1 columns)
surface_area | characteristic_length | sbx | sby | sbz | Ix | Iy | |
---|---|---|---|---|---|---|---|
Float64 | Float64 | Float64 | Float64 | Float64 | Float64 | Float64 |
8 rows × 7 columns
variable | mean | min | median | max | nmissing | eltype | |
---|---|---|---|---|---|---|---|
Symbol | Float64 | Float64 | Float64 | Float64 | Int64 | DataType | |
1 | surface_area | 25.2002 | 5.60865 | 13.3338 | 159.406 | 0 | Float64 |
2 | characteristic_length | 79.5481 | 0.158521 | 1.55816 | 1582.23 | 0 | Float64 |
3 | sbx | 1.40222 | 0.0417367 | 0.967078 | 10.0663 | 0 | Float64 |
4 | sby | 3.3367 | 0.0125824 | 2.68461 | 9.68361 | 0 | Float64 |
5 | sbz | 3.91184 | 0.29006 | 1.8185 | 14.7434 | 0 | Float64 |
6 | Ix | 1.58725 | 0.0311782 | 0.23401 | 11.1335 | 0 | Float64 |
7 | Iy | 3.74345 | 0.178598 | 1.01592 | 24.6735 | 0 | Float64 |
8 | Iz | 5.20207 | 0.178686 | 1.742 | 32.0083 | 0 | Float64 |