raspa
Parser for RASPA3 output files.
This module provides functions to parse both text and JSON outputs from RASPA3 simulations and extract key information such as adsorption data, energy values, and more.
extract_adsorption_data(parsed_data)
Extract adsorption data from parsed RASPA output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
parsed_data
|
dict[str, Any]
|
Dictionary containing parsed RASPA data. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Dictionary with adsorption data for each component. |
Source code in chmpy/fmt/raspa.py
extract_energy_data(parsed_data)
Extract energy data from parsed RASPA output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
parsed_data
|
dict[str, Any]
|
Dictionary containing parsed RASPA data. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Dictionary with energy components. |
Source code in chmpy/fmt/raspa.py
extract_enthalpy_data(parsed_data)
Extract enthalpy of adsorption data from parsed RASPA output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
parsed_data
|
dict[str, Any]
|
Dictionary containing parsed RASPA data. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Dictionary with enthalpy data for each component. |
Source code in chmpy/fmt/raspa.py
parse_adsorption_data(content)
Parse adsorption data from RASPA output content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
content
|
str
|
Text content of the RASPA output file. |
required |
Returns:
Type | Description |
---|---|
dict[str, dict[str, dict[str, float]]]
|
Dictionary with adsorption data for each component. |
Source code in chmpy/fmt/raspa.py
parse_energy_data(content)
Parse energy data from RASPA output content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
content
|
str
|
Text content of the RASPA output file. |
required |
Returns:
Type | Description |
---|---|
dict[str, float]
|
Dictionary with energy components. |
Source code in chmpy/fmt/raspa.py
parse_enthalpy_data(content)
Parse enthalpy of adsorption data from RASPA output content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
content
|
str
|
Text content of the RASPA output file. |
required |
Returns:
Type | Description |
---|---|
dict[str, dict[str, float]]
|
Dictionary with enthalpy data for each component. |
Source code in chmpy/fmt/raspa.py
parse_output_directory(directory_path)
Parse all RASPA output files in a directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
directory_path
|
str | Path
|
Path to the directory containing RASPA output files. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Dictionary with parsed data from all files. |
Source code in chmpy/fmt/raspa.py
parse_pressure_data(content)
Parse pressure data from RASPA output content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
content
|
str
|
Text content of the RASPA output file. |
required |
Returns:
Type | Description |
---|---|
dict[str, float]
|
Dictionary with pressure data. |
Source code in chmpy/fmt/raspa.py
parse_raspa_json(file_path)
Parse a RASPA3 JSON output file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path
|
str | Path
|
Path to the JSON output file. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Dictionary containing the parsed data. |
Source code in chmpy/fmt/raspa.py
parse_raspa_txt(file_path)
Parse a RASPA3 text output file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path
|
str | Path
|
Path to the text output file. |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
Dictionary containing structured parsed data. |