# Discussion Forum

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

## Partial Subdomain Integration

Does anyone know anyway to do a volume integral for a subset of the subdomain?

It seems the subdomain integration feature only integrates over the entire subdomain, not just a subset.

Thanks

2 Replies Last Post Jul 28, 2009, 5:13 p.m. EDT

Hi

I'm not sure I understand you, the subdomain "element" item is one entity that you can pick (identified by a number), so if you want to study a part of it, cut it up in slices, cubes, circles, or whatever symmetry you need (easily done in i.e. SolidWorks see split ot cut commands), then you can integrate over one of these "sub-units". This often improves the meshing if you are cutting up along some symmetry lines.

Now you can always import it into Matlab / script and relly attack the nodes.

If really its someting simple you coud say integrate

(u^2+v^2+w^2)*(x^2+y^2*z^2<=1) no ?

(=0 when r^2=(x^2+y^2+z^2) >1) just check that you units are OK and that if you normalise you integrate the volume accordingly the formula above, when normalised correctly with the corresponding volume should give the rms deformation, squared. Having the possibility to play so nicely with the physics and the mathematics is one of the strong points of COMSOL

Try things out on simple geometry, when you trust the expression, go for the big jump, but always cross scheck your results

Good luck
Ivar