Can we impose boundary conditions on functions? #2678
Unanswered
francispoulin
asked this question in
Computational science!
Replies: 1 comment 1 reply
-
you could do something like this:
we have problems with fields defined on |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can we define a function and impose say Value (Dirichlet) or Derivative (Neumann) boundary conditions on the function?
To be more precise, suppose we have a 1D domain and that
A
is a tracer defined at aCenter
and we want to definedA
to be it's derivative onFace
.We can define the function
dA
with the following:A = model.tracers.A$\partial_x (A) $
dA =
This will allow us to compute
dA
on the two boundaries but can we then fill in the first halo regions based on whether we want one of the two above mentioned boundary conditions?Beta Was this translation helpful? Give feedback.
All reactions