From 9698a3a933b0ca08de120e7e1e7961199c9e590a Mon Sep 17 00:00:00 2001 From: Ali-7800 <47090295+Ali-7800@users.noreply.github.com> Date: Fri, 23 Feb 2024 13:56:39 -0600 Subject: [PATCH] citation for catenary solution added --- examples/CatenaryCase/post_processing.py | 4 +++- examples/README.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/CatenaryCase/post_processing.py b/examples/CatenaryCase/post_processing.py index 9b695fca..ba6af0e3 100644 --- a/examples/CatenaryCase/post_processing.py +++ b/examples/CatenaryCase/post_processing.py @@ -44,9 +44,11 @@ def plot_video( def plot_catenary(plot_params: dict, xlim=(0, 1), ylim=(-0.5, 0.5), base_length=1.0): + """ + Catenary analytical solution from Routh, Edward John (1891). "Chapter X: On Strings". A Treatise on Analytical Statics. University Press. + """ matplotlib.use("TkAgg") position = np.array(plot_params["position"]) - n_elem = position.shape[-1] lowest_point = np.min(position[-1][2]) x_catenary = np.linspace(0, base_length, 100) diff --git a/examples/README.md b/examples/README.md index 39f6ddce..961f7618 100644 --- a/examples/README.md +++ b/examples/README.md @@ -79,7 +79,7 @@ Examples can serve as a starting template for customized usages. * __Purpose__: Demonstrate simulation of ring rod. * __Features__: RingCosseratRod, OneEndFixedRod, GravityForce * [CatenaryCase](./CatenaryCase) - * __Purpose__: Demonstrate simulation of cosserat rod under gravity with fixed ends. + * __Purpose__: Demonstrate simulation of cosserat rod under gravity with fixed ends, compared with Catenary Analytical Solution from Routh, Edward John (1891). ["Chapter X: On Strings".](https://books.google.com/books?id=3N5JAAAAMAAJ&pg=PA315#v=onepage&q&f=false). A Treatise on Analytical Statics. University Press. * __Features__: CosseratRod, FixedConstraint, GravityForce ## Functional Examples