Giter VIP home page Giter VIP logo

fabmuscle's Introduction

FabMUSCLE

This is a preliminary launcher for the MUSCLE3 toolkit. It serves to automatically set up MUSCLE3 simulations, launch the manager and its submodels, and keep all the associated data organized.

The diffusion and reaction functions represent different components of a multiscale simulation.

diffusion Function:

  • This function implements a simple diffusion model on a 1D grid.
  • It simulates the diffusion of a substance over time in a spatial domain.
  • The state of the system is represented by a 1D grid of concentrations.
  • It sends out the state on each timestep on the state_out port and can receive an updated state on the state_in port at each state update.

reaction Function:

  • This function implements a simple exponential reaction model on a 1D grid.
  • It simulates a chemical reaction occurring in the same spatial domain as the diffusion process.
  • The state of the system is also represented by a 1D grid of concentrations.
  • It sends out the final state of the reaction on the final_state port.

Relationship:

  • Both functions are part of a larger multiscale simulation framework.
  • The diffusion function represents a macroscopic scale component responsible for simulating diffusion phenomena.
  • The reaction function represents a microscopic scale component responsible for simulating chemical reactions.
  • These components interact with each other through input and output ports (state_out, state_in, initial_state, final_state) to exchange data and synchronize their simulations.
  • The main reaction_diffusion script orchestrates the execution of these components by defining a model with appropriate conduits and settings and running the simulation using the run_simulation function.

Installation

Simply type:

fabsim localhost install_plugin:FabMUSCLE

Installing MUSCLE3

On a local machine, just use:

pip3 install muscle3

On a remote machine where you don't have admin rights, you can use:

fabsim <machine> install_muscle:install_muscle

Note: If encountered any issues, install muscle3 manually.

Testing locally

To run a unified MUSCLE test job, type:

fabsim localhost muscle_unified:config=muscle_rd_test,muscle_script=reaction_diffusion.py

To run an ensembled MUSCLE test job, type:

fabsim localhost muscle_ensemble:config=muscle_rd_distr_test,ymmsl_file=reaction_diffusion.ymmsl,replicas=2

Testing remotely (e.g., ARCHER2)

To run a unified MUSCLE test job, type:

fabsim archer2 muscle_unified:config=muscle_rd_test,muscle_script=reaction_diffusion.py

To run an ensembled MUSCLE test job, type:

fabsim archer2 muscle_ensemble:config=muscle_rd_distr_test,ymmsl_file=reaction_diffusion.ymmsl,replicas=2

And, QCG Pilot Jobs:

fabsim archer2 muscle_ensemble:test_rd_distr_muscle,diffusion_reaction.ymmsl,replicas=2,PJ=True

muscle3 help is available here:

"https://muscle3.readthedocs.io/en/latest/index.html"

fabmuscle's People

Contributors

djgroen avatar mzrghorbani avatar

Watchers

 avatar Lourens Veen avatar  avatar

Forkers

mzrghorbani

fabmuscle's Issues

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.