GithubHelp home page GithubHelp logo

Comments (6)

FabricioS avatar FabricioS commented on May 31, 2024

In Moreesc, I used hdf5pickle to efficiently serialize the instances of the simulation class (both configuration and results are stored, and the full instance can be reconstructed). It relies on pytables, and has not evolved for a couple of years.
There is also a hickle package that seems newer but more limited than hdf5pickle (only lists and numpy arrays can be stored, only experimental support for py3, but based on h5py).

from pyphs.

afalaize avatar afalaize commented on May 31, 2024

@FabricioS Waou, thank you. hdf5pickle shall be used for saving python object, and a pytables wrapper shall be used for managing hdf5 results shared with c++ objects.

And, could-we discuss the implementation of the Moreesc objects in the pyphs dictionary? This could be close to the (recent) implementation of the fender rhodes!

from pyphs.

FabricioS avatar FabricioS commented on May 31, 2024

Hi Antoine,
the Moreesc objects are pretty simple. It assumes :

  • the input impedance of the acoustic resonator can be expanded on a modal series. In the Laplace domain, it writes $Z(s) = \sum_n C_n/(s_n)$ with the poles $s_n$ and residues $C_n$. The internal variables are then the real and complex parts of the pressure components.
  • the dynamics of the mechanic valve can be represented by a transfer function H(s)/P(s) = B(s)/A(s) where $h(s)$ is the valve opening, $p(t)$ the driving pressure, $B(s) and $A(s)$ are two polynomials in the Laplace variable $s$.
  • In the case of simple woodwind or brass modelling, the flow is considered as instantaneous, i.e. without intrinsic dynamics.
    All the details are in the Acta Acustica paper : https://doi.org/10.3813/AAA.918693

from pyphs.

FabricioS avatar FabricioS commented on May 31, 2024

Hi Antoine,
I just listened to your seminar and "hands on" sessions at Ircam. Thank you for that.
One of the points that were discussed is about the refactoring of the IO subsystem, i.e., the storage of inputs and results of simulations.
How are you doing on that? Would you mind some brainstorming before coding ? I may help if you need

from pyphs.

afalaize avatar afalaize commented on May 31, 2024

Hi Fabrice,
I opened a topic on the PyPHS Q&A mailing list here:
https://groups.google.com/forum/#!topic/pyphs/2M6-dHJw1EA

from pyphs.

afalaize avatar afalaize commented on May 31, 2024

PyPHS use HDF files for simulation results since 0.3.

from pyphs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.