5 #include <nlohmann/json.hpp> 9 using json = nlohmann::json;
20 double ionic_strength;
22 std::vector<int> valencies;
25 Electrolyte(
double molarity,
const std::vector<int>& valencies);
27 double bjerrum_length);
32 [[nodiscard]]
const std::vector<int>&
nlohmann::json json
JSON object.
Definition: json_support.h:10
const std::vector< int > & getValencies() const
Charges of each participating ion in the salt.
double debyeLength(double bjerrum_length) const
Debye screening length in Angstrom.
std::optional< Electrolyte > makeElectrolyte(const json &j)
Create ionic salt object from json.
Stores information about salts for calculation of Debye screening length etc.
Definition: electrolyte.h:17
double getMolarity() const
Input salt molarity (mol/l)
Cell list class templates.
Definition: actions.cpp:11
double ionicStrength() const
Molar ionic strength (mol/l)