GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bertoldi-collab/buckling-cylinders

BranchesTags
Open more actions menu

Latest commit

 

History

176 Commits
176 Commits

Folders and files

NameName
Last commit message
Last commit date
beam-yi
beam-yi
 
 
bender-sims
bender-sims
 
 
damping-vals-sweep
damping-vals-sweep
 
 
data_out
data_out
 
 
data_processed
data_processed
 
 
david-old-code
david-old-code
 
 
exp_results
exp_results
 
 
figures_paper
figures_paper
 
 
figures_ses
figures_ses
 
 
four-folds-sims
four-folds-sims
 
 
imperfection-tests
imperfection-tests
 
 
initial_mode_tests
initial_mode_tests
 
 
mesh_sweep
mesh_sweep
 
 
multi-step
multi-step
 
 
presentations
presentations
 
 
scream yi
scream yi
 
 
shell-nu-sweep
shell-nu-sweep
 
 
sims-figures
sims-figures
 
 
static-stabilization-sweep
static-stabilization-sweep
 
 
test-3d
test-3d
 
 
test-sims
test-sims
 
 
three-folds-geo-testing
three-folds-geo-testing
 
 
three-folds-sims
three-folds-sims
 
 
twister-sweep
twister-sweep
 
 
two-folds-sims
two-folds-sims
 
 
w_sweep
w_sweep
 
 
wrist_material_tests
wrist_material_tests
 
 
.gitignore
.gitignore
 
 
OLD_buck_cylinder_obj.py
OLD_buck_cylinder_obj.py
 
 
README.md
README.md
 
 
_data_processing_workspace.code-workspace
_data_processing_workspace.code-workspace
 
 
abaqus_utils.py
abaqus_utils.py
 
 
bender_compare.ipynb
bender_compare.ipynb
 
 
cvol_checking.ipynb
cvol_checking.ipynb
 
 
cylinder_obj.py
cylinder_obj.py
 
 
data_processing.ipynb
data_processing.ipynb
 
 
exp_data_compare.ipynb
exp_data_compare.ipynb
 
 
figure_making.ipynb
figure_making.ipynb
 
 
figure_making_SI_extra.ipynb
figure_making_SI_extra.ipynb
 
 
figure_making_paper.ipynb
figure_making_paper.ipynb
 
 
figure_making_ses.ipynb
figure_making_ses.ipynb
 
 
four_folds_compare.ipynb
four_folds_compare.ipynb
 
 
freq_process.ipynb
freq_process.ipynb
 
 
geo_prop.py
geo_prop.py
 
 
highlight_mode_test.ipynb
highlight_mode_test.ipynb
 
 
modes_theory.ipynb
modes_theory.ipynb
 
 
moment_calculation.ipynb
moment_calculation.ipynb
 
 
three_folds_compare.ipynb
three_folds_compare.ipynb
 
 
twister_sweep_compare.ipynb
twister_sweep_compare.ipynb
 
 
two_folds_compare.ipynb
two_folds_compare.ipynb
 
 

Repository files navigation

buckling-cylinders

Repo with all code and data used for "Complex deformation in soft cylindrical structures via programmable sequential instabilities (2024)" (DOI 10.1002/adma.202406611). Main file cylinder_obj.py generates Abaqus models and input files. Tested on Abaqus/2019. All units are assumed to be in (mm, MPa). Authors of this code are: Helen Read, originally David Melancon, Antonio Elia Forte, and Ahmad Zareeeei. If you have questions, please contant me directly at [email protected] or my advisor (Katia Bertoldi) at [email protected].

How to use this

cylinder_obj.py wants to be called from a sub-folder one level down. Additionally, post-processing scripts expect a folder called data_out that is in the main repo to exist (from your sub-folder where your specific job creating scripts are ../data_out should be a valid address). A python file in your job-creating sub-folder should begin with

import sys
sys.path.append('../')

from cylinder_obj import *
from geo_prop import *

Importing cylinder_obj imports the classes that create Abaqus models for these thin-walled cylinders. Importing geo_prop imports some named tuples that contain all geometric variables and are used to initialize instances of the cylinder classes. This might look like:

geo_props_use = geoProps(radius, height, cap_width, thickness, young_modulus)
#this is the simplified geoProps, assuming the thickness of the cylinder is constant

proj_name = 'this_is_a_project_name'
cylinder_example = full_shell(project = proj_name, simpProps = geo_props_use, imperfection = 0.002)
#we use simpProps because geo_props_use is type geoProps, not geoPropsFull

Now that the abstract cylinder object is created, we can call different methods to make various types of abaqus analyses. These should all return job names, and you can use run_job() with the returned job name to run the job. (Note: run_job() is not a method in a class, and is instead defined outside any class. Here are a list of the types of simulations that are currently written

  • make_nonlin_multi_buckle()
  • make_riks_model()
  • make_nonlin_model()
  • make_static_dyn_model()
  • make_linear_model()
  • run_linear_model()
  • make_force_buckling_model()

An example call to make a job and run that job might look like this

cylinder_example.run_linear_model()
#this actually makes and runs a linear buckling analysis; we need the buckling modes to run any nonlinear analysis so that we can have an imperfection
#notably, this generates a .fil file that is needed to add an imperfection into the model

#this makes a dynamic implicit model that removes 30% of the volume of the cylinder
jname_nonlin = cylinder_example.make_nonlin_model(temp_mult = 0.3)
run_job(jname_nonlin, num_cores = 4)

Now, we might want to post-process our generated .odb file. Here's a list of post-processing scripts

  • post_process_multi_buckle()
  • post_process_multi_pv()
  • post_process_pv()
  • post_process_multi_contraction_twist()
  • post_process_contraction_twist()
  • post_process_bend_angle()
  • post_process_lin_centernodes()
  • post_process_num_folds()
  • post_process_centernodes()

and an example of how we might use one or two

cylinder_example.post_process_pv()
#this saves a file with pressure-volume data to ../data_out/this_is_a_project_name_pcav_cvol.txt

cylinder_example.post_process_contraction_twist()
#creates similar txt file in data_out

Hope this helps! Functions that I actually used for this paper should be reasonably documented with what various arguments are doing.

About

No description, website, or topics provided.

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.