Git Product home page Git Product logo

smart-comp-sci's Introduction

Source code: DOI

Meshes: DOI

Results: DOI

smart-comp-sci

Examples and numerical tests for SMART scientific computing paper.

To run the code in this repository, it is necessary to install SMART (Spatial Modeling Algorithms for Reaction and Transport). See more info about running the code and reproducing the results in the scripts folder.

Installation

To run the scripts, we advice usage of docker, and the following base image ghcr.io/scientificcomputing/fenics-gmsh:2024-05-30, which after installation of docker, can be started with

docker run -ti -v $(pwd):/root/shared -w /root/shared -p 8888:8888 --name smart-comp-sci  ghcr.io/scientificcomputing/fenics-gmsh:2024-05-30

This should preferably be started from the root of this git repo, as -v shared the current directory on your computer with the docker container.

This will launch a terminal with FEniCS installed. To install the compatible version of SMART, call

python3 -m pip install fenics-smart[lab]==2.2.2 -U

Alternatively, you can use the provided docker image from smart directly, i.e

docker run -ti -v $(pwd):/root/shared -w /root/shared -p 8888:8888 --name smart-comp-sci  ghcr.io/rangamanilabucsd/smart-lab:v2.2.2

To run notebooks in your browser, call

jupyter lab --ip 0.0.0.0 --no-browser --allow-root

All meshes can be downloaded from the "SMART Demo Meshes" Zenodo dataset. To run any of the Jupyter notebook versions of the examples, these meshes should be present in the main folder of the local repository within a folder entitled meshes. Alternatively, the paths can be provided when running in Python scripts as described in the README in the scripts folder.

The output from all analyses are freely available from the "SMART Analysis data" Zenodo dataset. These results can be downloaded to locally regenerate any of the main plots. Provided the results folders are placed in a folder analysis_data within the main directory, the relevant sections of each Jupyter notebook for each example should run to generate the plots.

Shield: CC BY-SA 4.0

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

CC BY-SA 4.0

smart-comp-sci's People

Contributors

finsberg avatar emmetfrancis avatar jorgensd avatar

Watchers

Marie E Rognes avatar  avatar Christopher Lee avatar  avatar

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.