Comments (5)
@rbberger is still under consideration? or should we close is issue?
from lammps.
@giacomofiorin can you have a look at this avg/chunk reader? Still need to write some example and/or docs. But it should be usable as follows:
from lammps import AvgChunkFile
c = AvgChunkFile(filename)
c.timesteps # list of timesteps in file
c.chunks # list of chunks in file
# c.chunks[chunk_id][property_name]
c.chunks[0]['id']
c.chunks[0]['coord']
c.chunks[0]['density/count'] # list of density/count values over time of chunk 1
from lammps.
Will do ASAP, thanks for implementing it!
from lammps.
@rbberger: sorry for the delay. I misunderstood that the new class AvgChunkFile
was going to make use of LAMMPS API functions (it can actually be used in the stand-alone interpreter).
Overall the class does the intended job. One thing that I recommend is replacing:
assert(num_chunks == int(parts[1]))
with an exception like:
if not (num_chunks == int(parts[1])):
raise Exception("Currently, changing numbers of chunks are not supported.")
because the case of changing number of chunks over time is not an uncommon one (e.g. chunks along a Cartesian axis when running NPT, or chunks computed for a sub-set of the system).
I think it's possible to amend your parser, but ultimately this is an issue of the way the fix ave/chunk
file is written to begin with. I think it'd be useful to define additional variants of the styles bin/1d
through bin/3d
where not only the grid spacings but also the boundaries can be pre-allocated (similarly to bin/cylinder
and bin/sphere
). This would make parsing of the ave/chunk
output files much easier: empty chunks can be easily handled by having Ncount
written as zero.
from lammps.
please don't close issues until the PR is merged.
from lammps.
Related Issues (20)
- [BUG] Small error in in.ttm.mod example (Si.ttm_mod)
- [BUG] _Unable to restart from restart files with rigid molecules.
- [BUG] Replace XDR code with BSD-relicensed copy
- An error in the "fix ttm command" description in the LAMMPS manual HOT 1
- Implementing Custom pair_style in KOKKOS HOT 4
- [Feature Request] Make lammps_extract_fix consistent with lammps_extract_compute for global arrays HOT 4
- [BUG] pair_style ylz needs explicit symmetrization of the interaction cutoff
- Failed to use GPU acceleration for hybrid/overlay type potential HOT 3
- [BUG] Fortran scatter_atoms() does not update atom positions when using atom_style atomic HOT 3
- [BUG] Strange communication lapse while scaling PPPM to extreme scale HOT 53
- ERROR: Pair coeff for hybrid has invalid style: library.meam HOT 1
- [BUG] "boost_serialization" option missing in PLUMED.cmake HOT 1
- [Feature Request] Implement MPI collective operations in KOKKOS implementation of KSPACE HOT 2
- [BUG] Inconsistency using fix wall/gran with the granular pairstyle HOT 2
- I still face the same problem. Adding -pk gpu 4 neigh no seems not works for me ,the related file have uploaded HOT 2
- [BUG] run_style verlet/split fails for certain types of examples
- [BUG] Inconsistent syntax for dump_modify triclinic/general
- [BUG] Incorrect output for triclinic/general when using dump style custom
- [Feature Request] Improve efficiency of fix_ipi
- [Feature Request] Fix deposition rate specified in time units
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lammps.