Solving simultaneous algebraic equations for complex coefficients
Dear Foamers,
I need to solve a system of linear equations using OpenFOAM (needed at each time step). The system has complex coefficients. I think the simpleMatrix is used for the solution of simultaneous linear algebraic equations. Although the simpleMatrix::solve() returns a Field<type> http://foam.sourceforge.net/docs/cpp...ce.html#l00074 Code:
00073 template<class Type> It would be nice if someone points me to an example of the simpleMatrix use? Edit: As expected simpleMatrix works only for real scalars! Best regards, Hisham 
Dear Hisham
Dear Hisham
I have the same problem and I want to solve a system of linear equation with complex coefficients do you find how can it be solved ? Best Regards 
Hi mechy,
The Armadillo project was my solution: http://arma.sourceforge.net/ Hope it helps you too! Best regards, Hisham 
Dear Hisham
you have used it separately or used it in openfoam ? is it possible to use it in openfoam codes ? Best Regards 
In an OpenFOAM application, you just make sure that armadillo is installed on your system using Synaptic (or so). The lib names are: libarmadillo2 and libarmadillodev. You can try to compile it if you are more adventurous :)
In the Make/options of your application add larmadillo to EXE_LIBS: Code:
EXE_LIBS = lfiniteVolume \ Best regards, Hisham 
thanks for useful comments
Best Regards 
Dear Hisham
is it possible to couple OpenFoam and Aarmadillo in other word, is it possible to transfer data between openfoam objects and Aarmadillo objects ? Best Regards 

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