Code Monkey home page Code Monkey logo

ss-tp5's Introduction

...

Simulation N° 5: Granular Flow

Build

To build the project, it is necessary to have Maven +3.5.0, and Java SE 8 Release installed. Then, run:

$ mvn clean package

This will generate a *.jar in the target folder. If you find any issues with the building, remove the *.jar files from the Maven local repository with:

$ rm -fr ~/.m2/repository/ar/edu/itba/ss/*

Or do it manually, if you prefer.

Execute

In the root folder (after build):

$ java -jar target/tp5-1.0-SNAPSHOT.jar <simulate | animate | flow>

Configuration

Receives a JSON file with the following format:

{
    "output"            : "res/data/output.data",
    "delta"             : "0.00003",
    "time"              : "15.0",
    "fps"               : "50",
    "playbackSpeed"     : "0.5",
    "samplesPerSecond"  : "200",

    "integrator"        : "BeemanIntegrator",
    "reportEnergy"      : "false",
    "reportTime"        : "true",
    "radius"            : ["0.01", "0.015"],
    "mass"              : "0.01",

    "elasticNormal"     : "1.0E+4",
    "elasticTangent"    : "2.0E+4",
    "viscousDamping"    : "20.0",
    "siloDamping"       : "15.0",

    "generator"         : "64684095347601931",
    "n"                 : "370",
    "height"            : "1.0",
    "width"             : "0.4",
    "drain"             : "0.15",
    "flowRate"          : "0.1",
    "injection"         : ["0.75", "1.0"]
}

Output Files Format

Simulation File (*.data)

The complete simulation results. Includes the speed and pressure over every particle in every simulation step.

<x> <y> <r> <speed> <pressure>
...

Flow Rate File (*.drain)

This file contains the complete drain (i.e., the ID of a particle drained at a certain time).

<t> <id>
...

Windowed Flow Rate File (*.flow)

This is the windowed flow per unit of temporal step. The units are in [particles/second].

<t> <flow>
...

Small Simulation File (*.small)

This is a reduced form of the simulation file, but sub-sampled.

<x> <y> <r> <speed> <pressure>
...

Animation File (*.xyz)

This file can be used in Ovito to render the simulation.

<N>
<t0>
<x> <y> <r> <speed> <pressure>
...

Videos

Developers

This project has been built, designed and maintained by the following authors:

ss-tp5's People

Contributors

agustin-golmar avatar lobo avatar

Stargazers

 avatar

Watchers

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