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
-- 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 ------------------------------------------------------------------------ | |
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
__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
-- XXX testing only; force to use 1st order Lax solver (positivity-conserving but diffusive) | |
alwaysUseLaxFlux = true | |
------------------------------------ | |
-- 2D 10-MOMENT SIMULATION OF KHI -- | |
------------------------------------ | |
---------------------- | |
-- HELPER FUNCTIONS -- | |
---------------------- |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder