Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
-- XXX testing only; force to use 1st order Lax solver (positivity-conserving but diffusive) | |
alwaysUseLaxFlux = true | |
------------------------------------ | |
-- 2D 10-MOMENT SIMULATION OF KHI -- | |
------------------------------------ | |
---------------------- | |
-- HELPER FUNCTIONS -- | |
---------------------- |
This file contains 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
__all__ = ["gkylFile", "gkylFile_Moment"] | |
import numpy as np | |
import adios | |
import numexpr as ne | |
import re | |
import random | |
import string |
This file contains 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
-- Gkyl ------------------------------------------------------------------------ | |
local Moments = require("App.PlasmaOnCartGrid").Moments | |
local Euler = require "Eq.Euler" | |
-- physical parameters | |
gasGamma = 5./3. | |
elcCharge = -1.0 | |
ionCharge = 1.0 | |
ionMass = 1.0 | |
elcMass = ionMass/25.0 |
This file contains 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
-- GEM-challenge problem | |
Pi = Lucee.Pi | |
log = Lucee.logInfo | |
-- physical parameters | |
gasGamma = 5./3. | |
elcCharge = -1.0 | |
ionCharge = 1.0 | |
ionMass = 1.0 |
This file contains 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
-- Gkyl ------------------------------------------------------------------------ | |
-- | |
-- Test for five-moment source updater | |
-- _______ ___ | |
-- + 6 @ |||| # P ||| + | |
-------------------------------------------------------------------------------- | |
local ffi = require "ffi" | |
local Unit = require "Unit" | |
local Grid = require "Grid" |
This file contains 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
import h5py | |
import numpy | |
numpy.set_printoptions(precision=16) | |
def printValues(fname): | |
fp = h5py.File(fname) | |
field = fp["StructGridField"][...] | |
print(field) | |
fp.close() |
This file contains 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
---------------------- | |
-- HELPER FUNCTIONS -- | |
---------------------- | |
function writeData(myQ, frame, tCurr, tag) | |
myQ:write(string.format("%s_%d.h5", tag, frame), tCurr) | |
end | |
---------------- | |
-- PARAMETERS -- | |
---------------- |
This file contains 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
--- fake_2d/gkeyll_2d_fake.lua 2018-10-11 16:37:19.000000000 -0400 | |
+++ real_2d/gkeyll_2d_real.lua 2018-10-11 16:39:50.000000000 -0400 | |
@@ -54,10 +54,9 @@ | |
-- domain and grid parameters | |
xlo, xup, nx = -8. * di0, 8. * di0, 64 | |
ylo, yup, ny = -16. * di0, 16. * di0, 128 | |
- zlo, zup, nz = -0.5 * di0, 0.5 * di0, 1 | |
- lower = {xlo, ylo, zlo} | |
- upper = {xup, yup, zup} | |
- cells = {nx, ny, nz} |
This file contains 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
diff -r 0d6e9acd97dd App/PlasmaOnCartGrid.lua | |
--- a/App/PlasmaOnCartGrid.lua Fri Oct 12 11:29:08 2018 -0400 | |
+++ b/App/PlasmaOnCartGrid.lua Fri Oct 12 13:21:32 2018 -0400 | |
@@ -704,8 +704,10 @@ | |
end | |
local tmSrc = 0.0 | |
+ local tmSrcSol = 0.0 | |
for _, s in pairs(sources) do | |
tmSrc = tmSrc + s:totalTime() |
OlderNewer