Electrostatics
Potential types
NESSie.PotentialType
— Typeabstract type PotentialType end
struct SingleLayer <: PotentialType end
struct DoubleLayer <: PotentialType end
Enum-like representation of single and double layer potentials
NESSie.SingleLayer
— Typeabstract type PotentialType end
struct SingleLayer <: PotentialType end
struct DoubleLayer <: PotentialType end
Enum-like representation of single and double layer potentials
NESSie.DoubleLayer
— Typeabstract type PotentialType end
struct SingleLayer <: PotentialType end
struct DoubleLayer <: PotentialType end
Enum-like representation of single and double layer potentials
Locality assumption
NESSie.LocalityType
— Typeabstract type LocalityType end
struct NonlocalES <: LocalityType end
struct LocalES <: LocalityType end
Enum-like representation of locality assumption:
- Local electrostatics: Complete independence of solvent molecules
- Nonlocal electrostatics: Allow solvent molecule correlation effects (with area-of-effect radius λ)
NESSie.LocalES
— Typeabstract type LocalityType end
struct NonlocalES <: LocalityType end
struct LocalES <: LocalityType end
Enum-like representation of locality assumption:
- Local electrostatics: Complete independence of solvent molecules
- Nonlocal electrostatics: Allow solvent molecule correlation effects (with area-of-effect radius λ)
NESSie.NonlocalES
— Typeabstract type LocalityType end
struct NonlocalES <: LocalityType end
struct LocalES <: LocalityType end
Enum-like representation of locality assumption:
- Local electrostatics: Complete independence of solvent molecules
- Nonlocal electrostatics: Allow solvent molecule correlation effects (with area-of-effect radius λ)
Potentials
Molecular potentials
NESSie.φmol
— Functionφmol(
ξ ::Vector{T},
charges ::Vector{Charge{T}};
# kwargs
tolerance::T = T(1e-10)
)
Computes and returns the molecular potential of the given system of point charges in a structureless medium for the given observation point ξ:
\[φ_{mol}(ξ) = \frac{1}{4π ε_0 ε_Ω} \sum_i \frac{qᵢ}{|rᵢ-ξ|}\]
If $|rᵢ-ξ|$ is smaller than the given tolerance
, the value is replaced by tolerance
for the affected charge.
The return value is premultiplied by $4π ⋅ ε₀ ⋅ ε_Ω$
Return type
T
Aliases
φmol{T}(
Ξ ::Vector{Vector{T}},
charges ::Vector{Charge{T}};
# kwargs
tolerance::T = T(1e-10)
)
Computes the molecular potentials for a list of observation points.
φmol{T}(
model ::Model{T, Triangle{T}};
# kwargs
tolerance::T = T(1e-10)
)
Computes the molecular potentials for the given surface model, using each triangle center as observation point.
NESSie.∂ₙφmol
— Function∂ₙφmol(ξ::Triangle{T}, charges::Vector{Charge{T}})
Computes and returns the normal derivative of the given system's molecular potential in a structureless medium, using the given triangle's center as observation point and the triangle's normal as reference normal.
\[∂ₙφ_{mol}(ξ) = -\frac{1}{4π ε_0 ε_Ω} \sum_i \frac{qᵢ}{|rᵢ-ξ|³} (rᵢ-ξ) ⋅ n\]
The return value is premultiplied by $4π ⋅ ε₀ ⋅ ε_Ω$
Return type
T
Aliases
∂ₙφmol(model::Model{T, Triangle{T}})
Computes the normal derivatives of the molecular potentials for the given surface model, using each triangle center and normal as observation point.
NESSie.∇φmol
— Function∇φmol(ξ::Vector{T}, charges::Vector{Charge{T}})
Computes and returns the gradient of the given system's molecular potential in a structureless medium for the given observation point ξ.
\[∇φ_{mol}(ξ) = -\frac{1}{4π ε_0 ε_Ω} \sum_i \frac{qᵢ}{|rᵢ-ξ|³} (rᵢ-ξ)\]
The return value is premultiplied by $4π ⋅ ε₀ ⋅ ε_Ω$
Return type
Vector{T}
Aliases
∇φmol(Ξ::Vector{Vector{T}})
Computes the molecular potential gradients for a list of observation points.
Interior potentials
NESSie.BEM.φΩ
— FunctionφΩ(
Ξ ::Vector{Vector{T}},
bem ::BEMResult{T}
)
Computes the local or nonlocal interior electrostatic potential $φ_Ω$ for the given set of observation points Ξ
.
This function does not verify whether all points in Ξ
are located in $Ω$!
Unit
$V = \frac{C}{F}$
Return type
Vector{T}
NESSie.TestModel.φΩ
— FunctionφΩ(
::Type{<: LocalityType},
ξ ::Vector{T},
ion::BornIon{T},
opt::Option{T} = defaultopt(T)
)
Computes the interior local or nonlocal electrostatic potential $φ_Ω$ for the given observation point $ξ$.
Unit
$V = \frac{C}{F}$
Return type
T
This function does not verify whether ξ is located inside of the sphere!
function φΩ(
ξ ::Vector{T},
model::NonlocalXieModel1{T}
)
Computes the interior nonlocal electrostatic potential $φ_Ω$ for the given observation point $ξ$.
Unit
$V = \frac{C}{F}$
Return type
T
This function does not verify whether ξ is located inside of the sphere!
Exterior potentials
NESSie.BEM.φΣ
— FunctionφΣ(
Ξ ::Vector{Vector{T}},
bem ::BEMResult{T}
)
Computes the local or nonlocal exterior electrostatic potential $φ_Σ$ for the given set of observation points Ξ
.
This function does not verify whether all points in Ξ
are located in $Σ$!
Unit
$V = \frac{C}{F}$
Return type
Vector{T}
NESSie.TestModel.φΣ
— FunctionφΣ(
::Type{<: LocalityType},
ξ ::Vector{T},
ion::BornIon{T},
opt::Option{T} = defaultopt(T)
)
Computes the exterior local or nonlocal electrostatic potential $φ_Σ$ for the given observation point $ξ$.
Unit
$V = \frac{C}{F}$
Return type
T
This function does not verify whether ξ is located outside of the sphere!
function φΣ(
ξ ::Vector{T},
model::NonlocalXieModel1{T}
)
Computes the exterior nonlocal electrostatic potential $φ_Σ$ for the given observation point $ξ$.
Unit
$V = \frac{C}{F}$
Return type
T
This function does not verify whether ξ is located outside of the sphere!
Energies
NESSie.BEM.rfenergy
— Functionrfenergy(::BEMResult{T})
Computes the local or nonlocal reaction field energy W* as
\[W^* = ∫φ^* ρ \quad dΩ\]
where $φ^*$ is the reaction field and $ρ$ is the corresponding charge distribution.
Unit
$\frac{kJ}{mol}$
Return type
T