← Back to team overview

dolfin team mailing list archive

[Question #102549]: evaluate boundary integrals

 

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

Hi,

After obtaining my solution using dolfin through python 

problem = VariationalProblem(a,L,bcs)
U = problem.solve()

is there any way to integrate the solution over a given boundary edge?

Lets say I set up subdomains, then if I want to integrate n dot u over subdomain 1, I tried 

ds_in = Measure('exterior_facet',1,None)
n_in = Constant((-1,0))
val = Integral(dot(n_in,u),ds_in)

It seems like when i do this, val is a not a number, but a Integral type.  Is there any way to evaluate this integral and get a number out of it ?

Thanks

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



Follow ups