|
[Sponsors] |
OpenFoam TEqn.diag() doesn't include the boudnary coefficients? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 22, 2020, 21:50 |
OpenFoam TEqn.diag() doesn't include the boudnary coefficients?
|
#1 |
Senior Member
|
Hello, I write a simple heat conduction solver on square domain with 4x4 grids and the solver can give correct results.
The four sides of the domain have the first kind boundary conditions. But when I output the matrix coefficients. It seems the matrix diagonal doesn't include the boudnary coefficients? for(label faceI=0;faceI<TEqn.diag().size(); faceI++) { Info<<TEqn.diag()[faceI]<<" "<<faceI<<nl; } the output is -0.2 0 -0.3 1 -0.3 2 -0.2 3 -0.3 4 -0.4 5 -0.4 6 -0.3 7 -0.3 8 -0.4 9 -0.4 10 -0.3 11 -0.2 12 -0.3 13 -0.3 14 -0.2 15 what I have missing? |
|
September 29, 2020, 05:13 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
A question... what is a 4 x 4 grid for you? Do you have 4 cells or how does it look like? A short picture will give us the answer. It seems you do have 4 cells in one row and 3 cols so 12 cells in total. If this is correct then I can directly give you the answer.
__________________
Keep foaming, Tobias Holzmann |
|
September 30, 2020, 02:30 |
|
#3 |
New Member
Ender Demirel
Join Date: Jun 2009
Location: Turkey
Posts: 20
Rep Power: 16 |
The following document is useful for the contribution of the boundary conditions to the diagonal term.
https://www.foamacademy.com/wp-conte...2018matrix.pdf |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error: request for volScalarField T from objectRegistry region0 failed | RGS | OpenFOAM Programming & Development | 1 | July 25, 2021 16:12 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 06:15 |
Generating the lift and drag coefficients with openFOAM | JackJewell | OpenFOAM | 0 | June 14, 2016 09:36 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 03:18 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 13:36 |