This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Falkner-Skan ODE | |
Zhang, J., Chen, B., 'An iterative method for solving the | |
Falkner-Skan equation' | |
Nachtsheim, P., Swigert, P., 'Satisfaction of Asymptotic Boundary | |
Conditions in Numerical Solution of Systems of Nonlinear Equations | |
of Boundary-Layer Type,' NASA TN D-3004, Lewis Research Center, | |
Cleveland, Oct, 1965. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# filename: varcovid.py | |
# author: josh stults | |
# date: 30 Nov 2020 | |
# | |
# fit some vector auto regression models to deaths and cases | |
# | |
# data from: | |
# https://covid.ourworldindata.org/data/owid-covid-data.csv | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# filename: varcovid.py | |
# author: josh stults | |
# date: 20 Nov 2020 | |
# | |
# fit some autoregressive models to deaths and cases | |
# | |
# data from: | |
# https://covid.ourworldindata.org/data/owid-covid-data.csv | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//CUSTOMIZER VARIABLES | |
// Overall radius of the sphere | |
sphereRadius = 30; | |
// Radius of each hole at the surface of the sphere | |
holeTopRadius = 5.5; | |
// Radius of each hole at the bottom of the hole | |
holeBottomRadius = 5; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target_sample_num: 50000 | |
cluster_epsilon: 0.1 | |
epsilon: 0.1 | |
min_points: 500 | |
normal_threshold: 0.8 | |
probability: 0.5 | |
max_iter: 100 | |
max_diam: 0.1 | |
gc_max_iter: 10 | |
base: 5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
# Usage: python3 topopt2CSG.py <build_dir> <test_name> | |
# Example: | |
# python3 topopt2CSG.py ../build openlsto | |
# | |
if len(sys.argv) < 3: | |
print('Error: please specify the test case name.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ToPy Problem Definition File v2007] | |
# Author: Josh Stults | |
# pure bending topology optimization on a 640x720 domain | |
PROB_TYPE : comp | |
PROB_NAME : pure-bend | |
ETA : exp | |
DOF_PN : 2 | |
VOL_FRAC : 0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# read in black & white pngs and create PASV_ELEM and ACTV_ELEM lists | |
# for topy input decks | |
# | |
# void.png: black pixels indicate regions that should be void | |
# solid.png: black pixels indicate regions that should be solid | |
# | |
from PIL import Image | |
solidim = Image.open("solid.png") | |
voidim = Image.open("void.png") |
NewerOlder