Skip to content

Instantly share code, notes, and snippets.

View gdolle's full-sized avatar

Guillaume Dollé gdolle

View GitHub Profile
@gdolle
gdolle / archlinux_aur_singularity.def
Created April 15, 2021 20:23
Singularity recipe to build AUR package
Bootstrap: docker
From: archlinux
%Post
yes | pacman -Syu
yes | pacman -S sudo curl binutils make gcc pkg-config fakeroot go git
useradd -m -d /build build
usermod -aG wheel build
sudo -iu build curl -o PKGBUILD -L "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=yay"
$MeshFormat
4.1 0 8
$EndMeshFormat
$PhysicalNames
2
3 1 "test1"
3 2 "test2"
$EndPhysicalNames
$Entities
12 20 11 2
$MeshFormat
4.1 0 8
$EndMeshFormat
$PhysicalNames
2
3 1 "test1"
3 2 "test2"
$EndPhysicalNames
$Entities
12 20 11 2
@gdolle
gdolle / KMbeuEmpPS.pl
Last active February 2, 2023 12:17
konica minolta bizhub C364 CUPS Filter v2.5 "KMbeuEmpPS.pl"
#!/usr/bin/perl -w
###############################################################################
#
# Version: 2.5
# Date: 2016-04-19
# Author: Jan Heinecke
# Filename: KMbeuEmpPS.pl
#
# ###added encryption support
@gdolle
gdolle / Dockerfile.feelpp-libs
Created October 19, 2018 11:10
Dockerfile feelpp libs
FROM feelpp/feelpp-libs:latest
@gdolle
gdolle / feelpp_qs_laplacian_2d.cpp
Last active December 9, 2017 15:42
feelpp_qs_laplacian2d.cpp
l+=integrate(_range=markedfaces(mesh,"Robin"), _expr=r_2*id(v));
l+=integrate(_range=markedfaces(mesh,"Neumann"), _expr=n*id(v));
auto a = form2( _trial=Vh, _test=Vh);
a = integrate(_range=elements(mesh),
_expr=mu*gradt(u)*trans(grad(v)) );
a+=integrate(_range=markedfaces(mesh,"Robin"), _expr=r_1*idt(u)*id(v));
a+=on(_range=markedfaces(mesh,"Dirichlet"), _rhs=l, _element=u, _expr=g );
if ( !mesh->hasAnyMarker({"Robin", "Neumann","Dirichlet"}) )
a+=on(_range=boundaryfaces(mesh), _rhs=l, _element=u, _expr=g );
@gdolle
gdolle / csvtest.csv
Last active March 29, 2017 14:55
csv test
h b c
0.4000 1.41593e-01 4.87932e-04
0.2000 2.62996e-02 1.65709e-05
0.1000 5.73876e-03 7.86831e-07
0.0500 1.34419e-03 4.31428e-08
0.0250 3.36079e-04 2.69659e-09
@gdolle
gdolle / PKGBUILD_zlib.patch
Last active May 29, 2016 13:27
Patch mumps with zlib
--- PKGBUILD 2016-05-29 15:08:46.380031210 +0200
+++ PKGBUILD_zlib 2016-05-29 15:11:04.883369431 +0200
@@ -19,7 +19,7 @@
build() {
cd "${srcdir}/MUMPS_${pkgver}"
cp "${srcdir}/Makefile.inc" .
-
+ sed -i "s/LIBS = \$(LIBPAR)/LIBS = \$(LIBPAR) -lz/" Makefile.inc
make -j1 all || return 1
}
# GMSH/FreeCAD geometry
Links for 3D CAD geometry that are compatible with GMSH.
NB: You should CHECK THE LICENSE before using it!
1. https://grabcad.com/library?page=2&time=all_time&sort=recent&query=FEM
2. https://grabcad.com/library?page=2&time=all_time&sort=recent&query=finite%20element
# To clean
@gdolle
gdolle / h5plot.ipynb
Last active February 19, 2016 23:33
Write/Read HDF5, plot the reading data, then save as tikz figure
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.