Center of Mass / volume
I'm trying to add the calculation of the center of mass in the solver InterFoam. I wrote in interFoam.C :
I can't see the probleme. If the first line compile, the second should too. Does anyone of you have any idea ?
After some tests it seems the problem is coming from "mesh.C().internalField()". As soon as I use this in the "sum" operator, the dimensions are deleted.
- sum(rho*mesh.V()) -> dimension is kg.
- sum(rho*mesh.V()*mesh.C().internalField() -> dimmensionless.
Is there a way to fix that ?
Wonderfull, it works ! Thank you very much.
|All times are GMT -4. The time now is 01:50.|