CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Question in correctBoundaryVelocity in MRFZoneC (https://www.cfd-online.com/Forums/openfoam-solving/58959-question-correctboundaryvelocity-mrfzonec.html)

waynezw0618 April 13, 2008 04:20

Hi Everyone when i look at th
 
Hi Everyone
when i look at the MRFZone.C,i have some question about the member function
void Foam::MRFZone::correctBoundaryVelocity
.....
forAll(patchLabels_, i)
{
U.boundaryField()[patchLabels_[i]] ==
(Omega ^ (mesh_.Cf().boundaryField()[patchLabels_[i]] - origin));
}



could you please tell me, what is the "==" doing here?and what is the mean of that.
for example if a patch is inlet,which is fixedValue in velocity.what will this function do with the inlet ?and what should this function do with the inlet ? change the U to the Omega^R or add Omega^R to U?

i guess the function should add Omega^R to U,but here it will change to Omega^R.is that right?

thanks
wayne

waynezw0618 April 14, 2008 05:18

Hi in my calculation,it loo
 
Hi

in my calculation,it looks like that this function modify the U.boudaryfiedl()[patchLabels[i]] to the (Omega ^ (mesh_.Cf().boundaryField()[patchLabels_[i]] - origin)) at all patch.so take point at inlet for example,if the velocity inlet is fixed valued as [1 0 0]m/s,and rotation speed at that point is [0 0 1]m/s after the function the speed at the point will be [0 0 1]m/s.but what I think it should be [1 0 1]m/s for the
U_absolute = C_relative +W_rotation
could anybody help?

wayne


All times are GMT -4. The time now is 11:09.