Additional debug info

This commit is contained in:
Hrvoje Jasak 2011-10-10 14:04:40 +01:00
parent 74737678c1
commit 171383ded7

View file

@ -355,6 +355,7 @@ Foam::mixerRotor::mixerRotor
<< " origin : " << cs().origin() << nl << " origin : " << cs().origin() << nl
<< " axis : " << cs().axis() << nl << " axis : " << cs().axis() << nl
<< " rpm : " << rpm_ << nl << " rpm : " << rpm_ << nl
<< " invert mask : " << invertMotionMask_ << nl
<< " topo sliding: " << useTopoSliding_ << endl; << " topo sliding: " << useTopoSliding_ << endl;
if (useTopoSliding_) if (useTopoSliding_)
@ -387,7 +388,7 @@ Foam::tmp<Foam::vectorField> Foam::mixerRotor::pointMotion() const
return cs_.globalPosition return cs_.globalPosition
( (
// Motion vector in cymindrical coordinate system (x theta z) // Motion vector in cylindrical coordinate system (x theta z)
cs_.localPosition(mesh_.allPoints()) cs_.localPosition(mesh_.allPoints())
+ vector(0, rpm_*360.0*mesh_.time().deltaT().value()/60.0, 0)*mpm + vector(0, rpm_*360.0*mesh_.time().deltaT().value()/60.0, 0)*mpm
) - mesh_.allPoints(); ) - mesh_.allPoints();