← Back to team overview

dolfin team mailing list archive

[Question #152914]: onedimensional derivatives

 

New question #152914 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/152914

Hi,

I want to solve a PDE on a one-dimensional domain. The equation involves a first derivative. How do I express this in 1D? Here is (basically) my equation: 

dT/dx + d^2T/dx^2 = 0

and weak form

a = (grad(T)*v - inner(grad(T), grad(v)))*dx

with testfunction v and trialfunction T. When I use grad(T), I get a "shape mismatch in sum" error. The mesh is Interval(100, 0, 10)

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



Follow ups