GithubHelp home page GithubHelp logo

Comments (11)

MariaLCastro avatar MariaLCastro commented on May 28, 2024 2

I'll also emphasize that I'm not blocked by this in the dataset generation task. I already generated the dataset. These requirements were the output of a discussion I had with @luispcunha and @IvanPombo on how we could build a use-case of the API for generating the dataset.

That's why I don't think I should work to build the dataset generating the input files but I can start building the infrastructure without all these features and add them to the demo as they are implemented. WDYT?

from inductiva.

sarmento avatar sarmento commented on May 28, 2024 2

@MariaLCastro and @fabiocruz : what Hugo was saying -- and I fully support because that is the way to make progress faster -- is for Maria to start implementing the data generating script using the available classes (DamBreak or the GenericSplishSplash) and build the whole thing as if it was the "right class" with the "required features".

This way we can immediately get most of the final code done, even before having the required class, and put the pressure on the API. This is the most important thing. This will show us other aspects of the infra-structure that need to be fixed before we worry about the exact semantics of the dataset.

@MariaLCastro : please move fwd in terms of implementing a notebook where you get the basic structure of the data generation script working. Let's see what is going to break. That's what we are trying to speed up....

from inductiva.

fabiocruz avatar fabiocruz commented on May 28, 2024 1

This can easily be done after #167 is merged.

from inductiva.

hpenedones avatar hpenedones commented on May 28, 2024

Thanks Maria, don't let this prevent you from making progress.
Can you re-write a version of your code using the API, where initially you don't have control over all those parameters, but only a subset of them?

from inductiva.

fabiocruz avatar fabiocruz commented on May 28, 2024

@MariaLCastro see this PR. It is possible to launch any simulation to run on the API now, given its input file(s). AFAIK this is the recommended way to operate with the API for advanced use cases, like generating the dataset.

from inductiva.

hpenedones avatar hpenedones commented on May 28, 2024

Like Fábio said, some advanced use cases can be implemented with a lower-level call to the API that just passes config files, but here you are generating a dataset about a scenario (DamBreak) that we support in the more "high level" pre-packaged scenarios, so it makes sense to go through there. Don't go via the low level call. It is ok to make feature requests like you did here, I just commented to say: don't let it be a blocker for you to make progress, because you can write the initial code to generate a dataset via the api, with a smaller number of controllable parameters and add the remaining later, once they become available.

My comment was about "As a first requirement, for generating the dataset we need to be able to set all the variables needed to replicate the conditions in that script.", which putting a blocking dependency on another developer, when in fact there are ways to make progress even without that.

from inductiva.

fabiocruz avatar fabiocruz commented on May 28, 2024

[...] here you are generating a dataset about a scenario (DamBreak) that we support in the more "high level" pre-packaged scenarios, so it makes sense to go through there. Don't go via the low level call.

For discussion: where do we stop calling a scenario a "dam break" (and hence stop providing a high-level interface for it)?

AFAIK the dataset that @MariaLCastro is generating has a few features that clearly distinguish is from the dam break scenario, e.g. the high viscosity of the fluids, the initial velocity, the need to tune the CFL condition, the need to ignore particle sorting during the simulation, etc.

from inductiva.

MariaLCastro avatar MariaLCastro commented on May 28, 2024

... , the need to ignore particle sorting during the simulation, etc.

Forgot to add this because it is still hard coded on the last dataset I generated. I'll add this to the list of requirements.

from inductiva.

IvanPombo avatar IvanPombo commented on May 28, 2024

Fabio is correct in sense of the scenarios, there is a lot of pre-canned stuffed for @MariaLCastro dataset. However, we can still provide access through the API without writing the config files. This is kind of what she is doing in local development.

The value is still to not worry about the infrastructure of all these and have speed-up inside the "server".

We can provide three-levels:

  • High-level: Pre-canned scenarios that are well-defined and the parameters to be changed are fixed;
  • Medium-level: Interface where the user can write its own scenario in a pythonic way;
  • Low-level: Interface to send in the config files and let things run.

from inductiva.

MariaLCastro avatar MariaLCastro commented on May 28, 2024

Started working on this today and notices that we can't yet pass a fluid with arbitrary viscosity and density without using the inductiva_sph package. One more requirement for the dataset:

  • pass arbitrary viscosities using the Inductiva package

from inductiva.

MariaLCastro avatar MariaLCastro commented on May 28, 2024

I'm reopening this issue because I recently opened this PR and noticed that some key features to run the dataset are no longer available.

I edited the features that are still missing in this issue. Do you plan to include them soon?

from inductiva.

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.