|
[Sponsors] |
November 21, 2022, 17:58 |
Where is the matrix coupling ?
|
#1 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
Hi
Looking at the code in coupledLduMatrix.C coupledFvMatrix.C coupledFvScalarMatrix.C of foam-extend (4.0 or 4.1) and all I see are block diagonal matrices which are therefore decoupled. Maybe the files should be renamed as decoupledLdu(Fv)(FvScalar)Matrix.C Any comments welcome |
|
December 4, 2022, 11:54 |
|
#2 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
In general, I don't think people delve into the software at such a deep level. I tried to understand it since this last post but it is like breaking codes during war time or de-cyphering ancient writings in an unknown language. However, I'm now ready to accept there is a coupling between adjacent domains thru their interfaced patches. All I really want is a dictionary setting that will allow me to set the following boundary condition at the interface between domains 1 and 2.
c1 * [snGrad (X)]1 = c2 * [snGrad (X)]2 + sigma where c1, c2 are constants and sigma is a given arbitrary field. I am solving for field X and the above BC of course means that I'm talking about one-sided derivatives at the interface. Simplifying the above BC to sigma = 0 would already help me a lot, probably. That is the billion dollar question. Last edited by celestial; December 4, 2022 at 13:39. |
|
December 28, 2022, 14:23 |
|
#3 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
As I mentioned before, in another thread, forget about OpenFOAM when you encounter those boundary conditions. Just couple it to FEM software Elmer using MPI and interpolation interface EOF. Elmer can handle that kind of BC: just look at their solver StatElecSolver, for example.
|
|
December 28, 2022, 21:58 |
|
#4 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33 |
There are 2 different things here: coupled matrices you are looking at for multi-zone simulations, such as conjugate heat transfer. There are also block matrices for the coupled equations on the same zones, such as block p-u solution.
Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FSI - Coupling CFD solver with a reduced stiffness matrix | Nimish | Main CFD Forum | 0 | June 9, 2019 15:54 |
Problem simulating the temperature rise in a composite material (chtMultiRegionFoam) | Adam_K | OpenFOAM Running, Solving & CFD | 2 | March 27, 2019 06:51 |
Coupling time duration, Coupling time steps | Jiricbeng | CFX | 0 | April 29, 2015 08:37 |
Force can not converge | colopolo | CFX | 13 | October 4, 2011 22:03 |
OpenFOAM version 1.6 details | lakeat | OpenFOAM Running, Solving & CFD | 42 | August 26, 2009 21:47 |