Code Monkey home page Code Monkey logo

mesagrid's Introduction

MESA Grid GUI Program

The program files are named using a convention of numbers (major versions) + letters (minor versions). For example, version 36 is newer than version 35, and version 36c is newer than version 36b. You only need to download the latest version of a single .py file.

Version 40 adds command-line execution.

Preparation steps:

Step 0: Ensure that all imported packages are installed; all can be installed using pip, except for the GUI package tkinter.

Step 1: Place all the initial model files of the grid into the mesabasic folder (in other words, rename the mother-folder containing the initial model files to mesabasic).

Step 2: Run this program in the parent directory of the mesabasic folder.

Steps for use:

One-dimensional Grid: If only one parameter is adjusted, use grid1D to create the grid. The program will generate a mesagrid folder next to the mesabasic folder, which will contain the grid models. Afterward, use startall to start everything. Once started, the program can be closed.

Two-dimensional Grid: Use grid2D to create the grid. For variables that exceed two but are related (essentially still a two-dimensional grid), use replaceline2D to modify the inlist.

To Start: Afterward, use startall to start everything. Once started, the program can be closed.

You can use replaceline, replaceline2D, insert_line, and changevalue_all to change the values of all inlist.

The functions I find most commonly used are: AAAAAAA_initialize_variables, makemesadir, mkmesadir2D, replaceline2D, startall, startnumber, stopall, and gethistorydata.

Finally: It’s very simple for everyone to update the master code on their own. You only need to define a function directly, and the function’s area and execution button will be generated in the GUI or command line.

MESA 网格可视化程序 程序文件命名规则是数字(大版本)+字母(小版本),例如 36 比 35 版本新,36c 比 36b 版本新,只下载最新版单个 py 文件即可 40版本增加允许使用命令行来执行本程序

准备操作如下: step0 确保安装所有的 import 的包,全部可以使用pip安装,除了 GUI 的 tkinter(

step1 把网格初始的模型文件全部放进 mesabasic 的文件夹中(换句话说把初始模型的文件夹名称改为 mesabasic)

step2 在 mesabasic 的上级文件夹内运行该程序

正式使用步骤如下:

一维网格: 如果只调整一个参数,使用 grid1D 创建网格,程序会在 mesabaisc 文件夹旁边生成 mesagrid 文件夹里面放网格模型 ,之后使用 startall 来全部开始,开始后本程序可以关闭

二维网格: 使用 grid2D 创建网格 对于需要改变的变量超过二个但是具有相关性的变量(本质还是二维网格),使用replaceline2D更改 inlist

开始: 之后使用 startall 来全部开始,开始后本程序可以关闭

可以使用replaceline、replaceline2D、insert_line 以及changevalue_all来改变全体 inlist 的值 我认为最常用的函数为: AAAAAAA_initialize_variables、makemesadir、mkmesadir2D、replaceline2D、startall、startnumber、stopall、gethistorydata

最后: 大家对 master 代码进行自己的更新是非常简单的,只需要直接定义函数就会有函数的区域和执行函数的按钮生成在 GUI 或者命令行中

mesagrid's People

Contributors

584146519 avatar

Stargazers

 avatar

Watchers

 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.