Skip to content

Instantly share code, notes, and snippets.

View FriesischScott's full-sized avatar

Jasper Behrensdorf FriesischScott

View GitHub Profile
@FriesischScott
FriesischScott / carbonation.js
Last active April 20, 2021 11:16
CO2 content of the beer based on the beer temperature and CO2 head pressure
function carbonation(P, T) {
return (P + 1.013) * Math.exp(-10.73797 + (2617.25 / (T + 273.15))) * 10
}
@FriesischScott
FriesischScott / clayton.jl
Last active January 7, 2022 15:55
Sample from a clayton copula
using Distributions
using SpecialFunctions
using Plots
"""
Generator
"""
function φ(x::Real, ϑ::Real)
return (1+x)^(−1/ϑ)
end
@FriesischScott
FriesischScott / pce-quadrature.jl
Last active February 3, 2022 13:00
PCE Quadrature
using Distributions
using FastGaussQuadrature
function P(x::Float64, d::Int)
if d == 0
return 1.0
end
if d == 1
return x
@FriesischScott
FriesischScott / pce-least-squares.jl
Created February 7, 2022 16:16
PCE with least squares minimization
using Distributions
function P(x::Float64, d::Int)
if d == 0
return 1.0
end
if d == 1
return x
end
nfd-verify:9514943
@FriesischScott
FriesischScott / WRF.log
Created January 3, 2025 11:00
Easybuild log of WRF with CMakeMake
This file has been truncated, but you can view the full file.
== 2025-01-03 11:36:40,449 easyblock.py:311 INFO This is EasyBuild 4.9.4 (framework: 4.9.4, easyblocks: 4.9.4) on host cibola.
== 2025-01-03 11:36:40,449 easyblock.py:317 INFO This is easyblock CMakeMake from module easybuild.easyblocks.generic.cmakemake (/home/behrensd/easybuild/software/EasyBuild/4.9.4/lib/python3.11/site-packages/easybuild/easyblocks/generic/cmakemake.py)
== 2025-01-03 11:36:40,449 easyblock.py:1063 INFO Build dir set to /home/behrensd/easybuild/build/WRF/4.6.1/foss-2024a-dmpar
== 2025-01-03 11:36:40,449 easyblock.py:1120 INFO Software install dir set to /home/behrensd/easybuild/software/WRF/4.6.1-foss-2024a-dmpar
== 2025-01-03 11:36:40,449 easyblock.py:1125 INFO Module install dir set to /home/behrensd/easybuild/modules/all
== 2025-01-03 11:36:40,449 easyblock.py:286 INFO Init completed for application name WRF version 4.6.1
== 2025-01-03 11:36:40,449 easyblock.py:4240 INFO Obtained application instance of for WRF (easyblock: CMakeMake)
== 2025-01-03 11:36:40,449 easyconfig.py:1705 INFO G