Git Product home page Git Product logo

hist5706_digital_history's Introduction

Mesa model of charcoal production

Agent based modeling of the manufacturing of charcoal in forested areas of the eastern United States. There will be two models:

  • Mill model, a simple model of a saw mill that is a prototype.
  • Charcoal production model

Documentation

Installation

0. Requirements

This simulation requires Python to be installed on a machine that can launch a local http server. This does not work on Google Colaboratory, unfortunately.

1. Install Mesa

See the Installation section in this tutorial.

or:

$ pip install pipenv
$ pipenv install mesa

2. Clone this repository

  • Make a directory. cd to the directory. Then:
$git init .
$git pull https://github.com/jeffblackadar/hist5706_digital_history.git

Models

There are two models, Mill and CharcoalProduction.

Mill model

This is a prototype model meant try out Mesa and build a basic model of consumption of wood in a forested area.

Class diagram

Running the Mill model

$ python run_mill.py

CharoalProduction model

This is a model of chacoal production for an iron furnace in the Eastern United States during the 18th to mid-19th centuries.

Class diagram

Running the CharoalProduction model

  • change directory to /charcoalproduction
  • python run_charcoalproduction.py
$ cd charcoalproduction
$ python run_charcoalproduction.py

Other programs

  • server.py - Instantiates the model and sets its size. Change the size of the model here.
  • For model.py, furnace.py, landcell.py, charcoalhearth.py see the model class documentation
  • portrayal.py - Contains information to render the classes in the html visualization.

Mesa Class addition

  • HexGridMulti.py - HexGridMulti is an additional class added to the Mesa grid classes so that cells in a Hexagon grid may contain more than 1 agent at time.

Utilities

  • run_iron_p.py, server_image.py - Run a simple image based simulation. This is a prototype that was abandoned.
  • documenter_charcoalproduction.py - Creates an html page of documentation of the classes using Mermaid.
  • model_init_image.py - A prototype of logic to add agents in order from the center of a grid outwards.
  • workbook.ipynb - Contains calculations to inform the model's paradata.
  • charcoalhearth_paradata_workbook.ipynb - Also contains calculations to inform the model's paradata. (These two will be merged.)

hist5706_digital_history's People

Contributors

jeffblackadar avatar

Stargazers

Shawn Graham avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.