|
[Sponsors] |
vectorField Uwall(Up.patchInternalField() - Up) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 25, 2013, 13:23 |
vectorField Uwall(Up.patchInternalField() - Up)
|
#1 |
New Member
Join Date: May 2012
Posts: 17
Rep Power: 13 |
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 |
|
January 25, 2013, 17:48 |
|
#2 |
Senior Member
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22 |
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 |
|
January 27, 2013, 18:15 |
|
#3 |
New Member
Join Date: May 2012
Posts: 17
Rep Power: 13 |
I had not thought of the possibility of moving walls. Now it makes sense. Thanks for your reply!
|
|
July 10, 2014, 09:42 |
|
#4 |
Member
Vignesh
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 66
Rep Power: 13 |
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 |
|
July 17, 2014, 16:36 |
|
#5 |
New Member
Join Date: May 2012
Posts: 17
Rep Power: 13 |
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.
|
|
August 15, 2014, 16:11 |
|
#6 |
New Member
Anjishnu Choudhury
Join Date: Jul 2014
Posts: 4
Rep Power: 11 |
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! |
|
August 15, 2014, 19:02 |
|
#7 | |
Member
Vignesh
Join Date: Oct 2012
Location: Darmstadt, Germany
Posts: 66
Rep Power: 13 |
Quote:
Hope this helps
__________________
Thanks and Regards Vignesh |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Visualisation of components of a vectorField | nico | ParaView | 2 | September 19, 2021 00:42 |
scalar points to vectorField | deji | OpenFOAM | 2 | January 26, 2012 13:28 |
FvPatchScalarField access operator | maka | OpenFOAM | 3 | July 1, 2008 09:32 |
Bug in vectorField | hjasak | OpenFOAM Running, Solving & CFD | 1 | September 7, 2007 09:09 |
Changes in OF 14 and compilation issues | alberto | OpenFOAM Running, Solving & CFD | 13 | May 13, 2007 16:21 |