Io read block
thmd.io.read_block
¤
Classes:
-
LmpLogFile–Create an Object of LOG file.
-
LmpRDF–class to read Radial Distribution Fuction (RDF) file from Lammps compute
-
LmpAveChunk–class to read Radial Distribution Fuction (RDF) file from Lammps compute
-
PlumHistogram–Create an Object of DUMP file
Functions:
-
average_df_list–compute average of list of DataFrame
LmpLogFile(logfile=None)
¤
Create an Object of LOG file.
Notes
- run 0 without data
Udpate
- 2024-10-10: use Polars DataFrame instead of Pandas Series
Returns:
-
Obj(LmpLogFile) –LmpLogFile object
-
thmd
io
Io read block
read_blockLmpLogFileread_log
Methods:
-
read_log–Read LAMMPS logfile
read_log(logfile)
¤
Read LAMMPS logfile Args: logfile (str): input LOG file
Returns:
-
Obj(LmpLogFile) –LmpLogFile object
LmpRDF(file_name: str)
¤
class to read Radial Distribution Fuction (RDF) file from Lammps compute
Attributes:
-
file_name(str) –file name
-
frame(DataFrame) –3d pandas Frame (multi-row-index DataFrame)
Methods:
-
ReadRDF–read RDF file
-
AverageRDF–the Average RDF
Parameters:
-
file_name(str) –file_name
Returns:
-
Obj(LmpAveChunk) –LmpAveChunk object
Examples:
-
thmd
io
Io read block
read_blockLmpRDFread_RDF
LmpAveChunk(file_name)
¤
class to read Radial Distribution Fuction (RDF) file from Lammps compute
Attributes:
-
file_name(str) –file name.
-
frame(DataFrame) –3d pandas Frame (multi-row-index DataFrame).
Methods:
-
ReadRDF–read RDF file
-
AverageRDF–the Average RDF
Parameters:
-
file_name(str) –file_name
Returns:
-
Obj(LmpAveChunk) –LmpAveChunk object
Examples:
PlumHistogram(file_name)
¤
Create an Object of DUMP file
Methods:
-
read_histogram–read Histogram file
-
average_histogram–the Average Histogram
-
AreaHisto–Area under pdf curve
-
find_tail–find limit of histogram
-
find_center–find center of histogram
Examples:
Parameters:
-
file_name(str) –file_name
Returns:
-
Obj(PlumHistogram) –PlumHistogram object
read_histogram(file_name: str)
¤
Parameters:
-
file_name(str) –input HISTOGRAM file
Returns:
-
Obj(PlumHistogram) –update PlumHistogram object
compute_average_histogram()
¤
compute average of histogram over all frames
Returns:
-
df(DataFrame) –DataFrame of avergave histogram
areaHisto()
¤
fit_std_gaussian()
¤
Fit the average-histogarm to Standard Gaussian function
Returns:
-
amp, miu, sigma) (tuple–parameters of Gaussian function