how to compile the coupledMatrix librairies ?
Hi!
I would like to use conjugateHeatTransfer in OpenFOAM 1.6. For this purpose I picked up the "applications/conjugate" and "src/coupledMatrix" folder from the OpenFOAM-1.5-dev to my own user folder. First I need to compile the coupledMatrix librairies. I try just the wmake command, but it doesn't work. If anyone have a solution, it would be a great help for me. |
Libraries are compiled by typing wmake libso <name of library>
|
Hi Cyp,
I'm not sure if its possible to use coupledMatrix in 1.6. Just compiling it won't work, because the OpenFOAM library in 1.5-dev is different to that of 1.6. I think the easiest way to use coupledMatrix would be to install OpenFOAM-1.5-dev completely. Regards, Stefan |
conjugateHeatFoam with OpenFOAM 1.7.1
Hi All,
I'm trying to get the conjugateHeatFoam(1.6-ext) solver by Hrvoje Jasak up and running in OpenFOAM version 1.7.1. I followed the instructions of Eric Paterson's Getting started with OpenFOAM. So as he advised I made the folder hierarchy for user developed code. $WM_PROJECT_USER_DIR |-- applications |-- lib |-- run ‘-- src I dl the desired solver and library combo with svn into the appropriate directories: Code:
svn checkout https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.6-ext/applications/solvers/coupled/conjugateHeatFoam/ Code:
wmake libso Code:
In file included from coupledLduMatrix/coupledLduMatrix.C:36:0: Unfortunately I'm not a linux/OpenFOAM expert by any means. Thanks! |
I would say stick with 1.6-ext if you want to use the coupledMatrix, there are too many issues bringing these types of extended functionality into the non ext/dev versions. AFAIK, there isn't any reason to want to use 1.7.x over 1.6-ext anyway.
|
Thx for your reply, I will use the extended version then.
|
Quote:
Hi Tibor Im doing the same for openfoam 2.1x I have solved a part of the problem at the moment. first of all you need to add blockLduMatrix to your src/openfoam/matrices/ folder secondly u need to add the some folders to src/openfoam/matrices/ldumatrixes/lduAddressing/lduInterfaceFields/ *check the same directory in openfoam 1.6ext) third you need to add some files also to src/openfoam/matrices/ldumatrixes/lduAddressing/lduInterface/ forth u need to modify the lduInterfaceFieldPtrsList.H according to openfoam1.6 ext if u recompile your openfoam and the compile coupledmatrix library the errors will disappear but u wil have still errors. u need again modify the ldumatrix.H and ldumatrixATmul.C the if compile the library u will just have this error Code:
coupledLduSolver/cgSolver/coupledCgSolver.C:154: error: no matching function for call to ‘gSumProd(Foam::FieldField<Foam::Field, double>&, Foam::FieldField<Foam::Field, double>&)’ |
Dear All
I have compiled it successfully for openfoam 2.1x. Best Mahdi |
Dear Mahdi
Hi I know it is an old thread, you reported that you were successful in importing coupledMatrix class from foam-ext! Can you share your experience how you did it? Thanks Bahram |
All times are GMT -4. The time now is 13:17. |