How to define a vector function by explicit values?
Asked by
Nico Schlömer
I'd like to manually define a vector field, but I'm not sure how to do it.
I started off with
V1 = VectorFunctionS
J = Function(V1)
for cell_no in xrange(
subdomain_no = subdomains.
cell_midpoint = MeshEntity(mesh, 3, cell_no).midpoint()
J.vector(
Obviously the last thing won't work since a vector has one component only. How can I set the values of J?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Nico Schlömer
- Solved:
- Last query:
- Last reply:
This question was reopened
To post a message you must log in.