CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

pressureInletUniformVelocity vs pressureInletVelocity

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2020, 05:08
Default pressureInletUniformVelocity vs pressureInletVelocity
  #1
New Member
 
Arash
Join Date: May 2017
Posts: 17
Rep Power: 8
arashgmn is on a distinguished road
What is the difference between pressureInletUniformVelocity and pressureInletVelocity?

Based on the source code for the first one we have:

Code:
operator==(patch().nf()*gSum(patch().Sf() & *this)/gSum(patch().magSf()));
and for the second one

Code:
operator==(n*phip/magS);
in which n and magS are defined as before:

Code:
tmp<vectorField> n = patch().nf(); 
const Field<scalar>& magS = patch().magSf();
Can someone explain how does gSum work and what difference does it make?
arashgmn is offline   Reply With Quote

Old   July 10, 2020, 19:22
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
The first one applys the area averaged value of the velocities of the faces of the patch (so one value) to all faces of the patch. For each face of the patch the velocity vector is in the direction of the face normal vectors.


The second one sets different velocity values (again in the direction of the face normals) based on the calculated flux values.
arashgmn likes this.
jherb is offline   Reply With Quote

Old   July 11, 2020, 03:57
Default
  #3
New Member
 
Arash
Join Date: May 2017
Posts: 17
Rep Power: 8
arashgmn is on a distinguished road
Quote:
Originally Posted by jherb View Post
The first one applys the area averaged value of the velocities of the faces of the patch (so one value) to all faces of the patch. For each face of the patch the velocity vector is in the direction of the face normal vectors.


The second one sets different velocity values (again in the direction of the face normals) based on the calculated flux values.
Thanks Joachim. It resolved my confusion.
arashgmn is offline   Reply With Quote

Reply

Tags
boundaries condition

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



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