dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #17734
Re: [Question #102501]: Best way to specify coefficient fields
Question #102501 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/102501
Garth Wells proposed the following answer:
On Fri, 2010-02-26 at 13:06 +0000, Chris Richardson wrote:
> Question #102501 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/102501
>
> Chris Richardson posted a new comment:
> Not really. I want k to be a variable, not an expression.
>
Expressions can vary- you can make them a function of space, time, etc.
If you want something to be stored in a Vector, you can project it onto
a finite element space or interpolate it in a FE space. For example, if
you project onto a P0 (zeroth order) element, you'll have something
which varies cell-wise.
Garth
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.