vectorField Uwall(Up.patchInternalField() - Up)
Dear Foamers,
I am trying to understand the calculation of the dynamic contact angle in dynamicAlphaContactAngleFvPatchScalarField.C and I am having trouble to understand the line: vectorField Uwall(Up.patchInternalField() - Up); I know Up is U_.boundaryField()[patchi], but why subtract the velocities on patchi from their values next to patchi ("Up.patchInternalField()")? Thanks, Arnout |
It seems to me that Uwall is the relative velocity with respect to the wall.
I expect that Up = 0 for fixed walls and nonzero for moving walls. You can easily verify this by adding Info << Up << endl; to the code Cheers, L |
I had not thought of the possibility of moving walls. Now it makes sense. Thanks for your reply!
|
Boeleman !!
I am also trying to understand the dynamic contact angle model implemented in the openfoam. I want to know whether "patch().nf()" refers to face unit normals or something else? Also, whats the difference between nf and nhat ? Regards Vignesh |
nf(), does indeed refer to the face unit normal, so Uwall -= (nf & Uwall)*nf;calculates the velocity parallel to the wall, by subtracting the normal component from the complete velocity vector. nhat() is the normal to the interface of the two phases.
|
Hey,
I am really not getting the physical meaning of the term vectorField Uwall(Up.patchInternalField() - Up); Uwall seems to be of type vectorField, but what does the term in brackets mean ? Thanks in advance! |
Quote:
Hope this helps :D |
All times are GMT -4. The time now is 01:11. |