Code Monkey home page Code Monkey logo

burn's Introduction

Burn

Burn is a model for simulating the burning of materials. It uses tools from the FEniCS project to automate mesh generation, discretization, and solution of the problem. The goal of developing Burn is to enable predictions of burning rate and flame spread across common flammable items. Such a capability will enable materials scientists and engineers to design safer products.

Overview

Burn is implemented as a set of Python modules. These modules are found in the scripts/ directory. A simulation is executed using the burn.py script along with an input file. Input files for Burn take the form of Python modules, but require minimal knowledge of Python to create or modify. For examples of input file modules look in demos/, validation/, or verification/. Several meshes generate using Gmsh may be found in meshes/.

Setup and Usage

Burn requires an installation of FEniCS. The easiest way to use FEniCS is through the FEniCS Docker images. A nice discussion of how to use FEniCS with Docker may be found here.

Once you have Docker installed, it is straightforward to start running Burn. The process is described as follows:

  1. Start a Docker terminal.
  2. Change directories into your Burn repository.
  3. Start a FEniCS session with access to your working directory:
    $ docker run -ti -v $(pwd):/home/fenics/shared quay.io/fenicsproject/stable
  4. Change directories to wherever your input file is.
  5. Run Burn: `$ ~/shared/burn.py input.py

The output of the simulation will be stored locally in an automatically generated folder. Burn writes temperature and mass fraction fields to vtk files, which may be visualized using ParaView.

Example Usage

To run the plate demo, begin by starting a Docker Quickstart Terminal. Change directories to your Burn repository. Start a FEniCS session (see Step 3 above). Change directories to the plate verification case:

$ cd verification/conduction/plate/

Then launch the simulation using

$ ~/shared/burn.py plate.py

burn's People

Contributors

mcb1 avatar

Watchers

 avatar  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.