Skip to content

Commit

Permalink
JuliaFormatter Action Bot (#249)
Browse files Browse the repository at this point in the history
Co-authored-by: eahenle <[email protected]>
  • Loading branch information
github-actions[bot] and eahenle committed Jun 26, 2024
1 parent 2a2afd1 commit c670088
Show file tree
Hide file tree
Showing 4 changed files with 224 additions and 84 deletions.
4 changes: 2 additions & 2 deletions docs/src/matter.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ length(coords) # number of particles, (5)

```jldoctest matter
try
coords.x = rand(3, 5)
coords.x = rand(3, 5)
catch ex
@error "Immutable!"
@error "Immutable!"
end
# output
Expand Down
93 changes: 73 additions & 20 deletions src/PorousMaterials.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
module PorousMaterials

using CSV, DataFrames, Distributed, Graphs, JLD2, LinearAlgebra, OffsetArrays, Optim,
Polynomials, Printf, ProgressMeter, Roots, SpecialFunctions, Statistics, StatsBase
using CSV,
DataFrames,
Distributed,
Graphs,
JLD2,
LinearAlgebra,
OffsetArrays,
Optim,
Polynomials,
Printf,
ProgressMeter,
Roots,
SpecialFunctions,
Statistics,
StatsBase

# extend Xtals
using Reexport
Expand Down Expand Up @@ -34,8 +47,8 @@ function __init__()
rc[:paths][:molecules] = ""
rc[:paths][:grids] = ""
rc[:paths][:simulations] = ""
set_paths(joinpath(pwd(), "data"), no_warn=true)
append_atomic_masses()
set_paths(joinpath(pwd(), "data"); no_warn=true)
return append_atomic_masses()
end

# overload unicode names w/ pure-ASCII forms
Expand All @@ -47,42 +60,82 @@ export
fit_adsorption_isotherm,

# molecule.jl
Molecule, translate_by!, translate_to!, random_rotation!, random_rotation_matrix, ion, distortion,
Molecule,
translate_by!,
translate_to!,
random_rotation!,
random_rotation_matrix,
ion,
distortion,

# forcefield.jl
LJForceField, replication_factors, forcefield_coverage,
LJForceField,
replication_factors,
forcefield_coverage,

# energy_utilities.jl
PotentialEnergy, SystemPotentialEnergy,
PotentialEnergy,
SystemPotentialEnergy,

# vdw_energetics.jl
lennard_jones, vdw_energy, vdw_energy_no_PBC,
lennard_jones,
vdw_energy,
vdw_energy_no_PBC,

# electrostatics.jl
electrostatic_potential_energy, precompute_kvec_wts,
setup_Ewald_sum, total, Eikr, total_electrostatic_potential_energy,
electrostatic_potential_energy,
precompute_kvec_wts,
setup_Ewald_sum,
total,
Eikr,
total_electrostatic_potential_energy,

# mc_helpers.jl
random_insertion!, remove_molecule!, random_translation!, random_reinsertion!, needs_rotations,
random_insertion!,
remove_molecule!,
random_translation!,
random_reinsertion!,
needs_rotations,
AdaptiveTranslationStepSize,

# Grid.jl
apply_periodic_boundary_condition!,
Grid, write_cube, read_cube, energy_grid, compute_accessibility_grid, accessible,
required_n_pts, xf_to_id, id_to_xf, update_density!, find_energy_minimum, origin,

Grid,
write_cube,
read_cube,
energy_grid,
compute_accessibility_grid,
accessible,
required_n_pts,
xf_to_id,
id_to_xf,
update_density!,
find_energy_minimum,
origin,

# EOS.jl
calculate_properties, PengRobinsonFluid, VdWFluid,
calculate_properties,
PengRobinsonFluid,
VdWFluid,

# gcmc.jl
μVT_sim, muVT_sim, adsorption_isotherm, stepwise_adsorption_isotherm,
μVT_output_filename, muVT_output_filename, GCMCstats, MarkovCounts, isotherm_sim_results_to_dataframe,

μVT_sim,
muVT_sim,
adsorption_isotherm,
stepwise_adsorption_isotherm,
μVT_output_filename,
muVT_output_filename,
GCMCstats,
MarkovCounts,
isotherm_sim_results_to_dataframe,

# henry.jl
henry_coefficient, henry_result_savename,
henry_coefficient,
henry_result_savename,

# energy_min.jl
find_energy_minimum, find_energy_minimum_gridsearch,
find_energy_minimum,
find_energy_minimum_gridsearch,

# nvt.jl
NVT_sim
Expand Down
13 changes: 11 additions & 2 deletions src/muvt.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
module MuVT

import ..Molecule, ..Frac, ..Crystal, ..LJForceField, ..@printf, ..@sprintf, ..@save, ..Cart, ..EwaldParams, ..Eikr
import ..Molecule,
..Frac,
..Crystal,
..LJForceField,
..@printf,
..@sprintf,
..@save,
..Cart,
..EwaldParams,
..Eikr

###
# Markov chain proposals
Expand Down Expand Up @@ -933,4 +942,4 @@ end

export μVT_output_filename, μVT_sim

end
end
Loading

0 comments on commit c670088

Please sign in to comment.