vector function point-wise initialisation
5 May
2016
5 May
'16
5:31 p.m.
Dear team, I have a beginner question about function initialisation in Firedrake. I have the follow simple mesh and function space, and I want to initialise function g with values from numpy arrays (gx, gy). I'm not sure which way should I align the data in the constructor, i.e. should I concatenate gx, gy or interleave them? mesh = RectangleMesh(nx-1,ny-1,nx,ny) V = VectorFunctionSpace(mesh, "CG", 1) # g = Function(V, np.concatenate((gx, gy), axis=0))) ??? Many thanks, -TJ
3467
Age (days ago)
3467
Last active (days ago)
0 comments
1 participants
participants (1)
-
Tianjiao Sun