Follow

LAMMPS Translation Routine to EnSight

Based on user request, I have written a small Python routine which converts LAMMPS DEM files (.dat) into EnSight Case format.

The single part in EnSight contains only points (and point elements) representing the DEM particles. The routine will also convert the variable information provided within the .dat file into nodal variables. This routine does not have a lot of testing, but seems to work fairly straight forward. 
Assumptions:
(1) The provided .dat file is ASCII
(2) Variable names used within the .dat file are provided at the top of the file
(3) Columns 1,2,3 contain the X,Y,Z positions of the particles.
(4) Timestep information is provided in the "Zone" field.

After using the tool to convert the dataset, the user will have an "ensight_files" directory containing the converted information. The user can subsequently just load the "lammps.case" file within the "ensight_files" directory directly to read the data in (there is no need to convert the data each time). The Tool writes command language back into the Journal File, so that recovery and utilization of the Journal File for scripting is still valid.

The current version of the Tool is version 2.0 from September 18, 2012
Any issues or problems should be reported back here, to CEI, or the author (Kevin Colburn:  kevin@ceisoftware.com).
The Tool can be found on our Python Exchange site :
http://pythonexchange.com/2012/09/18/lammps-dem-particles-into-ensight/

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments