This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Updating vector fields in subdomains

0 votes

Hi list,

I've got a problem at hand that is related to subdomains. Consider the following simplified problem:

  • We want to solve a time-dependent ODE on a mesh $\Omega = \Omega_1 \cup \Omega_2$ that is subdivided into two sub-domains.
  • The solution is a (vector) field $\vec{v}$ over the whole domain $\Omega$.
  • The right-hand side of the ODE depends on the whole vector field $\vec{v}$
  • In $\Omega_1$ we fix the vector field to some user-given value, while in $\Omega_2$ the vector field can vary with time.
  • The goal is to advance the whole vector field from time $t$ to $t+h$ with updates only acting on $\Omega_2$.
  • At each time step, we also want access to the full vector field.

I guess that one can more-or-less easily achieve this but I haven't been able yet to figure out the correct FEniCS way of doing so ...

asked Jun 22, 2016 by smiter FEniCS Novice (190 points)

1 Answer

0 votes
answered Jul 9, 2016 by francesco.ballarin FEniCS User (4,070 points)

This looks feasible. I'll give it a try... Thank you!

...