Giter Site home page Giter Site logo

lanvis's People

Contributors

andeplane avatar

Watchers

 avatar

lanvis's Issues

Create LAMMPS Dump importer

The LAMMPS dump file format looks like this:

ITEM: TIMESTEP
0
ITEM: NUMBER OF ATOMS
500
ITEM: BOX BOUNDS pp pp pp
0.0000000000000000e+00 8.3979809569125372e+00
0.0000000000000000e+00 8.3979809569125372e+00
0.0000000000000000e+00 8.3979809569125372e+00
ITEM: ATOMS id type xs ys zs
... (atom positions
ITEM: TIMESTEP
1
...

Consider using files as "server"

For large systems, if atoms are already colored and divided into chunks, we could read the positions by jumping around in the file. If we have some sort of header (another file, i.e. json is fine), we could know exact positions in the file and number of particles and lod levels etc. Then we could navigate a big system.

Create general State class

The State class should be very general. It must have:

  • Timestep
  • List of particles (objects below)
  • Number of particles
  • Bonds (pair of indices)
  • List of defined computes

Each particle has

  • Position
  • Type (number which can be mapped from a provided list: "Si": 1 etc)
  • Radius
  • Color
  • N additional quantities

Create importers

  • Base class ParticleImporter
  • XYZImporter
  • LAMMPSTextDumpImporter
  • LAMMPSBinaryDumpImporter

Comments

The number of columns should be specified in the JSON file describing the importer.

Add "load all" option

If the server has a lot of memory and you want to watch time evolution, it can be nice to load all timesteps.

Design communication system

Here we denote the simulation as #1, the post processing caching as #2 and the visualization client as #3.

#1 produces data. #1 and #2 communicates either through MPI (another world than COMM_WORLD) or through files. Whenever a new timestep is available, #2 reads that and places atoms in chunks.

Once it has done that, it writes to state.json with new date. The file it writes should be moved to another location after writing so that we don't get problems with writing to a file that we read from.

The client (a Python script) periodically reads the state.json. Once we see an update, we fetch the new file. Once the file is copied over, the state.json is written to client disk so we can update.

Add two types of client settings, immediate and non-immediate

Some client settings might take a lot of time on the server (resizing chunks and LOD levels), so some settings should need an apply mouse click.

These are:

  • Chunk size
  • lod levels

  • LOD cutoff
  • Server fileName (file to load)
  • Server file type (LAMMPS binary, XYZ, etc)

Use octree chunks

Now there is only a single level of chunks. For the 270 million atom system, an ideal chunk size was ~100 ร…, but then you get more particles than you want.

Ideally we should have at least three levels of chunk sizes with octrees so a large portion can quickly be sorted out as not relevant, and high resolution chunk sizes (small).

Add modifiers

Modifiers can modify any property of the particle. For instance slice, type coloring, property coloring etc.

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.