dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #17820
Re: [Question #102925]: operator that depends on the gradient of a function
Question #102925 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/102925
Richard Norton gave more information on the question:
Equivalently, would it be possible to define a function/expression that
is piecewise constant in the following way...
Given u = Function(V), V = FunctionSpace(mesh,"CG",1), the expression
returns a vector valued function where each component is in
FunctionSpace(mesh,"DG",0) so that if abs(u.dx(1)) < 1 in a triangle of
the mesh then as_vector( [u.dx(0), 0]) is returned else as_vector(
[u.dx(0), 2*(u.dx(1)**2 -1)*u.dx(1)] ) is returned.
Is u.dx(0) a function in FunctionSpace(mesh,"DG",0)?
--
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.