CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   CoupledFvScalarMatrix in OF15 (

fisher November 25, 2008 06:15

Hello, I am trying to use the
I am trying to use the class coupledFvScalarMatrix with OpenFOAM 1.5. Has anybody successfully compiled the coupledMatrix directory from nFOAM-1.4.1-dev/src/coupledMatrix/
with the 1.5 release? Or am I likely to get into unsurmountable problems and better downgrade my project to 1.4.1-dev?

When running "wmake all" in the coupledMatrix directory, the first error I get is
>In file included from coupledLduMatrix/coupledLduMatrix.C:36:
>coupledLduMatrix/coupledLduMatrix.H:109: error: expected ',' or '...' before '&' token

This is the following line
> void Amul
> (
> FieldField<field,>& result,
> const FieldField<field,>& x,
> const PtrList<fieldfield<field,>scalar> >& bouCoeffs,
> const lduInterfaceFieldPtrsListList& interfaces, *** <---line 109 ***
> const direction cmpt
> ) const;

In 1.4.1-dev I find the lduInterfaceFieldPtrsListList defined in src/OpenFOAM/matrices/lduMatrix/lduAddressing/lduInterfaceField/lduInterfaceFiel dPtrsList.H as:
> typedef List<lduinterfacefieldptrslist> lduInterfaceFieldPtrsListList;
while this definition doesn't exist in release 1.5.

Do I have to step through every small inconsistency between the two versions or is there some higher level compatibility patch? Maybe somebody has gone through these steps before?


hjasak November 25, 2008 08:00

Hello, Retro-fitting it you

Retro-fitting it yourself would be a major pain. I have prepared a merged version 1.5-dev with all the capabilities you need, but I am still waiting for test loops and contributions from a University (you know who you are!)

If you need it pre-release, please drop me a line and we'll talk about it.


fisher November 25, 2008 08:15

Thank you very much for the re
Thank you very much for the reply, Hrvoje!
Can you give a rough estimate when 1.5-dev will be tested?
It's perfectly fine with me to develop early implementations with 1.4.1-dev. But in 1-2 months I'd need to find some possibility to merge the parts depending on coupledMatrix with other parts that I have already developed in 1.5.

When announcing the merged version 1.5-dev, do you mean a new version of coupledMatrix alone, of of the whole 1.4.1-dev? Latter would be my greatest Christmas present :-)


johndeas November 25, 2008 08:36

Can't wait for this too
Can't wait for this too

nandiganavishal November 25, 2008 12:44

Hi All, Is there any possib
Hi All,

Is there any possibility to solve coupled PDE's directly (not using relaxation techniques) in OpenFoam. Can anyone give me a suggestion as to how to go about doing this.

Kindly help.


Vishal Nandigana

fisher November 25, 2008 12:57

Hi Vishal, Openfoam is always
Hi Vishal,
Openfoam is always using the segregated solution method, solving one variable and one vector component after the other. It is not possible to solve coupled PDEs directly.

The coupledMatrix I have been asking about is not about coupled equations, but it takes care of spatially connected meshes.


nandiganavishal November 25, 2008 13:50

Hi Olaf Fisher, Thanks a lo
Hi Olaf Fisher,

Thanks a lot for the reply. So the only way to solve coupled equations in OpenFoam is by using relaxation techniques.


hjasak November 28, 2008 06:29

Heya Olaf, You are on my Ch
Heya Olaf,

You are on my Christmas list then. All of the functionality from 1.4.1-dev is available and tested + some more goodies not seen before. BTW, are you going to be in Berlin - shall we talk about it?


fisher November 29, 2008 08:36

Dear Hrvoje, this is very goo
Dear Hrvoje,
this is very good news. Also thank you for the kind offer to meet in Berlin, but I can't arrange a visit during the week.


All times are GMT -4. The time now is 04:20.