Skip to content

Instantly share code, notes, and snippets.

View wd15's full-sized avatar

Daniel Wheeler wd15

View GitHub Profile
from fipy import Variable,FaceVariable,CellVariable,Grid1D,ImplicitSourceTerm,TransientTerm,DiffusionTerm,Viewer,ConvectionTerm
from fipy.tools import numerix
import math
D = 1
c0 = 1
ka = 1
r0 = 1
from fipy import *
from fipy import CellVariable, Variable, Grid1D, TransientTerm, DiffusionTerm, ImplicitSourceTerm, LinearLUSolver, Viewer
import math
from fipy.tools import numerix
from fipy.solvers.scipy import LinearPCGSolver, LinearLUSolver
# Konstanten
F = 96485.3399 #C /mol
R = 8.314472 # J/(mol*K)
T = 273.18 # K
@wd15
wd15 / DocumentforMoffat.pdf
Last active September 4, 2019 19:44
Solve 1D transoport with moving boundary
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wd15
wd15 / .pylintrc
Last active August 7, 2019 20:33
Playing with FastAPI
[MASTER]
extension-pkg-whitelist = numpy
[TYPECHECK]
ignored-modules = numpy, toolz.curried
[MESSAGES CONTROL]
disable = no-value-for-parameter, bad-continuation
@wd15
wd15 / review_statement.md
Created March 22, 2019 16:17
Review statement for publications that haven't made an adequate statement at reproducible results

Introduction

This is a first attempt at a review statement for publications that are largely simulation based, but haven't made an adequate attempt at making the results reproducible.

Statement

The authors of the paper should be aware of the Science Code Manifesto, see http://sciencecodemanifesto.org/ and http://sciencecodemanifesto.org/discussion. Although XXX is an open source code, the authors should do more to enable readers to reproduce the results in the paper. Specifically,

@wd15
wd15 / abstract.md
Last active March 11, 2019 16:05
Abstract for MS&T

PFHub: The Phase Field Community Hub

The PFHub framework supports phase field practitioners and code developers participating in an effort to improve quality assurance for phase field codes. The main thrust of this effort is the generation of a set of standardized benchmark problems along with a web framework for uploading and comparing benchmark results. The phase field method is well established and there are an assortment of code frameworks available for solving the associated PDEs. However, phase field research groups often develop codes in isolation and do not publish

@wd15
wd15 / README.md
Last active March 18, 2019 15:18
fast.ai stuff

Fast.ai Stuff

Toy Web App

To run use

$ python app.py

and

Go to Google Images and search for the images you are interested in. The more specific you are in your Google Search, the better the results and the less manual pruning you will have to do.

Scroll down until you've seen all the images you want to download, or until you see a button that says 'Show more results'. All the images you scrolled past are now available to download. To get more, click on the button, and continue scrolling. The maximum number of images Google Images shows is 700.

It is a good idea to put things you want to exclude into the search query, for instance if you are searching for the Eurasian wolf, "canis lupus lupus", it might be a good idea to exclude other variants:

"canis lupus lupus" -dog -arctos -familiaris -baileyi -occidentalis

You can also limit your results to show only photos by clicking on Tools and selecting Photos from the Type dropdown.

@wd15
wd15 / abstract.md
Last active February 4, 2019 20:15
Abstract for Scipy 2019

Using Nix for Repeatable Python Environments

Summary

Packaging and dependency management is foundational in software deployment, but is often implemented so that outcomes depend on state and are not repeatable. This has implications for reproducing computational experiments, which require repeatable deployment of environments whenever possible. For example, the popular package managers Conda and Pip are both examples of imperative and stateful

@wd15
wd15 / abstract.md
Last active January 28, 2019 21:35
Abstract for PFHub baglunch talk

PFHub: The Phase Field Community Hub

Small scientific communities often require web infrastructure for sharing and displaying data tailored to specific needs. The approach used by the [PFHub framework][1] uses existing tools to provide a workflow for uploading and viewing data requiring only a limited outlay on custom development and configuration. The [PFHub framework][1] currently supports phase field practitioners and code developers participating in an effort to improve quality assurance for phase field codes. The main thrust of this effort is the generation of