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

Where is the matrix coupling ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2022, 17:58
Default Where is the matrix coupling ?
  #1
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
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
celestial is offline   Reply With Quote

Old   December 4, 2022, 11:54
Default
  #2
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
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.
celestial is offline   Reply With Quote

Old   December 28, 2022, 14:23
Default
  #3
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
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.
celestial is offline   Reply With Quote

Old   December 28, 2022, 21:58
Default
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 11:45.