Giter Site home page Giter Site logo

jfriedlein / parameter_manager_spreadsheet2prm_dealii Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 913 KB

Scripts to manage your parameters from deal.II in spreadsheets and export them by a single click to an auto-generated deal.II compatible prm-Parameters file

Python 100.00%
dealii parameter-management tool spreadsheet prm csv python macro

parameter_manager_spreadsheet2prm_dealii's Introduction

parameter_manager_spreadsheet2prm_dealii

Scripts to manage your parameters from deal.II in spreadsheets and export them by a single click to an auto-generated deal.II compatible prm-Parameters file

What it does

Usually, parameters are managed in a "Parameters.prm" file based on the GeneralParameters class. So, if you want to change a parameter, you go into the prm file, opened with text editor and change the desired parameter. This works great, is super fast and independent of any operating system.

However, we you use parameter sets, so e.g. you test your models using a simple numerical example and then challenge it with a more demanding one, then you have to change lots of parameters. The straightforward approach would be to create two prm files and interchange the names to switch between the parameter sets. In a development environment, however, parameters might be added or disappear at any time, so in essence you have to keep up with two or more file and update them accordingly, which based on experience does work as long as a perpetuum mobile (in a paper dreamcastle forever, in reality it fails at first contact with the enemy).

That's what this script is for. You organise all your parameters in a spreadsheet and export the parameters and their values by single click to your prm file.

Requirements

  • LibreOffice Calc (currently supported, should be easily extendable to Excel, etc. transferring the macro)
  • Python3 (not tested with Python2)

Setup

The file parameter_manager.xlsx contains an example of a parameter set.

  • To start, you have to download the spreadsheet, macro and the python script all into one folder (later the maindir).
  • Open the Python script and change the output path prm_output_dir to the location where the final prm-file shall be placed.
  • Open the spreadsheet in LibreOffice Calc (currently the macro is only supported in LibreOffice Calc) and take a look around.
  • Create an icon for the macro (refer to the website xyz)
  • ...

@todo upload the macro somehow (or link it inside the spreadsheet)

@todo maybe also add a sheet for the load history (data points + graph)

parameter_manager_spreadsheet2prm_dealii's People

Contributors

jfriedlein avatar

Watchers

 avatar  avatar

Forkers

swiesheier

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.