🏳️🌈
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
metadata: | |
# Describe the runtime environment | |
summary: MPI parallel workstation benchmark with MMSP, periodic domain | |
author: Trevor Keller | |
email: [email protected] | |
date: Wed, 04 Jan 2017 19:30:31 -0500 | |
hardware: | |
# Required hardware details | |
architecture: x86_64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker file to install MMSP in a Ubuntu container | |
# with a Jupyter notebook exposed on port 8888 | |
# | |
# Cloned from https://gist.github.com/wd15/d233c706bb493c91ecd5 | |
# | |
FROM ubuntu:15.10 | |
MAINTAINER Trevor Keller "https://github.com/tkphd" | |
## Install only required packages for making a user as the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fipy import * | |
from scipy import interpolate | |
import numpy as np | |
##Create mesh in Polar Coordinate system (LnR,Cta) | |
nLnR = 100 | |
nCta = 50 | |
dLnR = 0.02 | |
dCta = 2*np.pi/nCta | |
PL = nLnR*dLnR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fipy import * | |
from scipy import interpolate | |
import numpy as np | |
##Create mesh in the Cartesian Coordinate system (X,Y) | |
nx = 100 | |
ny = nx | |
dx = 1.0 | |
dy = dx | |
CL = nx*dx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fipy import * | |
from scipy import interpolate | |
import numpy as np | |
mesh = Grid1D(dx=3, nx=10) | |
datx = mesh.cellCenters[0] | |
daty = np.sin(4*np.pi*datx/10) | |
valumesh = Grid1D(dx=1, nx=10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://gist.github.com/wd15/871797 | |
import time | |
import fipy as fp | |
import numpy as np | |
from mpi4py import MPI | |
np.random.seed(1) | |
L = 1. | |
N = 30 |
NewerOlder