Skip to content

Commit

Permalink
build based on 9e6d28d
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Oct 3, 2024
1 parent 44dd94b commit a666e41
Show file tree
Hide file tree
Showing 27 changed files with 357 additions and 357 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-09-10T09:24:55","documenter_version":"1.7.0"}}
{"documenter":{"julia_version":"1.10.5","generation_timestamp":"2024-10-03T11:38:52","documenter_version":"1.7.0"}}
4 changes: 2 additions & 2 deletions dev/API.html

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions dev/Accuracy-06d567ab.svg → dev/Accuracy-ff032b4f.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion dev/Accuracy.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
The pressure = 0.58613053 with M = 100000 gridpoints.</code></pre><p>We can see that the method has well-behaved second order convergence, and that with <span>$M=10^4$</span>, we get almost 6 digits of relative accuracy.</p><pre><code class="language-julia hljs">η = ρ/6*π
p_exact = (1+2η+3η^2)/(1-η)^2-1.0
scatter(M_array, abs.(p.-p_exact)./p_exact)
plot!(ylabel=&quot;relative error&quot;, xlabel=&quot;M&quot;, xscale=:log, yscale=:log)</code></pre><img src="Accuracy-06d567ab.svg" alt="Example block output"/><p>In principle, these results can be extrapolated to improve the accuracy further.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="OtherDimensions.html">« Other dimensions</a><a class="docs-footer-nextpage" href="ThermodynamicConsistency.html">Thermodynamic Consistency »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Tuesday 10 September 2024 09:24">Tuesday 10 September 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
plot!(ylabel=&quot;relative error&quot;, xlabel=&quot;M&quot;, xscale=:log, yscale=:log)</code></pre><img src="Accuracy-ff032b4f.svg" alt="Example block output"/><p>In principle, these results can be extrapolated to improve the accuracy further.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="OtherDimensions.html">« Other dimensions</a><a class="docs-footer-nextpage" href="ThermodynamicConsistency.html">Thermodynamic Consistency »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 3 October 2024 11:38">Thursday 3 October 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
6 changes: 3 additions & 3 deletions dev/Closures.html

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions dev/ExtendingClosures.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
closure = MyHNC()
sol = solve(system, closure)
using Plots
plot(sol.r, sol.gr, xlims=(0,5), xlabel=&quot;r&quot;, ylabel=&quot;g(r)&quot;)</code></pre><img src="ExtendingClosures-b31a923d.svg" alt="Example block output"/><p>which can be compared to that of <a href="SingleCompLJ.html#First-steps">First steps</a>.</p><h2 id="Mixtures"><a class="docs-heading-anchor" href="#Mixtures">Mixtures</a><a id="Mixtures-1"></a><a class="docs-heading-anchor-permalink" href="#Mixtures" title="Permalink"></a></h2><p>In the case of multicomponent systems, instead of a number the function that is overloaded should return a <code>StaticMatrix</code> containing either values for <span>$c_{ij}$</span> or <span>$b_{ij}$</span>. Since, in that case also the inputs are <code>StaticMatrix</code>, we can make use of <code>Julia</code>&#39;s broadcasting syntax to perform an closure elementwise. </p><pre><code class="language-julia hljs">import OrnsteinZernike.closure_c_from_gamma
plot(sol.r, sol.gr, xlims=(0,5), xlabel=&quot;r&quot;, ylabel=&quot;g(r)&quot;)</code></pre><img src="ExtendingClosures-4c6c352d.svg" alt="Example block output"/><p>which can be compared to that of <a href="SingleCompLJ.html#First-steps">First steps</a>.</p><h2 id="Mixtures"><a class="docs-heading-anchor" href="#Mixtures">Mixtures</a><a id="Mixtures-1"></a><a class="docs-heading-anchor-permalink" href="#Mixtures" title="Permalink"></a></h2><p>In the case of multicomponent systems, instead of a number the function that is overloaded should return a <code>StaticMatrix</code> containing either values for <span>$c_{ij}$</span> or <span>$b_{ij}$</span>. Since, in that case also the inputs are <code>StaticMatrix</code>, we can make use of <code>Julia</code>&#39;s broadcasting syntax to perform an closure elementwise. </p><pre><code class="language-julia hljs">import OrnsteinZernike.closure_c_from_gamma
function OrnsteinZernike.closure_c_from_gamma(::MyHNC, _, mayer_f, γ, _)
return @. (mayer_f + 1) * exp(γ) - γ - 1 # note the @.
end</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="ExtendingPotentials.html">« Defining your own potentials</a><a class="docs-footer-nextpage" href="API.html">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Tuesday 10 September 2024 09:24">Tuesday 10 September 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
end</code></pre></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="ExtendingPotentials.html">« Defining your own potentials</a><a class="docs-footer-nextpage" href="API.html">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 3 October 2024 11:38">Thursday 3 October 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions dev/ExtendingPotentials.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
closure = HypernettedChain()
sol = solve(system, closure)
using Plots
plot(sol.r, sol.gr, xlims=(0,5), xlabel=&quot;r&quot;, ylabel=&quot;g(r)&quot;)</code></pre><img src="ExtendingPotentials-0407d4d1.svg" alt="Example block output"/><h2 id="Mixtures"><a class="docs-heading-anchor" href="#Mixtures">Mixtures</a><a id="Mixtures-1"></a><a class="docs-heading-anchor-permalink" href="#Mixtures" title="Permalink"></a></h2><p>In the case of multicomponent systems, instead of a number the function should return a <code>StaticMatrix</code> from the <code>StaticArrays</code> package containing values for <span>$u_{ij}$</span>. </p><h3 id="Example-2"><a class="docs-heading-anchor" href="#Example-2">Example</a><a class="docs-heading-anchor-permalink" href="#Example-2" title="Permalink"></a></h3><p>Suppose we want to implement the same potential for the multicomponent case: <span>$u_{ij}(r) = \epsilon_{ij} (\frac{\sigma_{ij}}{r_{ij}})^6.$</span></p><p>While one could implement this in one line with broadcasting, here the function is written out fully for clarity:</p><pre><code class="language-julia hljs">using OrnsteinZernike, StaticArrays
plot(sol.r, sol.gr, xlims=(0,5), xlabel=&quot;r&quot;, ylabel=&quot;g(r)&quot;)</code></pre><img src="ExtendingPotentials-97211219.svg" alt="Example block output"/><h2 id="Mixtures"><a class="docs-heading-anchor" href="#Mixtures">Mixtures</a><a id="Mixtures-1"></a><a class="docs-heading-anchor-permalink" href="#Mixtures" title="Permalink"></a></h2><p>In the case of multicomponent systems, instead of a number the function should return a <code>StaticMatrix</code> from the <code>StaticArrays</code> package containing values for <span>$u_{ij}$</span>. </p><h3 id="Example-2"><a class="docs-heading-anchor" href="#Example-2">Example</a><a class="docs-heading-anchor-permalink" href="#Example-2" title="Permalink"></a></h3><p>Suppose we want to implement the same potential for the multicomponent case: <span>$u_{ij}(r) = \epsilon_{ij} (\frac{\sigma_{ij}}{r_{ij}})^6.$</span></p><p>While one could implement this in one line with broadcasting, here the function is written out fully for clarity:</p><pre><code class="language-julia hljs">using OrnsteinZernike, StaticArrays

function mypotential(r, p)
# we can construct a mutable sized matrix first
Expand All @@ -36,4 +36,4 @@
using Plots
plot(sol.r, sol.gr[:, 1, 1], xlims=(0,5), xlabel=&quot;r&quot;, ylabel=&quot;g(r)&quot;, label=&quot;g11(r)&quot;)
plot!(sol.r, sol.gr[:, 1, 2], xlims=(0,5), xlabel=&quot;r&quot;, ylabel=&quot;g(r)&quot;, label=&quot;g12(r)&quot;)
plot!(sol.r, sol.gr[:, 2, 2], xlims=(0,5), xlabel=&quot;r&quot;, ylabel=&quot;g(r)&quot;, label=&quot;g22(r)&quot;)</code></pre><img src="ExtendingPotentials-d6ad5d67.svg" alt="Example block output"/></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="Theory.html">« Theory</a><a class="docs-footer-nextpage" href="ExtendingClosures.html">Defining your own closure »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Tuesday 10 September 2024 09:24">Tuesday 10 September 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
plot!(sol.r, sol.gr[:, 2, 2], xlims=(0,5), xlabel=&quot;r&quot;, ylabel=&quot;g(r)&quot;, label=&quot;g22(r)&quot;)</code></pre><img src="ExtendingPotentials-39695392.svg" alt="Example block output"/></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="Theory.html">« Theory</a><a class="docs-footer-nextpage" href="ExtendingClosures.html">Defining your own closure »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 3 October 2024 11:38">Thursday 3 October 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/FromPython.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@

plt.plot(sol.r, sol.gr)
plt.xlim(0, 5)
plt.show()</code></pre><p><img src="Figs/pythonfig.png" alt="image"/></p><p>See the documentation of <a href="https://pypi.org/project/juliacall/">juliacall</a> for more information on how to call Julia from Python.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="API.html">« API</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Tuesday 10 September 2024 09:24">Tuesday 10 September 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
plt.show()</code></pre><p><img src="Figs/pythonfig.png" alt="image"/></p><p>See the documentation of <a href="https://pypi.org/project/juliacall/">juliacall</a> for more information on how to call Julia from Python.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="API.html">« API</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option><option value="catppuccin-latte">catppuccin-latte</option><option value="catppuccin-frappe">catppuccin-frappe</option><option value="catppuccin-macchiato">catppuccin-macchiato</option><option value="catppuccin-mocha">catppuccin-mocha</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.7.0 on <span class="colophon-date" title="Thursday 3 October 2024 11:38">Thursday 3 October 2024</span>. Using Julia version 1.10.5.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit a666e41

Please sign in to comment.