- Posts: 185
- Karma: 1
- Thank you received: 6
mesh = MakeStructured2DMesh(nx=1,ny=1)
gfu = GridFunction(VectorL2(mesh, order=2))
Draw(gfu)
for i in range(gfu.vec.size):
gfu.vec[i] = 1
if i > 1:
gfu.vec[i-1] = 0
Redraw()
input("next?")
Please Log in or Create an account to join the conversation.
import netgen.gui
from ngsolve import *
import ngsolve.meshes as ngm
mesh = ngm.MakeStructured2DMesh(nx=1,ny=1)
gfu = GridFunction(VectorL2(mesh, order=2))
Draw(gfu)
gfu.vec[0] = 1
Redraw()
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
python3 test.py
input("next?")
Please Log in or Create an account to join the conversation.