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 React from 'react'; | |
import ComponentCreator from '@docusaurus/ComponentCreator'; | |
export default [ | |
{ | |
path: '/__docusaurus/debug', | |
component: ComponentCreator('/__docusaurus/debug','3d6'), | |
exact: true, | |
}, | |
{ |
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 taichi as ti | |
ti.init(arch=ti.gpu) | |
n_particles = 8192 | |
n_grid = 128 | |
dx = 1 / n_grid | |
dt = 2e-4 | |
p_rho = 1 |
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 taichi as ti | |
ti.init(arch=ti.gpu) | |
n_particles = 8192 | |
n_grid = 128 | |
dx = 1 / n_grid | |
dt = 2e-4 | |
p_rho = 1 |
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 taichi as ti | |
ti.init(arch=ti.cpu) | |
n = 512 | |
x = ti.field(ti.f32, shape=(n, n)) | |
@ti.kernel | |
def paint(): |
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 taichi as ti | |
ti.init(arch=ti.gpu) # Try to run on GPU | |
quality = 1 # Use a larger value for higher-res simulations | |
n_particles, n_grid = 9000 * quality**2, 128 * quality | |
dx, inv_dx = 1 / n_grid, float(n_grid) | |
dt = 1e-4 / quality | |
p_vol, p_rho = (dx * 0.5)**2, 1 | |
p_mass = p_vol * p_rho |
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 taichi as ti | |
ti.init(arch=ti.gpu) | |
n = 320 | |
pixels = ti.field(dtype=float, shape=(n * 2, n)) | |
@ti.func | |
def complex_sqr(z): |
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
{ | |
"name": { | |
"title": "Full Name", | |
"type": "string", | |
"githubKey": "name" | |
}, | |
"email": { | |
"title": "E-Mail", | |
"type": "string", | |
"githubKey": "email" |
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 sys | |
import re | |
from typing import Callable, List | |
VALID_PR_TAGS = { | |
# this pr implements new features | |
"Feature", | |
# this pr fixes bugs | |
"Bugfix", | |
# this pr updates documentation |