|
[Sponsors] |
How OF implement processor boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 7, 2022, 04:33 |
How OF implement processor boundary condition
|
#1 |
Member
ff
Join Date: Feb 2010
Posts: 81
Rep Power: 16 |
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) } } 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. |
|
|
|
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 |