Commit 2003a56
authored
V4 (#35)
* Enhance README formatting for better visibility and structure
* Add Peng-Robinson equation of state implementation and update changelog
* Refactor PengRobinsonEOS integration in GCMC class and update fugacity coefficient calculation
* Update GCMC class to set default fugacity coefficient and enhance docstring for clarity
* Add fugacity coefficient parameters to GCMC initialization
* Refactor GCMC initialization to streamline simulation parameters and enhance fugacity coefficient formatting
* Add critical parameters for GCMC: criticalTemperature, criticalPressure, and acentricFactor
* Update version to 0.4.0 and modify changelog for unreleased features
* Fix fugacity coefficient assignment in GCMC class for clarity and correctness
* Add functions to calculate perpendicular lengths and unit cell repetitions in utilities
* Add functions for perpendicular lengths and unit cell calculations in utilities; update GCMC to utilize these functions
* Add cutoff parameter to GCMC class for supercell check control; update changelog
* Refactor framework setup in GCMC class to include supercell creation and perpendicular lengths calculation
* Fix python on 3.10
* Print perpendicular lenghts on Widom
* Reorganize import statements in GCMC, utilities, and Widom modules for clarity
* Initialize ideal supercell in GCMC class and update framework setup to calculate supercell dimensions
* Update README to improve description of MLP Adsorption package
* Refactor enthalpy_of_adsorption function to use ase.units for gas constant
* Add framework density calculation to GCMC class
* Refactor framework density calculations in GCMC and Widom classes for consistency and clarity
* Fix framework density calculation in GCMC and Widom classes
* Add make_cubic function to transform structures into cubic supercells
* Refactor import statements in gcmc and widom modules for consistency
* Refactor random position using a numpy Generator in GCMC and Widom classes for reproducibility and clarity
* Add note on reproducibility with numpy.random.Generator in changelog
* Cosmetic changes by black
* Refactor random operations into a new module for better organization and reusability
* Remove the older vdw_overlap checks
* Refactor check_overlap function to improve clarity by renaming return value and updating docstring
* Enhance check_overlap function with return type annotation and performance note in docstring
* Update changelog for module path corrections and enhanced clarity
* Add base logger classes
* Abstract the simulation to a BaseSimulator abstract the system state management and general simulation logic.
* Refactor GCMC simulation logging by integrating GCMCLogger for improved output management and clarity
* Add logging enhancements to simulation output management with GCMCLogger and WidomLogger
* Refactor by black and isort
* Remove unused imports from gcmc.py to clean up the code
* Replace print methods with logger calls for improved output management in examples
* Enhance WidomLogger output with detailed simulation start and end messages
* Rename 'cutoff' parameter to 'cutoff_radius' for clarity and update output file paths in BaseSimulator, GCMC, and Widom classes.
* Refactor calculations in Widom class for improved readability and maintainability
* Remove unused import of VERSION from base_simulator.py to clean up the code
* Remove unnecessary newline at the end of run_GeoOpt+GCMC.py for cleaner code
* Add restart method to Widom class and update adsorbate atom references for clarity
* Refactor index calculations in GCMC and improve formatting in Widom class for clarity
* Refactor restart method in Widom class to streamline loading of internal energy data
* Add the cuequivariance-torch on the environment.
* Create a random_mol_insertion method to insert molecules easier
* Add random seed to examples
* Ensure that all random methods use the same generator
* Apply black for code standardization
* FIx
* Add random seed handling to BaseSimulator and log it in BaseLogger
* Fix random_translation
* Add pyMSER integration for simulation equilibration and average uptake calculation
* Black and isort formating
* Remove unused import of enthalpy_of_adsorption from logger.py
* Refactor crystalOptimization to store convergence status in a variable
* Rename example
* Fix error in optimization convergence check
* Remove unused sys.path modification and streamline convergence print statement in crystalOptimization
* Update README.md to include installation warning and enhance GCMC parameters
* Add automatic supercell option and cutoff radius to GCMC and Widom classes; update examples accordingly
* Add warning for non-ideal supercell size in logger header
* Fix framework mass calculation to ensure it is a float
* Refactor framework mass calculation to use a dedicated method for improved clarity and maintainability
* Remove space
* Update changelog to set release date for version 0.4.01 parent ebbe19c commit 2003a56
19 files changed
Lines changed: 1696 additions & 1042 deletions
File tree
- examples
- Basic
- 1-Widom
- 2-Rigid_GCMC
- 3-Rigid_GCMC_Isotherm
- Intermediate
- 1-Geometry_Optimization_GCMC
- 2-MD_GCMC
- mlp_adsorption
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
16 | 53 | | |
17 | 54 | | |
18 | 55 | | |
| |||
45 | 82 | | |
46 | 83 | | |
47 | 84 | | |
| 85 | + | |
| 86 | + | |
48 | 87 | | |
49 | 88 | | |
50 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
99 | | - | |
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
106 | 117 | | |
107 | 118 | | |
108 | 119 | | |
109 | | - | |
| 120 | + | |
110 | 121 | | |
111 | 122 | | |
112 | 123 | | |
113 | | - | |
| 124 | + | |
114 | 125 | | |
115 | 126 | | |
116 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | | - | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
64 | | - | |
| 69 | + | |
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | | - | |
| 73 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | 66 | | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | | - | |
| 77 | + | |
74 | 78 | | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
81 | | - | |
| 85 | + | |
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | | - | |
107 | | - | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | | - | |
| 114 | + | |
File renamed without changes.
File renamed without changes.
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
61 | 65 | | |
62 | 66 | | |
63 | 67 | | |
64 | | - | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | | - | |
| 75 | + | |
0 commit comments