Code Monkey home page Code Monkey logo

cancersim's Introduction

cancersim

Code for an elastic simulation of skin cancer.

The main code is located in the code folder.

There are 4 executable files corresponding to each of the 4 possible initial configurations, i.e. the position of the first nevus cell:

  • epidermis - Sim_epidermis.py
  • dermis - Sim_dermis.py
  • top of basal membrane - Sim_top_basal_membrane.py
  • bottom of basal membrane - Sim_bottom_basal_membrane.py

The code will generate as output:

  • the .png files inside the dir 2D/: a graphical 2D view of the system configuration once the stable condition has been achieved;
  • the file pressure.dat inside the dir pressure/: the pressure acting on each cell;
  • the file evolution.dat inside the dir evolution/: the position of each new cell added to the nevus;
  • the files state inside the dir states/: the system configuration once the stable condition has been achieved.

Once the code has finished, make sure you have downloaded the 3.6 version of povray. Then run the script: script_making_movies.sh

this will generate as output 2 gif files:

  • a 2D.gif inside the dir 2D/: an animation of the nevus evolution; it will delete all the preexisting .png inside the 2D dir
  • a 3D.gif inside the dir 3D/: an animation of the nevus evolution rendered in 3D

cancersim's People

Contributors

alexalemi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

murphyzy

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.