← Back to team overview

dolfin team mailing list archive

Re: [Question #102159]: user-defined vector valued function

 

Question #102159 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/102159

    Status: Open => Answered

Garth Wells proposed the following answer:

Richard Norton wrote:
> New question #102159 on DOLFIN: 
> https://answers.launchpad.net/dolfin/+question/102159
> 
> Given a function u (u=Function(V) where V = FunctionSpace(mesh, "CG",
> 1)) I want to define an operator/function that returns sigma(grad(u))
> where sigma_1(a,b) = a and sigma_2(a,b) = 2(b^2-1)b.
> 

I don't follow what you're after. What are (a,b)? What are sigma_1 and
sigma_2? Are they the components of sigma?

Garth


> I then want to include "sigma" in the following
> 
> L = dot(sigma(grad(uold)),grad(v))*dx
> 
> 
>

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.