小编Mo *_*and的帖子

Google Colab 中保存的文件位于何处?

我正在尝试访问保存热方程解的 VTK 文件,但我不知道它在 Colab 中的保存位置。

from fenics import *
import time
T = 2.0            # final time
num_steps = 50     # number of time steps
dt = T / num_steps # time step size
# Create mesh and define function space
nx = ny = 30
mesh = RectangleMesh(Point(-2, -2), Point(2, 2), nx, ny)
V = FunctionSpace(mesh, 'P', 1)
# Define boundary condition
def boundary(x, on_boundary):
    return on_boundary
bc = DirichletBC(V, Constant(0), boundary)
# Define initial value
u_0 = Expression('exp(-a*pow(x[0], …
Run Code Online (Sandbox Code Playgroud)

python vtk pde fenics google-colaboratory

2
推荐指数
3
解决办法
8845
查看次数

标签 统计

fenics ×1

google-colaboratory ×1

pde ×1

python ×1

vtk ×1