{'fraction_non_alphanumeric': 0.014669926650366748, 'fraction_numerical': 0.0, 'mean_word_length': 5.713114754098361, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Measuring pressure in equilibrium and nonequilibrium lattice-gas models.

We develop an algorithm based on the method proposed by Dickman for directly measuring pressure in lattice-gas models. The algorithm gives the possibility to access the equation of state with a single run by adding multiple ghost sites to the original system. This feature considerably improves calculations and makes the algorithm particularly efficient for systems with inhomogeneous density profiles, both in equilibrium and nonequilibrium steady states. We illustrate its broad applicability by considering some paradigmatic systems of statistical mechanics such as the lattice gas under gravity, nearest-neighbor exclusion models in finite dimension and on regular random graphs, and the boundary-driven simple symmetric exclusion process.