目录
目录README.md

Leaf-Glucose-Simulation

A simulation that demonstrates what happens inside a leaf during Photosynthesis with emphasis on glucose production/storage/usage

Demo

Lights On,Off

Lights Full,3/4,1/2,1/4,Off

Lights Full,3/4,1/2,1/4,Off, No Graph

Lights On,Off, Water control enabled

Simulation Configuration

You can configure the simulation at the beginning by passing in these GET parameters to the model:

  • numDays={1+} (default: 20)
  • numLightOptions={2,3,5} (default: 2)
  • showGraph={true,false} (default: true)
  • showLineGlucoseMade={true,false} (default: true)
  • showLineGlucoseUsed={true,false} (default: true)
  • showLineGlucoseStored={true,false} (default: true)
  • showWater={true,false} (default: false)
  • enableInputControls={true,false} (default: true)

Screenshots

Simulation Start

Screenshot of Simulation State State

Day 3 (light on)

Screenshot of Simulation State State Day 3 Light On

Day 15 (light off)

Screenshot of Simulation State State Day 15 Light Off

Development

You will need NPM (https://www.npmjs.com) and Git.

  1. Checkout the project

    $ git clone https://github.com/WISE-Community/Leaf-Glucose-Simulation.git
  2. Install gulp globally

    $ cd Leaf-Glucose-Simulation
    Leaf-Glucose-Simulation$ npm install -g gulp-cli
  3. Install dependencies

    Leaf-Glucose-Simulation$ npm install
  4. Start gulp task. This will start a running process to copy files and compile changes to typescript files.

    Leaf-Glucose-Simulation$ gulp
  5. See the model on the browser by going to path_to_Leaf-Glucose-Simulation/dist/index.html . (e.g. file:///Users/myusername/dev/Leaf-Glucose-Simulation/dist/index.html)

  6. Make changes with your favorite IDE. Changes to typescript will be immediately compiled to the dist folder.

  7. See you change in the browser by refreshing the page.

Resources

This is a good resource on using Gulp and TypeScript: https://www.typescriptlang.org/docs/handbook/gulp.html

关于

A simulation that demonstrates what happens inside a leaf during Photosynthesis with emphasis on glucose production/storage/usage

7.0 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号