solving problem with vector valued function
I'd like to solve the convection-equation for different kinds of (independent) concentration functions.
I'd like to solve the concection-
I'd like to set the number of different concentration function as a variable m.
How do I have to define the concentration functions conc[i] (i <= m) ?
Can I define them as a vector?
For one concentration I defined
Q = FunctionSpace(mesh, "CG", 1)
conc = TrialFunction(Q)
I tried VectorFunctionS
Further, how do I have to change the bilinarform for several concentrations?
F = eta*(conc-
with eta = TestFunction(Q) and conc_prev the concentration from previous time step.
Is it possible to solve this problem by a for-loop over the number of concentration functions?
How will the boundary value definition change? (I have Neumann-boundary values on a small part of the mesh)?
I hope anyone can help me! Thanks!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply: