dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22686
Re: [Question #153352]: project grad f to a VectorFunctionSpace
Question #153352 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/153352
Status: Open => Answered
Kristian B. Ølgaard proposed the following answer:
On 18 April 2011 22:46, Chaffra <question153352@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Question #153352 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/153352
>
> Status: Answered => Open
>
> Chaffra is still having a problem:
> What would be a scalar, df?
Yes, grad(f) == f.dx(0) as far as I know.
>You should be able to define a vector field
> on a 1D mesh?
Yes, that should be possible.
>It works when you specify dim=2 or 3 but not when dim=1
> or dim=None
dim=1 and dim=None will probably be the same since dim will be set
equal to the geometric dimension of the cell, 1D in this case.
I could very well be bug in ffc, I would just expect the MixedElement
from UFL to reduce to a FiniteElement if it contained only one
element.
Kristian
>
> --
> You received this question notification because you are a member of
> DOLFIN Team, which is an answer contact for DOLFIN.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.