bubble-dynamics

Spherical bubble dynamics simulator
git clone https://git.0xfab.ch/bubble-dynamics.git
Log | Files | Refs | README | LICENSE

commit f60b10bfd9befef7a39235a77ed59b21685d7e91
parent 01791599831bb010247a4e57db56e3f02517d196
Author: Fabian Wermelinger <fabianw@mavt.ethz.ch>
Date:   Sat, 19 Dec 2020 20:56:06 +0100

FIx constant amplification factor due to (p0 + pext) implementation

Diffstat:
Msrc/BubbleBase.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/BubbleBase.h b/src/BubbleBase.h @@ -65,7 +65,8 @@ struct BubbleData // drivers if (p("-pext").asString("const") == "const") - pext = [this](const Real) { return (this->pamp * this->p0); }; + // implemented as (p0 + pext) therefore the -1. + pext = [this](const Real) { return ((this->pamp - 1) * this->p0); }; else if (p("-pext").asString("const") == "sin") pext = [this] (const Real t) { return (this->p0*this->pamp*std::sin(this->omega * t)); }; else if (p("-pext").asString("const") == "coshbgl")