|
[Sponsors] |
When does correctBoundaryConditions() needs to be called |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 6, 2022, 04:12 |
When does correctBoundaryConditions() needs to be called
|
#1 |
New Member
Join Date: Dec 2021
Posts: 23
Rep Power: 4 |
Hello to all,
I would like to know in what conditions does the function correctBoundaryConditions() needs to be called? |
|
January 6, 2022, 11:54 |
|
#3 | |
New Member
Join Date: Dec 2021
Posts: 23
Rep Power: 4 |
Quote:
Are general rules of thumb to do this. For instance, if you do: Code:
forAll(p, cellI) { p[cellI] = p[cellI] + 10*mesh.C()[cellI].x(); } forAll(p.boundaryField(), patchI) { forAll(p.boundaryField()[patchI], faceI) p.boundaryFieldRef()[patchI][faceI] = p.boundaryField()[patchI][faceI] + 1010*mesh.Cf().boundaryField()[patchI][faceI].x(); } U = fvc::grad(p)*dimensionedScalar("tmp", dimTime, 1.); |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Why is the wrong function called during run-time? | lumpor | OpenFOAM Programming & Development | 1 | May 26, 2021 07:57 |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 04:37 |
terminate called after throwing an instance of 'int' | b614910 | SU2 | 10 | July 27, 2014 22:16 |
understanding how turbulence models are called | romant | OpenFOAM Programming & Development | 0 | March 21, 2012 09:22 |
reconstructParMesh not working with an axisymetric case | francesco | OpenFOAM Bugs | 4 | May 8, 2009 05:49 |