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

How OF implement processor boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By fxzf
  • 1 Post By dlahaye
  • 1 Post By yueyun
  • 1 Post By dlahaye

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 7, 2022, 04:33
Default How OF implement processor boundary condition
  #1
Member
 
ff
Join Date: Feb 2010
Posts: 81
Rep Power: 16
fxzf is on a distinguished road
Hello OF experters.

I want to ask a silly question, I am trying to understand how OF implement processor boundary condition.

Let's use the laplacian as example, so in build laplacian scheme, there is
Code:
fvmLaplacianUncorrected
{
....

  const fvsPatchScalarField& pDeltaCoeffs = deltaCoeffs.boundaryField()[patchi];

  if (pvf.coupled())
  {
    fvm.internalCoeffs()[patchi] = pGamma*pvf.gradientInternalCoeffs(pDeltaCoeffs)
    fvm.boundaryCoeffs()[patchi] = -pGamma*pvf.gradientBoundaryCoeffs(pDeltaCoeffs)

  }

}
First question, I believer, if it loops to processor type boundary patch, it will this pvf.coupled() is true? Correct me if I am wrong.

Second question, what is the pDeltaCoeffs here? I know deltaCoeffs here is tsnGradScheme_().deltaCoeffs(vf), so I believe it should be 1/distance(cell centre to neighbour cell centre) on the field, and on the processor boundary patch, it is 1/distance(cell centre to patch face centre) ???

However, for processor boundary patch, to build a matrix, I believe it should get the distance from cell centre to neighbour cell centre ???

Third Question, I checked processorFvPatchField.C, I didn't find gradientBoundaryCoeffs and gradientInternalCoeffs. So where and how do they implemented for processsor B.C.

Finally, for pGamma, I believe, it should be interpolated value from this processor cell to neighbour processor cell ? but I cannot find where does this interpolation implemented.

Thanks very much.
yueyun likes this.
fxzf is offline   Reply With Quote

 


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I implement temperature jump boundary condition in microchannel walls? sima FLUENT 7 January 6, 2021 21:36
Divergence after implement nonreflecting boundary condition fireflies Main CFD Forum 0 October 23, 2014 10:16
Implement a new boundary condition and writes out the values kmefun OpenFOAM Running, Solving & CFD 0 September 19, 2014 12:03
How to implement heat flux boundary condition as function of time baran_foam OpenFOAM Running, Solving & CFD 3 September 15, 2014 00:28
How can I implement temperature jump boundary condition in microchannel walls? sima FLUENT 1 December 8, 2010 08:20


All times are GMT -4. The time now is 02:10.