Skip to content

Instantly share code, notes, and snippets.

View iitrabhi's full-sized avatar

Abhinav Gupta iitrabhi

View GitHub Profile
@iitrabhi
iitrabhi / ellipse.svg
Last active December 12, 2023 19:28
SVG background
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@iitrabhi
iitrabhi / meshtagging.py
Created April 9, 2023 03:54 — forked from michalhabera/meshtagging.py
Preliminary tests of mesh tagging with pygmsh-meshio-dolfin pipeline
from pygmsh.built_in.geometry import Geometry
from pygmsh import generate_mesh
import meshio
from dolfin import Mesh, MeshFunction, XDMFFile
geom = Geometry()
lc = .1
p0 = geom.add_point([0, 0, 0], lcar=lc)
@iitrabhi
iitrabhi / meshtagging_mvc.py
Created April 9, 2023 03:54 — forked from michalhabera/meshtagging_mvc.py
Terribly hacky MVC workaround for pygmsh-meshio-dolfin boundary tagging
from pygmsh.built_in.geometry import Geometry
from pygmsh import generate_mesh
import meshio
import dolfin
geom = Geometry()
lc = .1
p0 = geom.add_point([0, 0, 0], lcar=lc)
p1 = geom.add_point([1, 0, 0], lcar=lc)
@iitrabhi
iitrabhi / .gitignore
Created May 24, 2022 05:01
Git ignore file for FEniCS projects at CMLAB IIT Roorkee
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@iitrabhi
iitrabhi / matrix-ram-requirement.ipynb
Last active January 31, 2022 14:28
The amount of ram required for dense vs sparse matrix
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.